Find all $x$ for that $x^2 + (x+1)^2$ is a square

How to locate natural $x$ for that $x^2 + (x+1)^2$ is an excellent square?

0
2019-05-07 13:22:37
Source Share
Suppose $x^2 + (x+1)^2 = y^2$. We can revise it as $(2x+1)^2 + 1 = 2y^2$ or $(2x+1)^2 - 2y^2 = -1$.
If $z=2x+1$ after that we have $z^2 - 2y^2 = -1$. This is Pell's equation. Wikipedia write-up demonstrates how to address it.