# Egyptian fraction

Short description: Finite sum of distinct unit fractions
The Rhind Mathematical Papyrus

An Egyptian fraction is a finite sum of distinct unit fractions, such as

$\displaystyle{ \frac{1}{2}+\frac{1}{3}+\frac{1}{16}. }$

That is, each fraction in the expression has a numerator equal to 1 and a denominator that is a positive integer, and all the denominators differ from each other. The value of an expression of this type is a positive rational number a/b; for instance the Egyptian fraction above sums to 43/48. Every positive rational number can be represented by an Egyptian fraction. Sums of this type, and similar sums also including 2/3 and 3/4 as summands, were used as a serious notation for rational numbers by the ancient Egyptians, and continued to be used by other civilizations into medieval times. In modern mathematical notation, Egyptian fractions have been superseded by vulgar fractions and decimal notation. However, Egyptian fractions continue to be an object of study in modern number theory and recreational mathematics, as well as in modern historical studies of ancient mathematics.

## Applications

Beyond their historical use, Egyptian fractions have some practical advantages over other representations of fractional numbers. For instance, Egyptian fractions can help in dividing food or other objects into equal shares.[1] For example, if one wants to divide 5 pizzas equally among 8 diners, the Egyptian fraction

$\displaystyle{ \frac{5}{8}=\frac{1}{2}+\frac{1}{8} }$

means that each diner gets half a pizza plus another eighth of a pizza, for example by splitting 4 pizzas into 8 halves, and the remaining pizza into 8 eighths.

Similarly, although one could divide 13 pizzas among 12 diners by giving each diner one pizza and splitting the remaining pizza into 12 parts (perhaps destroying it), one could note that

$\displaystyle{ \frac{13}{12}=\frac{1}{2}+\frac{1}{3}+\frac{1}{4} }$

and split 6 pizzas into halves, 4 into thirds and the remaining 3 into quarters, and then give each diner one half, one third and one quarter.

Egyptian fractions can provide a solution to rope-burning puzzles, in which a given duration is to be measured by igniting non-uniform ropes which burn out after a unit time. Any rational fraction of a unit of time can be measured by expanding the fraction into a sum of unit fractions and then, for each unit fraction $\displaystyle{ 1/x }$, burning a rope so that it always has $\displaystyle{ x }$ simultaneously lit points where it is burning. For this application, it is not necessary for the unit fractions to be distinct from each other. However, this solution may need an infinite number of re-lighting steps.[2]

## Early history

Egyptian fraction notation was developed in the Middle Kingdom of Egypt. Five early texts in which Egyptian fractions appear were the Egyptian Mathematical Leather Roll, the Moscow Mathematical Papyrus, the Reisner Papyrus, the Kahun Papyrus and the Akhmim Wooden Tablet. A later text, the Rhind Mathematical Papyrus, introduced improved ways of writing Egyptian fractions. The Rhind papyrus was written by Ahmes and dates from the Second Intermediate Period; it includes a table of Egyptian fraction expansions for rational numbers 2/n, as well as 84 word problems. Solutions to each problem were written out in scribal shorthand, with the final answers of all 84 problems being expressed in Egyptian fraction notation. 2/n tables similar to the one on the Rhind papyrus also appear on some of the other texts. However, as the Kahun Papyrus shows, vulgar fractions were also used by scribes within their calculations.

### Notation

To write the unit fractions used in their Egyptian fraction notation, in hieroglyph script, the Egyptians placed the hieroglyph

<hiero>D21</hiero>

(er, "[one] among" or possibly re, mouth) above a number to represent the reciprocal of that number. Similarly in hieratic script they drew a line over the letter representing the number. For example:

 D21:Z1*Z1*Z1 $\displaystyle{ = \frac{1}{3} }$ D21:V20 $\displaystyle{ = \frac{1}{10} }$

