The GreeksMedicine and Mathematics

Euclid: Elements, Books V–X

Ratio and proportion, similar figures, prime numbers, the infinitude of primes and incommensurable lengths.

Not started Jump to practice
Volume
10 of the 1990 set
Author
Euclid (active c. 300 BC)
Work
The Elements, Books V–X c. 300 BC

Ideas: Number Shape, space and proof Logic and argument

Read the full text, free: Heath translation, vol. 2, Books III–IX (Cambridge, 1908), Internet Archive · Heath translation, vol. 3, Books X–XIII (Cambridge, 1908), Internet Archive

For young readers

About ages 8 to 12. Read it together, or on your own.

In the middle of his book, Euclid stops drawing triangles and starts thinking about numbers. He asks questions you can explore with counters or blocks.

Some numbers can be made into a rectangle of dots in more than one way: 12 dots can be 3 rows of 4, or 2 rows of 6. Others, like 7 or 13, only make a single row. Those are the prime numbers. Euclid proved something amazing about them: they never run out. However many primes you list, there is always another.

Key idea

Euclid's trick for finding a new prime: multiply all the primes on your list and add 1. The answer can't be divided evenly by any prime on your list, so its prime factors are new ones.

Try this

Try it. Start with the primes 2, 3 and 5. Multiply: 2 × 3 × 5 = 30. Add 1: 31. Try dividing 31 by 2, 3 and 5. There is always 1 left over! (31 happens to be prime itself.) Now try 2 × 3 × 5 × 7 × 11 × 13 + 1 = 30,031. It isn't prime: 30,031 = 59 × 509. But 59 and 509 are new primes, not on the list. Euclid's argument works either way.
Euclid's way to find the biggest number that measures two others: keep cutting the biggest squares you can out of a rectangle. Press Cut.

Euclid also found perfect numbers: numbers equal to the sum of their smaller divisors. 6 = 1 + 2 + 3 is the first. 28 = 1 + 2 + 4 + 7 + 14 is the next.

For teens and adults

The full lesson.

Who, when and why

Books V to X of the Elements (Euclid, Alexandria, c. 300 BC) tackle a crisis in Greek mathematics. The Pythagoreans had hoped that everything could be measured by whole numbers. Then someone discovered that the diagonal of a square and its side have no common measure: no unit, however small, fits a whole number of times into both. Their ratio is what we call $\sqrt{2}$, and it is not a ratio of whole numbers.

If lengths can't always be compared as numbers, how can geometry use ratios at all? Book V gives the answer, a theory of proportion credited by ancient writers to Eudoxus of Cnidus (c. 390–c. 340 BC). It defines when two ratios are equal without needing them to be ratios of whole numbers. Book VI then applies it to similar figures.

BookSubjectA landmark
VRatio and proportion for any magnitudesDefinition 5: when ratios are "in the same ratio" (Eudoxus)
VISimilar figuresVI.2: a line parallel to one side of a triangle cuts the other two sides proportionally
VIIWhole numbers: divisibilityVII.1–2: the Euclidean algorithm
VIIINumbers in continued proportiongeometric sequences such as 3, 6, 12, 24
IXMore on numberIX.20: there are infinitely many primes; IX.36: how to make perfect numbers
XIncommensurable linesa long classification of lines like $\sqrt{a} + \sqrt{b}$; X.1 is a first step toward limits

Euclid's algorithm

Book VII, Proposition 2 shows how to find the greatest common measure of two numbers: subtract the smaller from the larger again and again (or, as we say now, divide and keep the remainder) until the remainder measures the number before it. If the process ends at the unit, the numbers are prime to one another (VII.1). It is one of the oldest procedures still in daily use: computers run it to reduce fractions and in the arithmetic behind encryption.

Choose a length and width, then cut. The side of the last square is the greatest common measure.

Worked example: A greatest common measure

Find the greatest common measure of 1,071 and 462 by Euclid's method.
  1. $1071 = 2 \times 462 + 147$
  2. $462 = 3 \times 147 + 21$
  3. $147 = 7 \times 21 + 0$
  4. The last nonzero remainder, 21, measures both numbers. No larger number does.

Answer: 21

The primes never run out

Prime numbers are more than any assigned multitude of prime numbers.

