Let $z>y>x$ primitive pythagorean triple. Show that $z$ has a prime factorization to primes of the form $4k+1$
I tried using the fact that there exist $s,t$ such that $s$ is not congruent to $t$ modulo $2$ and $z=s^2+t^2$ but it could only get me to the point where I see that $z$ itself is of the form $4k+1$
In the case of $\,z=s^2+t^2,\,$ the $\,z$-value is the square of a hypotenuse. The smallest primitive hypotenuse values of Pythagorean triples are shown here. Two formulas for generating these are:
$$\sqrt{z}=m^2+k^2\quad\text{and}\quad \sqrt{z}=(2n-1)^2+2(2n-1)k+2k^2$$
For the first formula to work, $\,(m,k)\,$ must be of opposite parity. For the second formula, any pair of natural numbers will generate a non-trivial Pythagorean triple.
The case of $\,(m,k)=(2,1) \implies \sqrt{z}=4+1=5=1\cdot5.$
The case of $\,(n,k)=(1,1) \implies\sqrt{z}=1+2+2=5==1\cdot5.$
The case of $\,(m,k)=(7,4) \implies \sqrt{z}=49+16=65=1\cdot5\cdot13.$
The case of $\,(m,k)=(8,1) \implies \sqrt{z}=64+1=65=1\cdot5\cdot13.$
The case of $\,(n,k)=(2,4) \implies\sqrt{z}=9+24+32=65=1\cdot5\cdot13.$
No matter what integers are input, the result will always factor into primes of the form $\,4k+1.$