Skip to content

Egyptian Fractions Calculator

Write any fraction as a sum of distinct unit fractions: the greedy (Fibonacci) expansion with steps, the shortest expansion, and unit fractions back to one fraction.

Calculator Details

4/13 =1/4 + 1/18 + 1/468See results ↓

Fraction → unit fractions, or unit fractions → one fraction

Top of the fraction

Bottom of the fraction

Your Results

4/13 = 1/4 + 1/18 + 1/468

4/13 =

1/4 + 1/18 + 1/468

Greedy (Fibonacci) method: 3 unit fractions

Shortest expansion

1/4 + 1/26 + 1/52

3 terms, smallest largest denominator

Largest greedy denominator

468

3 digits

Decimal

0.3076923077

4/13 = 1/4 + 1/18 + 1/468 by the greedy method (3 unit fractions). The shortest expansion has 3 terms: 1/4 + 1/26 + 1/52.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Greedy method, step by step
StepRemainingSmallest d with 1/d ≤ remainingTermLeft over
14/13⌈13/4⌉ = 41/43/52
23/52⌈52/3⌉ = 181/181/468
31/468⌈468/1⌉ = 4681/4680

Each step takes the largest unit fraction that fits; the numerator of what is left always gets smaller, so the method always ends.

How This Calculator Works

How it's calculated

greedy: p/q = 1/⌈q/p⌉ + (p/q − 1/⌈q/p⌉), repeated on what is left

shortest: try 1, 2, 3 … terms with denominators d₁ < d₂ < …

Your fraction: 4/13. 4/13: ⌈13/4⌉ = 4, take 1/4, leaving 3/52. 3/52: ⌈52/3⌉ = 18, take 1/18, leaving 1/468. 1/468: ⌈468/1⌉ = 468, take 1/468, leaving 0. So 4/13 = 1/4 + 1/18 + 1/468. A search over every expansion of up to 4 terms finds a shorter or smaller one: 1/4 + 1/26 + 1/52.

Frequently Asked Questions

What is an Egyptian fraction?

A sum of distinct unit fractions, fractions with 1 on top, such as 1/2 + 1/3 + 1/12. Ancient Egyptian scribes wrote every fraction this way (apart from 2/3), so 3/4 was 1/2 + 1/4. Every positive fraction can be written as an Egyptian fraction, in infinitely many ways.

How does the greedy algorithm work?

At each step take the largest unit fraction that is not bigger than what is left, which is 1/⌈q/p⌉ for p/q, then repeat on the remainder. For 4/13: ⌈13/4⌉ = 4, and 4/13 − 1/4 = 3/52; ⌈52/3⌉ = 18, and 3/52 − 1/18 = 1/468. So 4/13 = 1/4 + 1/18 + 1/468. Fibonacci described it in 1202.

Does the greedy method always give the shortest answer?

No. It always finishes, but it can be much longer than necessary and its denominators can grow enormously. 5/121 takes five greedy terms with a 25-digit last denominator, while 5/121 = 1/33 + 1/121 + 1/363 has only three. The calculator searches for the shortest expansion separately.

Why did the Egyptians use unit fractions?

Their notation had symbols for unit fractions (a mouth-shaped sign above a number) and a few special fractions, but no way to write a general p/q. Unit fractions are also practical for sharing: dividing 5 loaves among 8 people as 1/2 + 1/8 each gives everyone the same pieces, which is easier than cutting 5/8 of a loaf.

What is the Rhind papyrus 2/n table?

The Rhind Mathematical Papyrus (about 1550 BCE, copied by the scribe Ahmes) opens with a table writing 2/n as unit fractions for every odd n from 5 to 101, for example 2/5 = 1/3 + 1/15 and 2/7 = 1/4 + 1/28. Doubling unit fractions came up constantly in Egyptian multiplication, so scribes needed the table.

Can an Egyptian fraction repeat a denominator?

Not by definition: the unit fractions must be distinct. 2/5 = 1/5 + 1/5 is not allowed; 2/5 = 1/3 + 1/15 is. Any repeated term can always be split, using 1/n = 1/(n + 1) + 1/(n(n + 1)).

What is the Erdős–Straus conjecture?

It says that 4/n can always be written as the sum of three unit fractions, 4/n = 1/a + 1/b + 1/c, for every n ≥ 2. It has been checked by computer for enormous n but is still unproved, one of several open problems about Egyptian fractions.

How do I turn an Egyptian fraction back into a normal fraction?

Add the unit fractions over a common denominator and reduce. 1/4 + 1/18 + 1/468: the least common denominator is 468, giving 117/468 + 26/468 + 1/468 = 144/468 = 4/13. Choose “Unit fractions → one fraction” to do this, or type just the denominators separated by commas.

Included: the greedy (Fibonacci–Sylvester) expansion of any positive fraction with numerator and denominator up to 1,000,000, with exact arithmetic and every step; a search for the shortest expansion into distinct unit fractions (up to 6 terms, denominators up to 1,000,000, and a fixed amount of work), choosing the one with the smallest largest denominator; and adding unit fractions back into one fraction. Left out: proving the shortest length beyond the search limits (the result says when the search was cut short), other expansion methods (binary, Golomb, continued-fraction based) and the historical Rhind papyrus choices for each 2/n.

Egyptian Fractions Calculator: Greedy and Shortest Unit Fraction Sums

By FindMySum · Last reviewed

