How do you find all (non-trivial) $(x, y)$ such that $$x^2 + y^2 = 2017^2?$$
I really don't want to go through trial and error, like what I managed to do here:
So, we can rewrite the equation as $x^2 = 2017^2 - y^2 \implies x^2 = (2017 + y)(2017 - y).$ From there, I know nothing but guessing values of $y,$ which would be rather painful.
Yes, I know the Babylonian method of finding Pythagorean triples, but I figured since $2017$ is prime it would still simplify to $x^2 + y^2 = 2017^2.$
Thanks in advance for your help.
Ah, I got my Babylonian method wrong. It is for $a, b, c, m, n \in \mathbb{Z}$ such that $a^2 + b^2 = c^2$ and (WLOG) $m > n,$
\begin{align} a &= k\left(m^2 - n^2\right) \\ b &= 2kmn \\ c &= k\left(m^2 + n^2\right) \end{align}
Now that I actually can use Babylonian method this problem is much easier.
– Reality Check Mar 30 '17 at 20:48