A Pythagorean triple is a set of three positive integers which could be the side lengths of a right triangle - popularly known as *a ^{2} + b^{2} = c^{2}*. Some folks remember {3, 4, 5}, {5, 12, 13}, and {8, 15, 17}. Others might know {20, 21, 29}.

It turns out that every natural number greater than two is part of at least one Pythagorean triple! Enter a number between 3 and 999, then press the button to see its triples. The program finds triples for your number as *a* or *b, *not *c*. Check out the "Making Triples" to see how it's done.

Enter your number: