I'm having trouble midway with solving this recurrence relation using generating functions:
$a_{k+2} - a_{k + 1} + 2a_k = 4^x$, with initial conditions $a_0=2, a_1=1$.
I'm not sure if this is right, but my generating function is $\frac{5x^2 - 9x + 2}{(1-4x)(1-x+2x^2)}$
I want to extract the coefficient of $x^k$, so I used partial fractions to get $ \frac{-((17 x)/14-27/14)}{(2 x^2-x+1)} + \frac{1/14}{(1-4x))}$
The second term gives 4^k / 14, but I'm not sure how to proceed for the first term...