# Mathematics in Egyptian Papyri

In the article An overview of Egyptian mathematics at THIS LINK we looked at some details of the major Egyptian papyri which have survived. In this article we take a detailed look at the mathematics contained in them.

The Rhind papyrus

Ahmes, in the Rhind papyrus, illustrates the Egyptian method of multiplication in the following way. Assume that we want to multiply 41 by 59. Take 59 and add it to itself, then add the answer to itself and continue:-
  41             59
_________________
1             59
2            118
4            236
8            472
16            944
32           1888
_________________


Since 64 > 41, there is no need to go beyond the 32 entry. Now go through a number of subtractions

41 - 32 = 9, 9 - 8 = 1, 1 - 1 = 0

to see that 41 = 32 + 8 + 1. Next check the numbers in the right hand column corresponding to 32, 8, 1 and add them.
  41             59
_________________
1             59 ✓
2            118
4            236
8            472 ✓
16            944
32           1888 ✓
_________________
2419

Notice that the multiplication is achieved with only additions, notice also that this is a very early use of binary arithmetic (see below). Reversing the factors we have:
    59             41
_________________
1             41 ✓
2             82 ✓
4            164
8            328 ✓
16            656 ✓
32           1312 ✓
_________________
2419

Notice that for this method to work we need to know that ever number is the sum of powers of 2. The ancient Egyptians would not have had a proof of this, nor would have appreciated that a proof was necessary. They would just know from practical experience that it could always be done. Basically we can think of the method as writing one of the numbers to base 2. In the examples above we have written

$41 = 1.2^{0} + 0.2^{1} + 0.2^{2} + 1.2^{3} + 0.2^{4} + 1.2^{5}$

and

$59 = 1.2^{0} + 1.2^{1} + 0.2^{2} + 1.2^{3} + 1.2^{4} + 1.2^{5}$.

Division works also using doubling. For example to divide 1495 by 65 we proceed as follows:
     1             65
2            130
4            260
8            520
16           1040

We stop at this point because the next doubling will take us beyond 1495. Now we look for numbers in the right hand column which add up to 1495. We see that 1040 + 260 + 130 + 65 = 1495 and we tick the rows in which these numbers occur:
     1             65 ✓
2            130 ✓
4            260 ✓
8            520
16           1040 ✓

Now add the numbers in the left hand column which are in ticked rows:

16 + 4 + 2 + 1 = 23,

so 1495 divided by 65 is 23.

What happens if the numbers do not divide exactly? Then the Egyptian method will yield fractions as the following example shows.

To divide 1500 by 65 proceed as before:
     1             65
2            130
4            260
8            520
16           1040

Again we stop since the next doubling takes us beyond 1500. Now look for the numbers in the right hand column which add to a number n with 1500-65 < $n$1500. [The Egyptians knew that this was always possible: can you prove that this is so?] In this case we have

1040 + 260 + 130 + 65 = 1495

and we are 5 short of our sum. Again tick the rows with these entries:
     1             65 ✓
2            130 ✓
4            260 ✓
8            520
16           1040 ✓

Now add the numbers in the left hand column which are in ticked rows:

16 + 4 + 2 + 1 = 23,

so 1500 divided by 65 is 23 and $\large\frac{5}{65}\normalsize = \large\frac{1}{13}\normalsize$ remaining. Hence the answer is $23 \large\frac{1}{13}\normalsize$.

We have cheated a little here for the fraction obtained is a unit fraction, that is a number of the form 1/n for n an integer. In fact the Egyptians only had fractions of this type and if the answer had not involved a unit fraction then the Egyptians would have written the fractional part as the sum of unit fractions. We see below how this was done but we examine a more general case.

