I have this recurrence relation: $$a_{n+1} + 2a_{n}+2a_{n-1} = ( n+3)\times2^n,$$ where $a_0= -\frac{2} {5} $, and $a_1=\frac{46}{5}$
So for the homogeneous part, I have $x^2+2x+2=0$ or $x=1$.
But I don't know what to do with the non-homogeneous part.
Any help would be appreciated. Thank you in advance.
Hint: divide by $2^n$ and write it as:
$$ 2 \cdot \frac{a_{n+1}}{2^{n+1}} + 2 \cdot \frac{a_{n}}{2^n}+\frac{a_{n-1}}{2^{n-1}} = n+3 $$
Then solve $\,2b_{n+1}+2b_n+b_{n-1}=n+3\,$.