Find the closed formula for the recursive sequence defined by $a_0 = 4$, $a_1 = 12$, $a_n = 6a_{n-1}-a_{n-2}$ for $n>1$. This question is stumping me. I don't know any methods besides guess and check.
Current progress:
The first five terms are $4, 12, 68, 396, 2308$.
Each term is divisible by four, yielding $1, 3, 17, 99, 577$
Each of these is off of a perfect square by one or negative one $0-1, 4-3, 16-17, 100-99, 576-577$ = $-1,1,-1,1,-1$
Other than that I'm lost. Any help would be appreciated.
The characteristic equation is $x^2-6x+1$ with roots $3\pm\sqrt8$. Thus all sequences satisfying the given second-order recurrence have closed form $A(3+\sqrt8)^n+B(3-\sqrt8)^n$, with the initial conditions giving $A$ and $B$: $$A+B=4,A(3+\sqrt8)+B(3-\sqrt8)=12\implies A=B=2$$ Thus $a_n=2(3+\sqrt8)^n+2(3-\sqrt8)^n$.