The next problem is how to multiply and divide numbers involving fractions. The first important point is that the Egyptians only used unit fractions, and to be able to calculate a table was needed to convert twice a unit fraction into a sum of unit fractions. Now it might be supposed that doubling the unit fraction $\large\frac{1}{5}\normalsize$ would be easy and yield the sum of the unit fractions $\large\frac{1}{5}\normalsize + \large\frac{1}{5}\normalsize$. However, for reasons which we do fully understand, this was not their approach. They wrote twice a unit fraction as the sum of distinct unit fractions. For example twice $\large\frac{1}{5}\normalsize$ would be written as $\large\frac{1}{3}\normalsize + \large\frac{1}{15}\normalsize$.

The Rhind papyrus gives a table for doubling unit fractions $\large\frac{1}{n}\normalsize$ for $n$ odd, $n$ between 5 and 101. Note that Ahmes did not need to give the double of $\large\frac{1}{n}\normalsize$ for $n$ even since it is just $\large\frac{1}{m}\normalsize$ where $n = 2m$. The doubling table for unit fractions begins

Unit fraction  Double unit fraction
____________________________________
1/5      1/3  + 1/15
1/7      1/4  + 1/28
1/9      1/6  + 1/18
1/11
1/13
1/15     1/10 + 1/30
1/17     1/12 + 1/51 + 1/68
....     ..................

It is remarkable that there are no errors in the table. Certainly Ahmes would have been expert at calculating and this would not have been simply a copying exercise for him. There are few errors in the Rhind papyrus but those which there are appear to be errors of calculation, not of copying, since the incorrect result is carried forward rather than a return to the correct path which would happen from an error in copying.

There is the fascinating question of how these decompositions were found, and why some decompositions were chosen in preference to others. This is discussed in [6] and further ideas, adding and correcting information from [6], is given in [17], [18], [29] and [35]. The favourite rules which many historians such as Gillings believe guided the scribes in their choice of decomposition of $\large\frac{2}{n}\normalsize$ into unit fractions are (1) prefer small numbers (2) the fewer terms the better, and never more than four (3) prefer even to odd numbers. However other historians such as Bruins argues against such rules. His argument is essentially that before applying these rules one would need to work out all unit decompositions of $\large\frac{2}{n}\normalsize$ and there is no evidence that the Egyptians had any methods to do this.

As an example of how to use the table, let us examine Problem 21 of the Rhind papyrus. Note that $\large\frac{2}{3}\normalsize$ was an allowable Egyptian fraction despite not being a unit fraction.

Problem 21: Complete $\large\frac{2}{3}\normalsize$ and $\large\frac{1}{15}\normalsize$ to 1.

In modern terms, this asks for a fraction $x$ such that
$\large\frac{2}{3}\normalsize + \large\frac{1}{15}\normalsize + x = 1$.
The method of solution was to "get rid of" the fractions by multiplying through. In this case multiply each fraction by 15 to obtain
$10 + 1 + y = 15$.
This is called the "red auxiliary" equation since the scribe wrote this equation in red ink. [Of course it would not appear in this form but rather "complete 10 and 1 to 15".]

Now the answer to the red auxiliary equation is 4 so the original equation had solution twice × (twice × $\large\frac{1}{15}\normalsize$). From the doubling table we see that double $\large\frac{1}{15}\normalsize$ is $\large\frac{1}{10}\normalsize + \large\frac{1}{30}\normalsize$. Doubling this gives $\large\frac{1}{5}\normalsize + \large\frac{1}{15}\normalsize$ which is the required solution to Problem 21.

Another example of solving an equation is Problem 24 which asks:

Problem 24: A quantity added to a quarter of that quantity become 15. What is the quantity?

Ahmes uses the "method of false position" which was still a standard method three thousand years later. In modern notation the problem is to solve
$x + \large\frac{x}{4}\normalsize = 15$.
Ahmes guesses the answer $x = 4$. This is to remove the fraction in the $x/4$ term. Now with $x = 4$ the expression $x + x/_{4}$ becomes 5. This is not the correct answer, for the expression is required to equal 15. However, 15 is 3 times 5 so taking 3 times his guess of $x = 4$, namely $x = 12$, gives Ahmes the correct result. Another interpretation, favoured by some historians, is that Ahmes thought of the method as dividing $x$ into 4 equal pieces of a size to be determined. Now Ahmes computes $x + x/_{4}$ getting 5 of these equal pieces. Each piece must now be three so that 5 pieces equals 15. Not very different to our previous way of thinking, but one which is likely to come closer to Ahmes' way of thinking than our former description. Finally Ahmes checks his solution, or proves his answer is correct. He takes $x = 4 \times 3 = 12$. Then $x/_{4} = 3$, so $x + x/_{4} = 15$ as required.