An Egyptian fraction calculator writes a fraction as a sum of distinct unit fractions, fractions with 1 on top. Ancient Egyptian scribes wrote all their fractions this way: 3/4 was 1/2 + 1/4, and 4/13 could be 1/4 + 1/18 + 1/468. This page finds the greedy expansion that Fibonacci described in 1202, shows each step, and searches for the shortest expansion, choosing the one with the smallest largest denominator when there are several. It also runs the other way, adding a list of unit fractions back into one fraction in lowest terms.

The greedy method, step by step

Take the largest unit fraction that fits, subtract it, and repeat on what is left. For a remainder p/q, the largest unit fraction not bigger than it is 1/⌈q/p⌉, where ⌈ ⌉ means round up.

The default is 4/13:

  1. ⌈13/4⌉ = ⌈3.25⌉ = 4. Take 1/4. What is left: 4/13 − 1/4 = 16/52 − 13/52 = 3/52.
  2. ⌈52/3⌉ = ⌈17.33⌉ = 18. Take 1/18. Left: 3/52 − 1/18 = 27/468 − 26/468 = 1/468.
  3. 1/468 is already a unit fraction. Take it. Nothing is left.

So 4/13 = 1/4 + 1/18 + 1/468.

Why it always stops: if the remainder is p/q and you take 1/d with d = ⌈q/p⌉, the new numerator is pd − q, which is smaller than p. The numerators fall each step, so after at most p steps the numerator reaches 1.

Shorter and smaller expansions

The greedy method isn't always the best. 4/13 also equals 1/4 + 1/26 + 1/52, still three terms but with a largest denominator of 52 instead of 468. Check: 13/52 + 2/52 + 1/52 = 16/52 = 4/13.

Sometimes the greedy result is badly longer. The famous case is 5/121:

  • greedy: 1/25 + 1/757 + 1/763,309 + 1/873,960,180,913 + 1/1,527,612,795,642,093,418,846,225
  • shortest: 1/33 + 1/121 + 1/363

The calculator's shortest-expansion search tries one term, then two, then three, and so on, with increasing denominators. For each number of terms k, the next denominator d has to satisfy 1/d ≤ remainder < k/d, which leaves only a finite list to try. Among the shortest expansions it keeps the one with the smallest largest denominator. The search has limits (up to 6 terms, denominators up to a million and a fixed amount of work) so it answers instantly; the result says when it was cut short.

Fractions bigger than 1

An improper fraction keeps its whole part: 7/3 = 2 + 1/3, and 11/4 = 2 + 1/2 + 1/4. The calculator expands only the proper part.

The Rhind papyrus

The Rhind Mathematical Papyrus, copied by the scribe Ahmes around 1550 BCE and now in the British Museum, starts with a table of 2/n for odd n from 5 to 101:

2/nRhind papyrus
2/51/3 + 1/15
2/71/4 + 1/28
2/91/6 + 1/18
2/111/6 + 1/66
2/131/8 + 1/52 + 1/104

Egyptian multiplication worked by doubling, so doubling a unit fraction (turning 1/n into 2/n) came up all the time, and the table saved recalculating. The scribes' choices are not always greedy: for 2/13 the greedy method gives 1/7 + 1/91, but the papyrus prefers even denominators.

Turning unit fractions back into one fraction

To add unit fractions, find a common denominator, add the numerators and reduce:

1/4 + 1/18 + 1/468 = 117/468 + 26/468 + 1/468 = 144/468 = 4/13.

Choose "Unit fractions → one fraction" and type the fractions, or just their denominators (4, 18, 468). The calculator also says whether the list is a true Egyptian fraction, with no repeated denominators.

Famous facts and open problems

  • 1 = 1/2 + 1/3 + 1/6 is the shortest way to write 1 with distinct unit fractions. Another is 1/2 + 1/3 + 1/7 + 1/42.
  • The Erdős–Straus conjecture says 4/n is always a sum of three unit fractions. It is unproved.
  • Every fraction with an odd denominator can be written with only odd denominators, but whether the greedy method restricted to odd denominators always stops is another open question.

More questions

Is every fraction an Egyptian fraction in some way?

Yes. Every positive rational number can be written as a finite sum of distinct unit fractions, and the greedy method proves it: each step makes the numerator of the remainder strictly smaller, so the process must stop. Fractions larger than 1 work too, either with a whole part or by using enough unit fractions, since 1/1 + 1/2 + 1/3 + … grows without bound.

How many ways can a fraction be written as an Egyptian fraction?

Infinitely many. Any term 1/n can be split as 1/(n + 1) + 1/(n(n + 1)), so a longer expansion can always be made from a shorter one, as long as the new denominators don't clash with existing ones. That is why questions usually ask for the shortest expansion or the one with the smallest denominators.

Did the Egyptians use the greedy algorithm?

Not consistently. The Rhind papyrus 2/n table often prefers expansions with small, even denominators that were easy to work with, rather than the greedy result. For 2/n they mostly used two to four terms and avoided very large denominators.

Are Egyptian fractions used today?

Mostly in number theory and puzzles, but the idea appears in fair-division problems and in scheduling, and unit fraction sums are a classic programming exercise for exact rational arithmetic. They also show students that fractions can be decomposed in more than one way.

What is the difference between 2/3 and the other Egyptian fractions?

2/3 had its own hieroglyph and was the one non-unit fraction the Egyptians used freely; some texts also had a sign for 3/4. Everything else was written as a sum of distinct unit fractions.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy