Pythagorean Triples
We wish to solve over the integers. Without loss of generality assume have no common factor. This implies that is odd (consider the equation modulo 4).
First we move to :
Claim: where is a unit and .
Proof: Suppose a prime divides . Then divides , thus must divide both sides. If also divides , then it must also divide their sum . But and are coprime, implying is a unit, which is a contradiction.
Hence we may write , from which we obtain all solutions