Any pythogorean triple is of the form $x = m^2 - n^2, y = 2mn$ and $z = m^2 + n^2$ where m and n are of different parity.