The methods of false position is used in Problems 24 to 29 of the Rhind Papyrus. However, in Problem 31 of the Papyrus Ahmes uses the simpler method of pure division. This is discussed in detail in [31].

Let us now see how to multiply, using Egyptian methods, $1 + \large\frac{1}{3}\normalsize + \large\frac{1}{5}\normalsize$ by $30 + \large\frac{1}{3}\normalsize$.
   1  1 + 1/3  + 1/5
2  2 + 2/3  + 1/3 + 1/15 = 3 + 1/15
4  6 + 1/10 + 1/30
8  12 + 1/5  + 1/15
16  24 + 1/3  + 1/15 + 1/10 + 1/30
2/3  2/3 + 1/6  + 1/18 + 1/10 + 1/30
1/3  1/3 + 1/12 + 1/36 + 1/20 + 1/60

Now here the row beginning $\large\frac{2}{3}\normalsize$ has been computed from $\large\frac{2}{3}\normalsize$ of 1 is $\large\frac{2}{3}\normalsize , \large\frac{2}{3}\normalsize$ of $\large\frac{1}{3}\normalsize$ is double $\large\frac{1}{9}\normalsize$ which is $\large\frac{1}{6}\normalsize +\large\frac{1}{18}\normalsize , \large\frac{2}{3}\normalsize$ of $\large\frac{1}{5}\normalsize$ is double $\large\frac{1}{15}\normalsize$ which is $\large\frac{1}{10}\normalsize + \large\frac{1}{30}\normalsize$.

Next find the numbers in the left hand column which add to $30+\large\frac{1}{3}\normalsize$. These are the rows marked with a tick:
   1  1 + 1/3  + 1/5
2  3 + 1/15          ✓
4  6 + 1/10 + 1/30        ✓
8  12 + 1/5  + 1/15        ✓
16  24 + 1/3  + 1/15 + 1/10 + 1/30   ✓
2/3  2/3 + 1/6  + 1/18 + 1/10 + 1/30
1/3  1/3 + 1/12 + 1/36 + 1/20 + 1/60  ✓

Add the entries in the right hand column of the rows which are ticked to get the result of the multiplication

46 + 1 /5 + 1 /10 + 1 /12 + 1 /15 + 1 /30 + 1 /36 .

As a final look at the Rhind papyrus let us give the solution to Problem 50. A round field has diameter 9 khet. What is its area? Here is the solution as given by Ahmes.

Take away 1 /9 of the diameter, namely 1; the remainder is 8. Multiply 8 times 8; it makes 64. Therefore it contains 64 setat of land.

Do it thus:
     1   9
1/9   1

this taken away leaves 8
   1   8
2   16
4   32
8   64

Its area is 64 setat.

Notice that the solution is equivalent to taking π = 4(8 /9 )2 = 3.1605. This is a remarkable result if one considers the date at which this approximation must have been discovered. The intriguing question is raised as to how such a discovery might have been made. Although we have no way of ever knowing this with certainty, several interesting conjectures have been suggested. In [25] Gerdes gives three ideas which might have led the Egyptians to this result. Two such conjectures suggested in [25] concern African crafts where a snake curve and a set of equidistant concentric rings are often seen. These two geometric designs are widespread in Africa and Gerdes shows how these could have led to a formula for the area of a circle. The third conjecture in [25] relates to a board game "mancala" which was popular throughout Africa and ancient Egypt. The game involves comparing small circles with larger circles and may have provided the motivation for the area formula.

