Pythagorean Triples


Contributed by Mickey Sheu of Naperville North High School.


Method One

Select two integers m and n, such that m > n.

Side a = m2 - n2
Side b = 2mn
Side c = m2 + n2


Method Two

Select an odd integer n, such that n ? 3.

Side a = n
Side b = ½(n2 - 1)
Side c = ½(n2 + 1)