A problem appeared in a maths contest as follows: Consider a recurrence relation: $$a_{n+3}= - a_{n+2}+2a_{n+1}+ 8a_{n}$$ where the intial conditions are : $a_1=1;a_2=1;a_3=9$.
Then prove that the quantity $a_n$ is always a perfect square for any $n$. I tried to solve it using the characteristic equation method looking at the homogenous nature of it. But the roots were complex and it became near impossible to show by hand that the imaginary part would be zero and the real part would be a perfect square. Hence is there any way of without going through that route and getting a proof?
you now seem to have the coefficients correct. One approach is to find a recurrence for the square roots. There is an annoyance that we do not know whether it is a particular $\sqrt d$ or $- \sqrt d$ that should be part of that sequence. However, once chosen, there is the Number Walls technique to test whether a sequence satisfies a linear recurrence.
Carl came up with $r_1=-1, r_2=-1, r_{n+2} = -r_{n+1} - 2r_n$
Indeed, if $$\color{blue}{ r_{n+2} = \alpha r_{n+1} + \beta r_n } , \; $$ then $$ \color{blue}{ r^2_{n+3} = (\alpha^2 + \beta) r^2_{n+2} + (\beta^2 + \alpha^2 \beta ) r^2_{n+1} - \beta^3 r_n^2} \; , $$ where here we take $\alpha = \pm 1, \beta = -2 \; , \; \;$ and choose appropriate $r_1,r_2.$
Meanwhile: