A
Pythagorean triple is a triplet of integers a, b, c that satisfies Pythagoras's relation
a
2 + b
2 = c
2
If a, b, c are a Pythagorean triple, then for integer k, the triplet k*a, k*b, k*c are also a Pythagorean triple. In fact, if a, b, c are relatively prime or coprime, then they form a "primitive" Pythagorean triple.
Some of them have been known for some millennia, like 3,4,5 and 5,12,13.
Formulas for generating Pythagorean triples includes one from Euclid's
Elements that generates all primitive triples for integer n and m:
a = n
2 - m
2
b = 2*n*m
c = n
2 + m
2
For a primitive triple, n and m must be coprime and one of them must be even.
This formula does not generate all triples, however, an example being 9,12,15. That one is 3*(3,4,5).