The Egyptians had special symbols for 1/2, 2/3, and 3/4 that were used to reduce the size of numbers greater than 1/2 when such numbers were converted to an Egyptian fraction series. The remaining number after subtracting one of these special fractions was written as a sum of distinct unit fractions according to the usual Egyptian fraction notation.

 Aa13 $\displaystyle{ = \frac{1}{2} }$ D22 $\displaystyle{ = \frac{2}{3} }$ D23 $\displaystyle{ = \frac{3}{4} }$

The Egyptians also used an alternative notation modified from the Old Kingdom to denote a special set of fractions of the form 1/2k (for k = 1, 2, ..., 6) and sums of these numbers, which are necessarily dyadic rational numbers. These have been called "Horus-Eye fractions" after a theory (now discredited)[3] that they were based on the parts of the Eye of Horus symbol. They were used in the Middle Kingdom in conjunction with the later notation for Egyptian fractions to subdivide a hekat, the primary ancient Egyptian volume measure for grain, bread, and other small quantities of volume, as described in the Akhmim Wooden Tablet. If any remainder was left after expressing a quantity in Eye of Horus fractions of a hekat, the remainder was written using the usual Egyptian fraction notation as multiples of a ro, a unit equal to 1/320 of a hekat.

### Calculation methods

Modern historians of mathematics have studied the Rhind papyrus and other ancient sources in an attempt to discover the methods the Egyptians used in calculating with Egyptian fractions. In particular, study in this area has concentrated on understanding the tables of expansions for numbers of the form 2/n in the Rhind papyrus. Although these expansions can generally be described as algebraic identities, the methods used by the Egyptians may not correspond directly to these identities. Additionally, the expansions in the table do not match any single identity; rather, different identities match the expansions for prime and for composite denominators, and more than one identity fits the numbers of each type:

• For small odd prime denominators p, the expansion
$\displaystyle{ \frac{2}{p} = \frac{1}{\,\frac{p + 1}{2}\,} + \frac{1}{p\frac{p + 1}{2}} }$
was used.
• For larger prime denominators, an expansion of the form
$\displaystyle{ \frac{2}{p} = \frac{1}{A} + \frac{2A-p}{Ap} }$
was used, where A is a number with many divisors (such as a practical number) between p/2 and p. The remaining term 2Ap/Ap was expanded by representing the number 2Ap/Ap as a sum of divisors of A and forming a fraction d/Ap for each such divisor d in this sum.[4] As an example, Ahmes' expansion 1/24 + 1/111 + 1/296 for 2/37 fits this pattern with A = 24 and 2Ap/Ap = 11 = 3 + 8, as 1/24 + 1/111 + 1/296 = 1/24 + 3/24 × 37 + 8/24 × 37. There may be many different expansions of this type for a given p; however, as K. S. Brown observed, the expansion chosen by the Egyptians was often the one that caused the largest denominator to be as small as possible, among all expansions fitting this pattern.
• For composite denominators, factored as p × q, one can expand 2/pq using the identity
$\displaystyle{ \frac{2}{pq} = \frac{1}{aq} + \frac{1}{apq} \quad\text{where } a = \frac{p+1}{2} }$
For instance, applying this method for pq = 21 gives p = 3, q = 7, and a = 3 + 1/2 = 2, producing the expansion 2/21 = 1/14 + 1/42 from the Rhind papyrus. Some authors have preferred to write this expansion as 2/A × A/pq, where A = p + 1;[5] replacing the second term of this product by p/pq + 1/pq, applying the distributive law to the product, and simplifying leads to an expression equivalent to the first expansion described here. This method appears to have been used for many of the composite numbers in the Rhind papyrus,[6] but there are exceptions, notably 2/35, 2/91, and 2/95.[7]
• One can also expand 2/pq as 1/pr + 1/qr, where r = p + q/2. For instance, Ahmes expands 2/35 = 1/30 + 1/42, where p = 5, q = 7, and r = 5 + 7/2 = 6. Later scribes used a more general form of this expansion,
$\displaystyle{ \frac{n}{pq} = \frac{1}{pr} + \frac{1}{qr} \quad\text{where } r = \frac{p+q}{n} }$
which works when p + q is a multiple of n.[8]
• For some other composite denominators, the expansion for 2/pq has the form of an expansion for 2/q with each denominator multiplied by p. For instance, 95 = 5 × 19, and 2/19 = 1/12 + 1/76 + 1/114 (as can be found using the method for primes with A = 12), so 2/95 = 1/5 × 12 + 1/5 × 76 + 1/5 × 114 = 1/60 + 1/380 + 1/570.[8] This expression can be simplified sonce 1/380 + 1/570 = 1/228, but the Rhind papyrus uses the unsimplified form.
• The final (prime) expansion in the Rhind papyrus, 2/101, does not fit any of these forms, but instead uses an expansion
$\displaystyle{ \frac{2}{p} = \frac{1}{p} + \frac{1}{2p} + \frac{1}{3p} + \frac{1}{6p} }$
that may be applied regardless of the value of p. That is, 2/101 = 1/101 + 1/202 + 1/303 + 1/606. A related expansion was also used in the Egyptian Mathematical Leather Roll for several cases.

