How do I find a generating function for $a_n= a_{n-1}+2a_{n-2}$+3 using sigma notation? with initial conditions $a_0$ =2 and $a_1$ = 2. I'm mainly confused by how to deal with the "+3" at the end. Thanks!
What I've done so far is: $\sum\limits_{n=0}^\infty a_n x^n = 2 + 2x+ \sum\limits_{n=2}^\infty (a_{n-1}+2a_{n-2} +3)x^n $
$\sum\limits_{n=2}^\infty (a_{n-1}+2a_{n-2} +3)x^n $ = $x\sum\limits_{n=1}^\infty a_{n-1}x^n$ +$2x^2 \sum\limits_{n=0}^\infty a_{n-2} x^n $ + $\frac{3}{(1-x)}$
$a_{n+2}+\frac32=a_{n+1}+\frac32+2(a_n+\frac32)$. Now put: $b_n=a_n+\frac32\,$, then: $b_{n+2}=b_{n+1}+2b_n$