Egyptian Fractions Calculator
Solve egyptian fractions problems step-by-step with our free calculator. See formulas, worked examples, and clear explanations.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Egyptian Fractions Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: n/d = 1/a1 + 1/a2 + ... + 1/ak (where a1 < a2 < ... < ak)
Worked example โ 3/7 = 1/3 + 1/11 + 1/231
Formula
n/d = 1/a1 + 1/a2 + ... + 1/ak (where a1 < a2 < ... < ak)
Where n/d is a proper fraction decomposed into a sum of distinct unit fractions 1/a1, 1/a2, etc. The greedy algorithm finds each unit fraction by computing ceiling(d/n) to get the largest possible unit fraction not exceeding the remaining value.
Worked Examples
Example 1: Decomposing 3/7 into Egyptian Fractions
Problem:Express 3/7 as a sum of distinct unit fractions using the greedy algorithm.
Solution:Step 1: ceiling(7/3) = 3, so first unit fraction is 1/3 3/7 - 1/3 = (9 - 7)/21 = 2/21 Step 2: ceiling(21/2) = 11, so next unit fraction is 1/11 2/21 - 1/11 = (22 - 21)/231 = 1/231 Step 3: 1/231 is already a unit fraction Result: 3/7 = 1/3 + 1/11 + 1/231 Verification: 1/3 + 1/11 + 1/231 = 77/231 + 21/231 + 1/231 = 99/231 = 3/7
Result:3/7 = 1/3 + 1/11 + 1/231
Example 2: Decomposing 5/8 for Fair Division
Problem:Express 5/8 as Egyptian fractions to divide 5 items among 8 people.
Solution:Step 1: ceiling(8/5) = 2, so first unit fraction is 1/2 5/8 - 1/2 = (5 - 4)/8 = 1/8 Step 2: 1/8 is already a unit fraction Result: 5/8 = 1/2 + 1/8 Practical meaning: Each person gets 1/2 of an item plus 1/8 of an item Verification: 1/2 + 1/8 = 4/8 + 1/8 = 5/8
Result:5/8 = 1/2 + 1/8 (each person gets half plus one-eighth)
Frequently Asked Questions
What are Egyptian fractions and where do they come from?
Egyptian fractions are a way of representing rational numbers as sums of distinct unit fractions, where each unit fraction has 1 as its numerator. This notation originated in ancient Egypt around 1650 BCE, as documented in the Rhind Mathematical Papyrus and the Egyptian Mathematical Leather Roll. The ancient Egyptians used this system for all their fractional calculations, with the sole exception of 2/3 which had its own special symbol. For example, they would write 3/4 as 1/2 + 1/4 rather than using the single fraction 3/4. This system persisted for over 2,000 years in Egyptian mathematics and influenced Greek and medieval European mathematical traditions as well.
How does the greedy algorithm for Egyptian fractions work?
The greedy algorithm, also known as the Fibonacci-Sylvester algorithm, works by always choosing the largest possible unit fraction at each step. Given a fraction n/d, find the smallest integer k such that 1/k is less than or equal to n/d (k = ceiling of d/n). Subtract 1/k from n/d to get a new, smaller fraction, and repeat. For example, for 3/7: ceiling(7/3) = 3, so take 1/3. Then 3/7 - 1/3 = 2/21. Ceiling(21/2) = 11, so take 1/11. Then 2/21 - 1/11 = 1/231. The result is 3/7 = 1/3 + 1/11 + 1/231. This algorithm always terminates because the numerator strictly decreases at each step, guaranteeing convergence to zero.
Why did ancient Egyptians use unit fractions instead of regular fractions?
Historians believe the Egyptians preferred unit fractions for practical and conceptual reasons. Unit fractions are intuitive for fair division: 1/3 means one part out of three equal parts. The Egyptians may have found it easier to conceptualize sharing as taking successive unit portions rather than working with abstract numerators greater than one. Their hieroglyphic notation also made unit fractions simple to write: an eye symbol (or mouth symbol) was placed over the denominator. Additionally, comparison between fractions is straightforward with unit fractions since 1/n is always greater than 1/m when n is less than m. Some scholars also argue the system was a deliberate mathematical choice that enabled efficient computation.
Is the Egyptian fraction representation of a number unique?
No, Egyptian fraction representations are not unique. Most fractions can be decomposed into unit fractions in multiple ways. For example, 2/3 can be written as 1/2 + 1/6, or as 1/3 + 1/4 + 1/12, or even as 1/3 + 1/5 + 1/9 + 1/45. Different algorithms produce different decompositions. The greedy algorithm tends to produce fewer terms but can result in very large denominators. Other methods, like the splitting identity (1/n = 1/(n+1) + 1/(n(n+1))), can be used to generate alternative representations. The Erdos-Straus conjecture, one of the famous unsolved problems in mathematics, asks whether every fraction 4/n can be written as a sum of exactly three unit fractions.
What is the Erdos-Straus conjecture about Egyptian fractions?
The Erdos-Straus conjecture, proposed in 1948 by Paul Erdos and Ernst Straus, states that for every integer n greater than or equal to 2, the fraction 4/n can be expressed as a sum of exactly three unit fractions: 4/n = 1/a + 1/b + 1/c, where a, b, and c are positive integers. Despite being verified computationally for all n up to 10^14, no general proof has been found. The conjecture has been proven for many special cases, including all n that are not congruent to 1 modulo 24. It remains one of the most famous open problems in number theory. A proof would have implications for understanding the structure of rational number decompositions and additive number theory.
How do you add and compare Egyptian fractions?
Adding Egyptian fractions is done by finding a common denominator for all unit fractions in the sum and combining them. For example, 1/2 + 1/3 + 1/6: the common denominator is 6, giving 3/6 + 2/6 + 1/6 = 6/6 = 1. Comparing two Egyptian fraction representations involves computing each sum and comparing the results. If you want to compare 1/3 + 1/5 with 1/2 + 1/12, compute each: 1/3 + 1/5 = 8/15 and 1/2 + 1/12 = 7/12. Converting to a common denominator: 8/15 = 32/60 and 7/12 = 35/60, so 1/2 + 1/12 is larger. The computational cost can grow quickly because denominators in Egyptian fractions can become very large.
What are the practical applications of Egyptian fractions today?
Egyptian fractions have several modern applications beyond historical interest. In fair division problems, they provide natural ways to split resources. If you need to divide 5 identical pizzas among 8 people, the decomposition 5/8 = 1/2 + 1/8 means each person gets half a pizza and an eighth of a pizza, requiring only two different cut sizes. In number theory, Egyptian fractions connect to the Sylvester-Fibonacci sequence and have implications for understanding the distribution of prime numbers. Computer science uses them in scheduling algorithms and in designing efficient communication protocols. They also appear in combinatorics, particularly in problems related to covering designs.
What are the limitations of the greedy algorithm for Egyptian fractions?
The greedy algorithm has a significant drawback: it can produce very large denominators. For the fraction 5/121, the greedy algorithm produces 1/25 + 1/757 + 1/763309 + 1/873960180913 + ..., with denominators growing explosively. This happens because at each step the algorithm takes the largest possible unit fraction, which can leave a very small remainder with a large denominator. Alternative algorithms like the odd-greedy algorithm or methods based on continued fractions can sometimes produce more compact representations. The theoretical worst case for the greedy algorithm applied to a/b can produce denominators doubly exponential in the number of terms, making it impractical for certain inputs.
How do Egyptian fractions relate to the harmonic series?
Egyptian fractions are intimately connected to the harmonic series, which is the sum 1 + 1/2 + 1/3 + 1/4 + ... This series diverges to infinity, meaning any positive rational number can eventually be reached as a partial sum of some subsequence of harmonic terms. A famous result by Erdos and Graham shows that any rational number in the interval (0,1] can be represented as an Egyptian fraction using only unit fractions with square-free denominators. The connection extends further: the harmonic numbers H_n = 1 + 1/2 + ... + 1/n are always rational, and studying which fractions can be represented using only the first n unit fractions leads to deep questions in combinatorial number theory and approximation theory.
What is the Rhind Mathematical Papyrus and its role in Egyptian fractions?
The Rhind Mathematical Papyrus, also known as the Ahmes Papyrus, is one of the most important sources of ancient Egyptian mathematics. Dating to approximately 1650 BCE, it was copied by a scribe named Ahmes from an even older document. The papyrus contains a famous table that expresses fractions of the form 2/n (for odd n from 3 to 101) as sums of unit fractions. For example, it shows 2/5 = 1/3 + 1/15 and 2/7 = 1/4 + 1/28. The choices in this table follow certain patterns that mathematicians still debate, including preferences for even denominators and small numbers of terms. The papyrus also contains 84 mathematical problems covering arithmetic, algebra, and geometry.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎAdding and Subtracting Fractions Calculator
Calculate adding and subtracting fractions with inputs, formulas, and instant results.
๐งฎSubtracting Fractions Calculator
Calculate subtracting fractions with inputs, formulas, and instant results.
๐งฎAdding Fractions Calculator
Calculate adding fractions with inputs, formulas, and instant results.
๐งฎComparing Fractions Calculator
Calculate comparing fractions with inputs, formulas, and instant results.
๐งฎDividing Fractions Calculator
Calculate dividing fractions with inputs, formulas, and instant results.
๐งฎEquivalent Fractions Calculator
Calculate equivalent fractions with inputs, formulas, and instant results.
๐งฎMultiplying Fractions Calculator
Calculate multiplying fractions with inputs, formulas, and instant results.
๐งฎSimplify Fractions Calculator
Calculate simplify fractions with inputs, formulas, and instant results.