0

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}}$?

Harikrishnan M
  • 243
  • 1
  • 13

1 Answers1

1

First thing which comes in my mind, is this:

$$x^2 = 2a^2-1 \iff x^2-a^2=a^2-1 \iff (x-a) \cdot (x+a) = (a+1) \cdot (a-1)$$

Now it's a game of finding numbers, who can be written as $pq=rs$, who obey the mentioned equation.

Dominique
  • 3,267