Let $a_{n+2} + a_{n+1} - 6a_n = 0$ and $a_1=1, a_0 = 0$ be given. How do we solve such a difference equation?
I set $a_n =Aw^n$. Then, we get $Aw^{n+2}-Aw^{n+1}-6Aw^n =0$. After that we have $(r^2+r-6)=0$ and $r=w^n = -3,2$.
I plug $-3$ in the first equation and it is satisfied but $2$ does not satisyfing it. What can I do next?
The characteristic equation is $$ r^2+r-6=0\iff(r+3)(r-2)=0\iff r=-3,2. $$
Thus, the solution is $$ a_n=c_{1}(-3)^{n}+c_{2}2^n $$ for some $c_{1},c_{2}\in\mathbb{R}$ (as $(-3)^n$ and $2^n$ are linearly independent in a two dimensional solution space). Use the fact that $a_{0}=0$ and $a_{1}=1$ to determine the $c_{i}$.