Let $(a_n)$ be the sequence of integers defined recursively by $a_1 = a_2 = 1$ and $a_{n+2}=7a_{n+1}-a_{n}-2$ for $n \ge 1$. Prove that $a_n$ is a perfect square for every n.
I found this question in The IMO Compendium (longlisted problem 64 of IMO 1986)
I began by listing the terms as follows
$a_3 = 5^2$
$a_4 = 13^2$
$a_5 = 34^2$
$a_6 = 89^2$
$a_7 = 233^2$
Taking difference of the terms which are squared gives another sequence $(8, 21, 55, 144....)$
However I don't see the pattern in either of these. It would be appreciated if someone could help me in finding general term of these sequences, from where I believe it can be proved fairly easily.
If there is an alternate approach to this prove, even that would help.