## Later usage

Egyptian fraction notation continued to be used in Greek times and into the Middle Ages,[9] despite complaints as early as Ptolemy's Almagest about the clumsiness of the notation compared to alternatives such as the Babylonian base-60 notation. Related problems of decomposition into unit fractions were also studied in 9th-century India by Jain mathematician Mahāvīra.[10] An important text of medieval European mathematics, the Liber Abaci (1202) of Leonardo of Pisa (more commonly known as Fibonacci), provides some insight into the uses of Egyptian fractions in the Middle Ages, and introduces topics that continue to be important in modern mathematical study of these series.

The primary subject of the Liber Abaci is calculations involving decimal and vulgar fraction notation, which eventually replaced Egyptian fractions. Fibonacci himself used a complex notation for fractions involving a combination of a mixed radix notation with sums of fractions. Many of the calculations throughout Fibonacci's book involve numbers represented as Egyptian fractions, and one section of this book[11] provides a list of methods for conversion of vulgar fractions to Egyptian fractions. If the number is not already a unit fraction, the first method in this list is to attempt to split the numerator into a sum of divisors of the denominator; this is possible whenever the denominator is a practical number, and Liber Abaci includes tables of expansions of this type for the practical numbers 6, 8, 12, 20, 24, 60, and 100.

The next several methods involve algebraic identities such as

$\displaystyle{ \frac{a}{ab-1}=\frac{1}{b}+\frac{1}{b(ab-1)} }$

For instance, Fibonacci represents the fraction 8/11 by splitting the numerator into a sum of two numbers, each of which divides one plus the denominator: 8/11 = 6/11 + 2/11. Fibonacci applies the algebraic identity above to each these two parts, producing the expansion 8/11 = 1/2 + 1/22 + 1/6 + 1/66. Fibonacci describes similar methods for denominators that are two or three less than a number with many factors.

In the rare case that these other methods all fail, Fibonacci suggests a "greedy" algorithm for computing Egyptian fractions, in which one repeatedly chooses the unit fraction with the smallest denominator that is no larger than the remaining fraction to be expanded: that is, in more modern notation, we replace a fraction x/y by the expansion

$\displaystyle{ \frac{x}{y}=\frac{1}{\,\left\lceil \frac{y}{x} \right\rceil\,}+\frac{(-y)\,\bmod\, x}{y\left\lceil \frac{y}{x}\right\rceil} }$

where ⌈ ⌉ represents the ceiling function; since (−y) mod x < x, this method yields a finite expansion.

Fibonacci suggests switching to another method after the first such expansion, but he also gives examples in which this greedy expansion was iterated until a complete Egyptian fraction expansion was constructed: 4/13 = 1/4 + 1/18 + 1/468 and 17/29 = 1/2 + 1/12 + 1/348.

