I'm told that if $r^2 + s^2 = z^2$ then $(r+s)^2 + (r-s)^2 = 2z^2$, which is obvious. But i'm trying to show that every integer solution to $x^2 + y^2 = 2z^2$ arises this way from a Pythagorean Triple (r,s,z) and then go on to find the general solution of $x^2 + y^2 = 2z^2$ where $gcd(x,y,z)=1$.
I started by saying that $a,b \in \mathbb{Z}$ was an integer to solution to $x^2 + y^2 = 2z^2$, then $a^2 + b^2 = 2z^2$ and then trying to show that there exist some $a_1 , b_1$ such that $a = a_1 + b_1$, $b=a_1 - b_1$, but i haven't seem to have gotten anywhere. I find myself going in circles. Any tips?
