I needed to know about Pythagorean triple in details. So I started searching in Google.
Suppose that $x$, $y$ and $z$ are relatively prime and $x^2 + y^2 = z^2$. Then I've found an interesting fact that, among $x, y$, and $z$, only $x$ or $y$ can be even. $z$ can never be.
I searched for this and haven't found the reason behind this. Would anybody please tell me the reason behind this?
This may be overkill.
if $z^2 = x^2+ y^2$ is even if and only if $x , y $ are both same parity and if $x,y,z $ are relatively prime that parity must be odd.
Let $x =2a+1$ and $y=2b+1$ and $z=2c $ and $(2a+1)^2 + (2b+1)^2 =4c^2$ so $4a^2 + 4a +4b^2 + 4b +2 = 4c^2$
So, $a^2 + a + b^2 + b + \frac 12 = c^2$. Hence, $a,b,c $ can not all be integers. So no integer pythagorean triple $x,y,z $ exists where $x,y$ are both odd.
And as $x,y$ can't be both even and relative prime to $z $ (which would also be even) primitive pythagorean triples must be such $x,y$ are opposite parity and $z $ is odd.
No triples, primitive or otherwise, can have $x,y $ both odd. $x,y,z $ can all be even, but such a triple is, of course, not primitive.