Theorem
Any primitive Pythagorean triple (a,b,c) can be written as a=u2−v2, b=2uv, c=u2+v2, (u,v)=1(1)with u,v∈Z of opposite parity and u>v. Conversely, if u and v are any two coprime integers of opposite parity, then (1) gives a primitive Pythagorean triple.