triangle


Related things - Pythagorean triples
Triples like (3,4,5) have the property that 5² = 3²+4². They could be the measurements of the sides of a right-angled triangle and are called Pythagorean triples.
(6,8,10) is another such triple, as is (5,12,13). There are infinitely many of these.

Both Pythagoras and the Babylonians used the formulas 2m, m²-1, m²+1 to generate such triples.

A version known to the early Greeks was 2pq, p²+q² and p²-q² based on two different integers p and q. These three numbers will form a Pythagorean triple.
Enter two positive integers:p:q: a Pythagorean Triple:
If p and q are relatively prime (have no factors in common) and not both odd then the above method will produce a triple that is irreducable.
In any Pythagorean triple, one integer is always divisable by 3 and another (maybe the same one) by 5. The product of the two smaller integers is divisable by 12 and the product of all three is divisable by 60.