Compared to ancient Egyptian expansions or to more modern methods, this method may produce expansions that are quite long, with large denominators, and Fibonacci himself noted the awkwardness of the expansions produced by this method. For instance, the greedy method expands

$\displaystyle{ \frac{5}{121}=\frac{1}{25}+\frac{1}{757}+\frac{1}{763\,309}+\frac{1}{873\,960\,180\,913}+\frac{1}{1\,527\,612\,795\,642\,093\,418\,846\,225} }$

while other methods lead to the shorter expansion

$\displaystyle{ \frac{5}{121}=\frac{1}{33}+\frac{1}{121}+\frac{1}{363} }$

Sylvester's sequence 2, 3, 7, 43, 1807, ... can be viewed as generated by an infinite greedy expansion of this type for the number 1, where at each step we choose the denominator y/x ⌋ + 1 instead of y/x, and sometimes Fibonacci's greedy algorithm is attributed to James Joseph Sylvester.

After his description of the greedy algorithm, Fibonacci suggests yet another method, expanding a fraction a/b by searching for a number c having many divisors, with b/2 < c < b, replacing a/b by ac/bc, and expanding ac as a sum of divisors of bc, similar to the method proposed by Hultsch and Bruins to explain some of the expansions in the Rhind papyrus.

## Modern number theory

Although Egyptian fractions are no longer used in most practical applications of mathematics, modern number theorists have continued to study many different problems related to them. These include problems of bounding the length or maximum denominator in Egyptian fraction representations, finding expansions of certain special forms or in which the denominators are all of some special type, the termination of various methods for Egyptian fraction expansion, and showing that expansions exist for any sufficiently dense set of sufficiently smooth numbers.

