← Iris

Sides
a²+b²
Right angle
Drag the gold corner knots to reshape the triangle
Presets:
Knots:

The Egyptian rope-stretchers

The harpedonaptai (rope-stretchers) of ancient Egypt were surveyors who used knotted ropes to lay out the foundations of temples, pyramids, and agricultural plots along the Nile. After each annual flood erased property boundaries, these specialists re-established right angles and straight lines using nothing more than a loop of rope with equally spaced knots. A rope with 12 knots, when pulled taut into a triangle with sides of 3, 4, and 5 knot-intervals, produces a perfect right angle at the corner opposite the longest side. This is the simplest Pythagorean triple — three whole numbers satisfying a² + b² = c² — and it may be the oldest piece of applied mathematics in continuous use. The technique requires no measurement instruments, no calculations, and no literacy: just counting knots and pulling rope. Medieval cathedral builders used the identical method to lay out perpendicular walls, and the 3-4-5 check is still taught to carpenters today.

Pythagorean triples before Pythagoras

Pythagoras of Samos (c. 570–495 BC) is credited with the theorem, but the Babylonians knew about Pythagorean triples at least 1,200 years earlier. The Plimpton 322 clay tablet, dated to approximately 1800 BC and now held at Columbia University, contains a table of fifteen Pythagorean triples including large ones like (4601, 4800, 6649). The tablet is written in base-60 (sexagesimal) notation and appears to be organized by the ratio of the short side to the long side, suggesting it was a systematic reference table rather than a collection of lucky discoveries. Whether the Babylonians had a proof of the general theorem is unknown, but they clearly understood that certain integer triples had this special property. The Egyptians, Indians (in the Sulba Sutras, c. 800 BC), and Chinese (in the Zhoubi Suanjing, c. 1000 BC) all had independent knowledge of specific triples, making this one of the most independently re-discovered facts in the history of mathematics.

Infinitely many triples

Euclid proved in the Elements (c. 300 BC) that there are infinitely many Pythagorean triples. His parametric formula generates them all: for any two positive integers m > n with m and n coprime and not both odd, the triple (m² − n², 2mn, m² + n²) is a primitive Pythagorean triple (one where a, b, c share no common factor). Setting m=2, n=1 gives (3, 4, 5). Setting m=3, n=2 gives (5, 12, 13). Setting m=4, n=1 gives (15, 8, 17). Every primitive triple arises this way, and every non-primitive triple is a whole-number multiple of a primitive one. The 12-knot rope is special because 12 is the smallest perimeter that yields a Pythagorean triple with integer sides: 3+4+5=12. The next smallest perimeter is 30 (for the 5-12-13 triple), which is why a 12-knot rope was the surveyor’s tool of choice — it is the most economical way to produce a right angle from a closed loop with equally spaced knots.