Exercise 14.

Find the generating function for the sequence \(1, -2, 4, -8, 16, \ldots\text{.}\)

in-context