• One of the earliest publications of Paul Erdős proved that it is not possible for a harmonic progression to form an Egyptian fraction representation of an integer. The reason is that, necessarily, at least one denominator of the progression will be divisible by a prime number that does not divide any other denominator.[12] The latest publication of Erdős, nearly 20 years after his death, proves that every integer has a representation in which all denominators are products of three primes.[13]
• The Erdős–Graham conjecture in combinatorial number theory states that, if the integers greater than 1 are partitioned into finitely many subsets, then one of the subsets has a finite subset of itself whose reciprocals sum to one. That is, for every r > 0, and every r-coloring of the integers greater than one, there is a finite monochromatic subset S of these integers such that
$\displaystyle{ \sum_{n\in S}\frac{1}{n} = 1 }$
The conjecture was proven in 2003 by Ernest S. Croot, III.
$\displaystyle{ \sum\frac1{x_i} + \prod\frac1{x_i}=1 }$
For instance, the primary pseudoperfect number 1806 is the product of the prime numbers 2, 3, 7, and 43, and gives rise to the Egyptian fraction 1 = 1/2 + 1/3 + 1/7 + 1/43 + 1/1806.
• Egyptian fractions are normally defined as requiring all denominators to be distinct, but this requirement can be relaxed to allow repeated denominators. However, this relaxed form of Egyptian fractions does not allow for any number to be represented using fewer fractions, as any expansion with repeated fractions can be converted to an Egyptian fraction of equal or smaller length by repeated application of the replacement
$\displaystyle{ \frac1k+\frac1k=\frac2{k+1}+\frac2{k(k+1)} }$
if k is odd, or simply by replacing 1/k + 1/k by 2/k if k is even. This result was first proven by (Takenouchi 1921).
• Graham and Jewett[14] proved that it is similarly possible to convert expansions with repeated denominators to (longer) Egyptian fractions, via the replacement
$\displaystyle{ \frac1k+\frac1k=\frac1k+\frac1{k+1}+\frac1{k(k+1)}. }$
This method can lead to long expansions with large denominators, such as
$\displaystyle{ \frac45=\frac15+\frac16+\frac17+\frac18+\frac1{30}+\frac1{31}+\frac1{32}+\frac1{42}+\frac1{43}+\frac1{56}+ \frac1{930}+\frac1{931}+\frac1{992}+\frac1{1806}+\frac1{865\,830} }$
(Botts 1967) had originally used this replacement technique to show that any rational number has Egyptian fraction representations with arbitrarily large minimum denominators.
• Any fraction x/y has an Egyptian fraction representation in which the maximum denominator is bounded by[15]
$\displaystyle{ O\left(y \log y \left(\log\log y\right)^4 \left(\log\log\log y\right)^2\right) }$
and a representation with at most
$\displaystyle{ O\left(\sqrt{\log y}\right) }$
terms.[16] The number of terms must sometimes be at least proportional to log log y; for instance this is true for the fractions in the sequence 1/2, 2/3, 6/7, 42/43, 1806/1807, ... whose denominators form Sylvester's sequence. It has been conjectured that O(log log y) terms are always enough.[17] It is also possible to find representations in which both the maximum denominator and the number of terms are small.[18]
• (Graham 1964) characterized the numbers that can be represented by Egyptian fractions in which all denominators are nth powers. In particular, a rational number q can be represented as an Egyptian fraction with square denominators if and only if q lies in one of the two half-open intervals
$\displaystyle{ \left[0,\frac{\pi^2}{6}-1\right)\cup\left[1,\frac{\pi^2}{6}\right) }$
• (Martin 1999) showed that any rational number has very dense expansions, using a constant fraction of the denominators up to N for any sufficiently large N.
• Engel expansion, sometimes called an Egyptian product, is a form of Egyptian fraction expansion in which each denominator is a multiple of the previous one:
$\displaystyle{ x=\frac{1}{a_1}+\frac{1}{a_1a_2}+\frac{1}{a_1a_2a_3}+\cdots }$
In addition, the sequence of multipliers ai is required to be nondecreasing. Every rational number has a finite Engel expansion, while irrational numbers have an infinite Engel expansion.
• (Anshel Goldfeld) study numbers that have multiple distinct Egyptian fraction representations with the same number of terms and the same product of denominators; for instance, one of the examples they supply is
$\displaystyle{ \frac{5}{12}=\frac{1}{4}+\frac{1}{10}+\frac{1}{15}=\frac{1}{5}+\frac{1}{6}+\frac{1}{20} }$
Unlike the ancient Egyptians, they allow denominators to be repeated in these expansions. They apply their results for this problem to the characterization of free products of Abelian groups by a small number of numerical parameters: the rank of the commutator subgroup, the number of terms in the free product, and the product of the orders of the factors.

## Open problems

Some notable problems remain unsolved with regard to Egyptian fractions, despite considerable effort by mathematicians.

$\displaystyle{ \frac4n=\frac1x+\frac1y+\frac1z }$
exist for every n? It is known to be true for all n < 1017, and for all but a vanishingly small fraction of possible values of n, but the general truth of the conjecture remains unknown.
• It is unknown whether an odd greedy expansion exists for every fraction with an odd denominator. If Fibonacci's greedy method is modified so that it always chooses the smallest possible odd denominator, under what conditions does this modified algorithm produce a finite expansion? An obvious necessary condition is that the starting fraction x/y have an odd denominator y, and it is conjectured but not known that this is also a sufficient condition. It is known[20] that every x/y with odd y has an expansion into distinct odd unit fractions, constructed using a different method than the greedy algorithm.
• It is possible to use brute-force search algorithms to find the Egyptian fraction representation of a given number with the fewest possible terms[21] or minimizing the largest denominator; however, such algorithms can be quite inefficient. The existence of polynomial time algorithms for these problems, or more generally the computational complexity of such problems, remains unknown.

(Guy 2004) describes these problems in more detail and lists numerous additional open problems.