$a+n^2$ is the sum of two perfect squares for a given positive integer $a$ and all positive integers $n$. Show that $a$ is a perfect square.
At first I thought of putting a bound on the difference between perfect squares up to a point, like maybe choosing $n=c$ so that one of the squares on the right hand side is the smallest, to try and show that if $a = x^2 + k< (x+1)^2$ that there would have to be two pairs of squares with the same difference, but I can't seem to work out the details