Számhármasokkal
Számhármasokkal, often translated as "number triples" or "Pythagorean triples" in English, refers to sets of three positive integers that satisfy a specific mathematical relationship. This relationship is most famously embodied by the Pythagorean theorem, which states that in a right-angled triangle, the square of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides. Therefore, a számhármasokkal is a set of three positive integers (a, b, c) such that a² + b² = c².
The most well-known example of a számhármasokkal is (3, 4, 5), because 3² + 4² = 9 + 16
Primitive számhármasokkal are those where the three integers have no common divisor greater than 1. The triple
Euclid's formula provides a method for generating all primitive Pythagorean triples. For any two positive integers