Illustration 1 for “Pythagorean Arithmetic: Pythagorean Triples”
· Source

The Pythagoreans studied solutions in natural numbers to the indeterminate equation:

x^{2} + y^{2} = z^{2}

Today this is called the Pythagorean problem, and its solutions, triples of natural numbers x, y, z, are called Pythagorean triples.

Pythagoras in the Roman Forum. Roman marble copy of a Greek original from the 2nd–1st centuries BCE. Colosseum collection, Rome, Italy (Colosseum, Rome, Musei Capitolini, Italy). Photo: Wikimedia Commons, 2013-03-04
Pythagoras in the Roman Forum. Roman marble copy of a Greek original from the 2nd–1st centuries BCE. Colosseum collection, Rome, Italy (Colosseum, Rome, Musei Capitolini, Italy). Photo: Wikimedia Commons, 2013-03-04 · Source

This number-theoretic problem is connected with a geometrical one: find all right triangles with integer legs x, y and hypotenuse z. Particular solutions were known in Egypt and Babylon. The papyri contain a right triangle with sides in the ratio 3 : 4 : 5, still called an Egyptian triangle today. It enabled people in antiquity to construct right angles.

Construction of the smallest Pythagorean triple: 3² + 4² = 5²
Construction of the smallest Pythagorean triple: 3² + 4² = 5² · Source

The Pythagoreans found infinitely many triples of the form:

x = m,
y = 1 / 2 (m^{2} - 1),
z = 1 / 2 (m^{2} + 1),

where m is odd.

The general solution for relatively prime numbers x, y, z appears in Diophantus (3rd century CE):

x = 2pq,
y = p^{2} - q^{2},
z = p^{2} + q^{2},
(p, q) = 1.

These are also known as Euclid’s formulas. They imply that infinitely many Pythagorean triples exist.

Statue of Euclid in the Oxford University Museum of Natural History, Great Britain. Euclid holds a scroll with a diagram of the Pythagorean theorem. Photo: Mark A. Wilson, 2008-03-15
Statue of Euclid in the Oxford University Museum of Natural History, Great Britain. Euclid holds a scroll with a diagram of the Pythagorean theorem. Photo: Mark A. Wilson, 2008-03-15 · Source

The possible values of z in Pythagorean triples form sequence A009003 in the OEIS (On-Line Encyclopedia of Integer Sequences).

Pythagorean triples have many remarkable properties that are subjects of specialized research. These properties are also used to solve certain number-theoretic problems, such as indeterminate equations of the second degree. Pythagorean triples are used in cryptography as random sequences for generating keys.

Plimpton 322, a Babylonian tablet 3700 years old. Its rows describe a sequence of side ratios of right triangles whose inclination steadily decreases, representing the beginnings of trigonometry. This important ancient scientific artefact was probably made in the Sumerian city of Larsa, near modern Tell as-Senkereh in southern Iraq. The tablet was most likely written between 1822–1762 BCE, approximately during the reign of Hammurabi, the sixth king of the First Babylonian Dynasty. It was discovered in the early 1900s by the archaeologist, scholar and adventurer Edgar J. Banks, the model for the fictional Indiana Jones. In the 1920s Banks sold it to George Arthur Plimpton, an American publisher and philanthropist. Plimpton bequeathed his entire collection of mathematical artefacts to Columbia University in 1936; it is now held there in the Rare Book and Manuscript Library in New York
Plimpton 322, a Babylonian tablet 3700 years old. Its rows describe a sequence of side ratios of right triangles whose inclination steadily decreases, representing the beginnings of trigonometry. This important ancient scientific artefact was probably made in the Sumerian city of Larsa, near modern Tell as-Senkereh in southern Iraq. The tablet was most likely written between 1822–1762 BCE, approximately during the reign of Hammurabi, the sixth king of the First Babylonian Dynasty. It was discovered in the early 1900s by the archaeologist, scholar and adventurer Edgar J. Banks, the model for the fictional Indiana Jones. In the 1920s Banks sold it to George Arthur Plimpton, an American publisher and philanthropist. Plimpton bequeathed his entire collection of mathematical artefacts to Columbia University in 1936; it is now held there in the Rare Book and Manuscript Library in New York · Source

A generalization of the theory of Pythagorean triples is the problem of finding triples of natural numbers x, y, z such that xⁿ + yⁿ = zⁿ for some n greater than 2. In 1637 Pierre de Fermat asserted that no such triples exist, and this assertion became known as Fermat’s Last Theorem.

An interesting fact: the fractal Pythagoras tree takes its name from the way each triple of pairwise touching squares encloses a right triangle, producing the familiar illustration of the Pythagorean theorem. The tree is visibly bounded in the plane. If the largest square equals one unit, the entire tree fits in a 6 × 4 rectangle and its area is at most 24. On the other hand, each step adds twice as many triples of squares as the preceding step, with linear dimensions smaller by a factor of √2. Thus the same area is added each time, equal to the initial square’s area. It might seem that the tree’s total area must tend to infinity! There is no contradiction, however. After several iterations the squares begin to overlap and the area of the whole figure grows more slowly. It is therefore finite, although calculating its exact value is rather difficult
An interesting fact: the fractal Pythagoras tree takes its name from the way each triple of pairwise touching squares encloses a right triangle, producing the familiar illustration of the Pythagorean theorem. The tree is visibly bounded in the plane. If the largest square equals one unit, the entire tree fits in a 6 × 4 rectangle and its area is at most 24. On the other hand, each step adds twice as many triples of squares as the preceding step, with linear dimensions smaller by a factor of √2. Thus the same area is added each time, equal to the initial square’s area, namely 2. It might seem that the tree’s total area must tend to infinity! There is no contradiction, however. After several iterations the squares begin to overlap and the area of the whole figure grows more slowly. It is therefore finite, although calculating its exact value is rather difficult · Source

Read about Pythagorean triples and Pythagorean arithmetic in the book History of Mathematics.

Cover and selected pages of Mansur Gilmullin’s History of Mathematics, 2018
Cover and selected pages of Mansur Gilmullin’s History of Mathematics, 2018 · Source