Given the sequence $$a_1=a_2=1;\ a_ {n+2} = 3a_n + 2\sqrt{2a_n^2 + 2a_{n+1}^2}$$ prove that $a_n$ is an integer for all $n\in\mathbb N$.
Attempt
It is enough to show that $2a_n^2 + 2a_{n+1}^2$ is a perfect square. That means it's an even perfect square and so divisible by 4; thus $a_n^2+a_{n+1}^2=2k^2$ for some integer $k$. I think can solve this diophantine equation but I can't relate the solution to the original problem. Can anyone help?