My task: $a_n=a_{n-1}+6a_{n-2}+30$ for $n\geq2$, $a_0=0$, $a_1=-10$
My solution $x^{2}-x-6$
$\Delta=25$
$x1=-2 $
$x2=3$
So I am gonna use following formula: $a_n=ar^{n}+br^{n}$
$a_n=a*(-2)^{n}+b*3^{n}$
$a_0=0=a+b$
$a_1=-10=-2a+3b$
$b=-2$
$a=2$
$a_n=2*(-2)^{n}-2*3^{n}+30$
I calculate $a_2$
$a_2=-10+0+30=20$
Which is correct with above formula
$a_2=2*(-2)^{2}-2*3^{2}+30=20$
but for $a_3$ and above results are not matching, am I doing something wrong here?