Pythagorean Triple

Definition (Pythagorean triple)

A Pythagorean Triple is a triple of natural numbers (a,b,c)(a,b,c) such that a2+b2=c2a^{2}+b^{2}=c^{2}.

Definition (Primitive)

A Pythagorean triple, (a,b,c)(a,b,c), is said to be primitive, if gcd(a,b,c)=1gcd(a,b,c)=1

Theorem (Writing Primitive Pythagorean Triples)

Any (a,b,c)(a,b,c) can be written as a=u2v2, b=2uv, c=u2+v2, (u,v)=1(1)\tag{1}a=u^{2}-v^{2}, \ b=2uv, \ c=u^{2}+v^{2}, \ (u,v)=1with u,vZu,v\in\mathbb{Z} of opposite parity and u>vu>v. Conversely, if uu and vv are any two coprime integers of opposite parity, then (1)(1) gives a primitive Pythagorean triple.