I am trying to find integer solutions for $x$ $$x = \sqrt{2a^2 - 1}$$ Where $a$ is an odd integer bigger than $\mathrm{1\times10^{12}}$.
I have no idea where to start with this. Is there any general solution, except running through possible values of $a$ bigger than $\mathrm{1\times10^{12}}$?