I have the following recurrence $$a_n - 3a_{n-2} + 2a_{n-3} = 9 (-2)^n$$ with initial conditions $a_0 = 0, a_1 = 1, a_2 = 26$. I wish to find an explicit formula for $a_n$.
The characteristic polynomial for this recurrence is given by $\lambda(x) = x^3 - 3x + 2 = (x-1)^2 (x+2)$
Using a method I've been shown in class, I find
$$ \lambda(x) \cdot \Sigma{a_nx^n} = P(x) + 9 \cdot \Sigma{2^nx^n}$$ $$ \Sigma{a_nx^n} = \frac{P(x)}{\lambda(x)} + \frac{9}{\lambda(x) \cdot (1+2x)}$$
$$ \Sigma{a_nx^n} = \frac{P'(x)}{(x-1)^2(x+2)(1+2x)}$$
now this gives me a system of equations with 4 unknowns, and only 3 initial conditions with which to solve it. Clearly I've made a mistake somewhere.
I've also tried to use the lucky guess method, but I am still unable to solve this recurrence.
Can someone point out my error in the above approach, or give a push in the right direction using the "lucky guess" method?
Looks to me like the homogeneous solution is $A n + B + C (-2)^n$. (The $n$ comes from the fact that you have a double root at $x=1$.) The particular solution may be a bit tricky because the "forcing" term is proportional to a homogeneous solution. The solution here is to try $a_n^{(p)} = D n (-2)^n$. Plugging this into the equation, we get
$$D n (-2)^n - \frac{3}{4} D (n-2) (-2)^n - \frac14 D (n-3) (-2)^n = 9 (-2)^n$$
Note that the terms in $n$ cancel and we get
$$[1+(3/2)+(3/4)]D = 9 \implies D = \frac{36}{13}$$
Now the general solution is
$$a_n = A n + B + C (-2)^n + \frac{36}{13} n (-2)^n$$
$A$, $B$, and $C$ may be found from the initial conditions, which I assume is not above your pay grade.