The Moscow papyrus

Although the mathematical methods we have described are found in various Egyptian documents, all the actual examples we have given so far have come from Rhind papyrus. Let us finish this article by looking at an example from the Moscow papyrus which many historians argue is the most impressive achievement of Egyptian mathematics. The problem is number 14 from the papyrus and it concerns the geometrical figure visible in the portion of Moscow papyrus seen in this image.

Example 14. Example of calculating a truncated pyramid. The base is a square of side 4 cubits, the top is a square of side 2 cubits and the height of the truncated pyramid is 6 cubits.

First we remark that by "calculate a pyramid" the author means "calculate the volume of the pyramid". Also not how appropriate this calculation is for the civilisation which today is universally known for the remarkable construction of pyramids.

The calculation begins by working out the area of the base: 4 × 4 = 16. Then the area of the top is worked out: 2 × 2 = 4. Next the product of the side of the base with the side of the top is computed: 4 × 2 = 8. These three are then added: 16 + 4 + 8 = 28. Now $\large\frac{1}{3}\normalsize$ of the height is taken, namely 2. Finally the product of $\large\frac{1}{3}\normalsize$ of the height with the previous sum of 28 is taken and the scribe writes:-
Behold it is 56.
This example means that the Egyptian knew the formula for the volume (although of course not in the algebraic sense which we now think of formulas). If the base square has side $a$, the top square has side $b$, and the height is $h$ then
$V = \large\frac{1}{3}\normalsize h (a^{2} + ab + b^{2})$.

### References (show)

