I am trying to solve the following recursion but it does not appear that I can use characteristic equations or generating functions since I do not have initial conditions. Is there another way I am missing or can I assume initial conditions to use the above methods?
$$a_n = 3a_{n-1} -2a_{n-2} + 2^n + n^2$$
For example, if I found roots x = -1 and x = -2 I could then write the general solution as $α(−1)^n+β(−2)^n + P(n)$ for some particular solution? How would I get this particular solution? I am rusty at undetermined coefficients.
The set of solutions is a two-dimensional (affine) space. Once you have found any particular solution $(a_n)$, adding any solution of $d_n=3d_{n-1}-2d_{n-2}$ will produce another solution $(a_n+d_n)$. As for example arbitrary values for $d_0,d_1$ can be chosen, we obtain a two-parameter set of solutions. Any method of your choice should work; if necessary, add initial conditions $a_0=\alpha, a_1=\beta$ at will.