Consider the recursion $a_n = 2a_{n-1} + (-1)^n$ where $a_0 = 2$
Then $A(x) = \sum a_n x^n$ = $2 + \sum a_n x^n$ shifting the index of summation. The only next move I can think of is to now substitute $a_n = \sum (2a_{n-1} + (-1)^n)$ but I am not sure how this helps. Derivatives don't seem too helpful here either. Perhaps telescoping? Any ideas are appreciated.
You have $a_{n + 1} = 2 a_n - (-1)^n$, and thus: $$ \frac{A(z) - a_0}{z} = 2 A(z) - \frac{1}{1 + z} $$