1. A Aaboe, Episodes from the Early History of Mathematics (1964).
2. R Calinger, A conceptual history of mathematics (Upper Straddle River, N. J., 1999).
3. A B Chace, L S Bull, H P Manning and R C Archibald, The Rhind Mathematical Papyrus (Oberlin, Ohio, 1927-29).
4. M Clagett, Ancient Egyptian science : a source book. Vol. 3. Ancient Egyptian mathematics (Philadelphia, PA, 1999).
5. S Couchoud, Mathématiques égyptiennes: Recherches sur les connaissances mathématiques de l'égypte pharaonique (Paris, 1993).
6. R J Gillings, Mathematics in the Time of the Pharaohs (Cambridge, MA., 1982).
7. G Ifrah, A universal history of numbers : From prehistory to the invention of the computer (London, 1998).
8. G G Joseph, The crest of the peacock (London, 1991).
9. E Lundsgaard, Egyptisk Matematik (Copenhagen, 1945).
10. B L van der Waerden, Science Awakening (Groningen, 1954).
11. B L van der Waerden, Geometry and Algebra in Ancient Civilizations (New York, 1983).
12. B L van der Waerden, Ontwakende Wetenschap. Egyptische, Babylonische en Griekse Wiskunde (Groningen, 1950).
13. M H Ahmadi, On Egyptian fractions, in Proceedings of the 21st. Annual Iranian Mathematics Conference, Isfahan, 1990 (Isfahan, 1992), 1-20.
14. E M Bruins, Ancient Egyptian arithmetic: 2/N, Nederl. Akad. Wetensch. Proc. Ser. A. Indagationes Math. 14 (1952), 81-91.
15. E M Bruins, On the approximation to π/4 in Egyptian geometry (Dutch), Nederl. Akad. Wetensch. Indagationes Math. 7 (1945), 11-15.
16. E M Bruins, The Egyptian shadow clock, Janus 52 (1965), 127-137.
17. E M Bruins, Egyptian arithmetic, Janus 68 (1-3) (1981), 33-52.
18. E M Bruins, Reducible and trivial decompositions concerning Egyptian arithmetics, Janus 68 (4) (1981), 281-297.
19. E M Bruins, The part in ancient Egyptian mathematics, Centaurus 19 (4) (1975), 241-251.
20. M Caveing, Le statut arithmétique du quantième égyptien, in Histoire de fractions, fractions d'histoire (Basel, 1992), 39-52; 403; 409.
21. L de Freitas, Notes on some pentagonal "mysteries" in Egyptian and Christian iconography, in Fivefold symmetry (River Edge, NJ, 1992), 307-332.
22. M Dunton and R E Grimm, Fibonacci on Egyptian fractions, Fibonacci Quart. 4 (1966), 339-354.
23. P Ernest, On the adequacy of the Egyptian representation of fractions, Bull. Inst. Math. Appl. 16 (10) (1980), 219-221.
24. S Gandz, A few notes on Egyptian and Babylonian mathematics, in Studies and Essays in the History of Science and Learning Offered in Homage to George Sarton on the Occasion of his Sixtieth Birthday, 31 August 1944 (New York, 1947), 449-462.
25. P Gerdes, Three alternate methods of obtaining the ancient Egyptian formula for the area of a circle, Historia Math. 12 (3) (1985), 261-268.
26. R J Gillings, The Egyptian 2/3 table for fractions, The Rhind mathematical papyrus (B.M. 10057-8), Austral. J. Sci. 22 (1959), 247-250.
27. R J Gillings, The Recto of the Rhind Mathematical Papyrus and the Egyptian mathematical leather roll, Historia Math. 6 (4) (1979), 442-447.
28. R J Gillings, The recto of the Rhind Mathematical Papyrus : How did the ancient Egyptian scribe prepare it?, Arch. History Exact Sci. 12 (1974), 291-298.
29. R J Gillings, The Egyptian Mathematical Leather Role - line 8 : How did the scribe do it?, Historia Math. 8 (4) (1981), 456-457.
30. M Guillemot, De l'arithmetique égyptienne à l'arithmetique arabo-islamique, in Deuxième Colloque Maghrebin sur l'Histoire des Mathématiques Arabes, Tunis, 1988 (Tunis, 1990), 95-105.
31. M Guillemot, Les méthodes de simple fausse position dans les mathématiques égyptiennes et les mathématiques arabes, in Histoire des mathématiques arabes, Vol. 2 Tipaza, 1990 (Algiers, 1998), 125-145.
32. M Guillemot, Les notations et les pratiques opératoires permettent-elles de parler de "fractions égyptiennes"?, in Histoire de fractions, fractions d'histoire (Basel, 1992), 53-69; 403; 409.
33. R Lehti, Geometry of the Egyptians (Finnish), Arkhimedes (2) (1971), 15-28.
34. B Lumpkin, Note: the Egyptians and Pythagorean triples, Historia Math. 7 (2) (1980), 186-187.
35. A E Raik, On the theory of Egyptian fractions (Russian), Istor.-Mat. Issled. No. 23 (1978), 181-191; 358.
36. C S Rees, Egyptian fractions, Math. Chronicle 10 (1-2) (1981/82), 13-30.
37. G R Rising, The Egyptian use of unit fractions for equitable distribution, Historia Math. 1 (1) (1974), 93-94.
38. G Robins and C C D Shute, Mathematical bases of ancient Egyptian architecture and graphic art, Historia Math. 12 (2) (1985), 107-122.
39. C S Roero, Egyptian mathematics, in I Grattan-Guinness (ed.), Companion Encyclopedia of the History and Philosophy of the Mathematical Sciences (London, 1994), 30-45.
40. G J Toomer, Mathematics and Astronomy, in J R Harris (ed.), The Legacy of Egypt (Oxford, 1971), 27-54.
41. I N Veselovskii, Egyptian science and Greece, Akad. Nauk SSSR. Trudy Inst. Istorii Estestvoznaniya 2 (1948), 426-498.
42. W Wendrich, Ancient Egyptian rope and knots, in History and science of knots (River Edge, NJ, 1996) 43-68.
43. S A Yanovskaya, On the theory of Egyptian fractions (Russian), Akad. Nauk SSSR. Trudy Inst. Istorii Estestvoznaniya 1 (1947), 269-282.