Plimpton 322 and Babylonian Triples
Plimpton 322 is an Old Babylonian clay tablet, written around 1800 BCE, whose fifteen rows relate to Pythagorean triples. This demo generates triples with the standard rule (m²−n², 2mn, m²+n²), shows real tablet rows in base-60, and highlights a match after normalization.
m² − n² = 15 · 2mn = 8 · m² + n² = 17normalized: 8 : 15 : 17d/l in base 60 ≈ 2;07:30rule: (m² − n²)² + (2mn)² = (m² + n²)² · current: 8² + 15² = 17²
Pick m and n and the standard rule builds a right triangle. The table lists real rows from the tablet in sexagesimal notation, with the ratio d²/l² that the first column most likely records. When your triple reduces to one of the rows, it is highlighted. The tablet contains copy errors and damage, so reconstructed entries vary between editions.
What you are seeing
Choose m and n. The standard generating rule gives legs m²−n² and 2mn with hypotenuse m²+n², always satisfying a² + b² = c².
The tablet rows are displayed in sexagesimal place value: 1,59 means 1×60 + 59. The first column most likely records d²/l², which is why the long leg l is a regular number.
After dividing out the common factor, the generated triple is compared with the tablet slice. A match highlights the row, but scaling can differ from the tablet’s own multiplier.
Why it matters
Plimpton 322 shows that Babylonian scribes worked systematically with right-triangle numbers long before Pythagoras. It is also a lesson in historical caution: the numbers are clear, but what the table was for is still argued about.
Complexity & details
Generating one triple is O(1). Reducing it with the Euclidean algorithm costs O(log min(a,b)). Comparing against 15 rows is O(1).
Frequently asked questions
Does the tablet prove Babylonians knew Pythagoras’ theorem?+
It shows they used the rule a² + b² = c² and could generate exact triples. Whether they stated or proved it as a general theorem is a separate question, and the evidence does not settle it.
Is the tablet a trigonometric table?+
That reading was popularized but is widely criticized as anachronistic, since Babylonian mathematics shows no concept of measured angle. Most current scholars prefer number-theoretic, algebraic, or teaching-aid readings.