Euclid, Elements, Book IX, Proposition 20. Translated by Thomas L. Heath (Cambridge University Press, 1908). Internet Archive.

Euclid's proof takes three primes A, B and C, multiplies them and adds the unit. The new number is either prime itself, or it has a prime factor, and that factor can't be A, B or C, because each of those leaves a remainder of 1. Either way there is a prime not on the list. The same argument works for a list of any length. Notice how careful he is: he does not say "infinitely many", a phrase Greek mathematicians avoided. He says that for any list, there are more.

Common mistake

Thinking that $2 \times 3 \times 5 \times \dots \times p + 1$ is always prime. It isn't: $2 \times 3 \times 5 \times 7 \times 11 \times 13 + 1 = 30{,}031 = 59 \times 509$. Euclid never claimed it was. He only needs it to have a prime factor that is not on the list.

Perfect numbers

If as many numbers as we please beginning from an unit be set out continuously in double proportion, until the sum of all becomes prime, and if the sum multiplied into the last make some number, the product will be perfect.

Euclid, Elements, Book IX, Proposition 36. Translated by Thomas L. Heath (Cambridge University Press, 1908). Internet Archive.

Worked example: Euclid's recipe

Use IX.36 to find the third perfect number.
  1. Double from the unit and add as you go: 1 + 2 = 3 (prime), 1 + 2 + 4 = 7 (prime), 1 + 2 + 4 + 8 = 15 (not prime), 1 + 2 + 4 + 8 + 16 = 31 (prime).
  2. The first two primes give $3 \times 2 = 6$ and $7 \times 4 = 28$.
  3. The next prime sum, 31, times the last number added, 16, gives $31 \times 16 = 496$.
  4. Check: the parts of 496 are 1, 2, 4, 8, 16, 31, 62, 124, 248, which add to 496.

Answer: 496

What later mathematics kept, and what it changed

  • Kept: the Euclidean algorithm, the infinitude of primes and IX.36 are all still taught, with the same proofs.
  • Finished: in the 1700s Leonhard Euler proved the converse for even numbers: every even perfect number comes from Euclid's recipe. Whether any odd perfect number exists is still unknown.
  • Changed: Eudoxus's theory of proportion was rebuilt in 1872 by Richard Dedekind, whose definition of the real numbers follows Book V's Definition 5 closely. Today we treat $\sqrt{2}$ as a number; Euclid treated it as a ratio of lines.

Going deeper

Context, the big questions, and how later books answered.

Number and magnitude

Euclid keeps two worlds apart. Numbers (Books VII–IX) are collections of units: 1 is not even a number for him, just the unit. Magnitudes (Books V, VI, X) are lengths, areas and volumes, which can be divided without end. The discovery of incommensurables is why: some magnitudes simply are not counts of a common unit. Much of the history of mathematics from Descartes to Dedekind is the story of joining the two worlds back together into one number line.

Book X, the longest in the Elements, sorts 13 kinds of irrational lines. Its first proposition, that halving again and again eventually leaves something smaller than any given magnitude, is the basis of the "method of exhaustion" used in Book XII and by Archimedes, an ancestor of the limits of calculus.

Big questions

  • Are numbers discovered or invented? Euclid's primes were there before anyone counted them, weren't they?
  • Why should a proof that something exists (another prime) be satisfying even when it doesn't hand you the thing?
  • Euclid's algorithm is 2,300 years old and is now part of the arithmetic of computer encryption. What other old ideas have found new uses?

Nicomachus, later on this ladder, covers much of the same number lore as Books VII–IX but without proofs, by listing examples. Comparing the two shows the difference between knowing that something is true and knowing why.

Talk about it together

  1. Euclid proved the primes never run out, without listing them all. How can you know something about a list you can never finish?
  2. Try Euclid's "multiply and add 1" trick on 2 and 3, then on 2, 3, 5 and 7. What do you get each time?
  3. Why might the discovery that the diagonal and side of a square have no common measure have upset people who believed "all is number"?
  4. Perfect numbers have no practical use that anyone knows of, yet people have hunted them for 2,000 years. Why do people study things that have no use?
  5. Is there a difference between knowing that something is true and knowing why? Give an example from everyday life.

Related on this site

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

@teddyrookbook GitHub Sources and credits