Engel Expansion Calculator
Fraction
- Start with x = 355/113. Each step takes a = ceil(1 / x), the smallest integer whose reciprocal does not exceed x — here a1 = 1.
- Form the remainder x * a - 1 and repeat on it; the remainder strictly shrinks, and for a rational number it reaches exactly 0, so the expansion terminates.
- The terms are 1, 1, 1, 8, 8, 17, 19, 113: each term divides the running product of denominators, so the series is a sum of unit fractions with nondecreasing denominators.
- Adding the unit fractions with denominators 1, 1, 1, 8 and 4 more returns exactly 355/113, confirming the expansion.
This Engel Expansion Calculator writes a number as a sum of unit fractions whose denominators are nondecreasing, with each denominator dividing the next product term. Each step takes a = ceil(1 / x) and replaces x by x * a - 1. For a rational number the remainder reaches exactly 0, so the expansion terminates and you get a complete, exact list of terms rather than an approximation. For example, the Engel expansion of 7/5 is 1, 3, 5, because 1/1 + 1/3 + 1/15 = 7/5. The Engel expansion of 2/3 is 2, 3, since 1/2 + 1/6 = 2/3. And the Engel expansion of 355/113 is 1, 1, 1, 8, 8, 17, 19, 113 — eight terms that reconstruct 355/113 exactly.
The step-by-step method used here is the accepted standard for this kind of calculation: taking a = ceil(1 / x) and replacing x by x * a - 1 is the defining procedure for an Engel expansion, and for rational inputs it guarantees the remainder reaches exactly 0, so the result terminates and can be checked by adding the unit fractions back together. This page shows the formula, the step-by-step workings for each term, worked examples such as 7/5, 2/3 and 355/113, and the sources behind the method, so you can follow every step and verify the final expansion yourself.
Worked examples
Engel expansion of 355/113
(355 · 113)
| Engel expansion terms | 1, 1, 1, 8, 8, 17, 19, 113 |
| number of terms | 8 |
| largest term | 113 |
| reconstruction check | 355/113 |
Engel expansion of 7/5
(7 · 5)
| Engel expansion terms | 1, 3, 5 |
| number of terms | 3 |
| largest term | 5 |
| reconstruction check | 7/5 |
Engel expansion of 2/3
(2 · 3)
| Engel expansion terms | 2, 3 |
| number of terms | 2 |
| largest term | 3 |
| reconstruction check | 2/3 |
What is an Engel expansion?
An Engel expansion is a way of writing a number as a sum of unit fractions — fractions with 1 on top — in which the denominators are nondecreasing and each denominator divides the next product term. That divisibility rule is what separates an Engel expansion from other unit-fraction series: the terms are not chosen freely, but are tied together by the running product of the denominators chosen so far.
The expansion is built one step at a time. At each step you take a = ceil(1 / x) and then replace x by x * a - 1. For a rational number the remainder reaches exactly 0, so the expansion terminates instead of running on forever. This is a useful contrast with the greedy Egyptian expansion, often called the Sylvester expansion, which at each step subtracts the largest unit fraction that fits. Both methods produce unit fractions, but the Engel rule constrains the denominators to be nondecreasing and to divide the next product term, while the greedy method simply takes the biggest unit fraction below the remainder each time. The two methods can therefore give different term lists for the same number.
Small examples make the pattern concrete. The Engel expansion of 7/5 is 1, 3, 5, and those terms check out: 1/1 + 1/3 + 1/15 = 7/5. The Engel expansion of 2/3 is 2, 3, since 1/2 + 1/6 = 2/3. A longer case shows how the list grows for a harder fraction: the Engel expansion of 355/113 is 1, 1, 1, 8, 8, 17, 19, 113 — eight terms that reconstruct 355/113 exactly. Notice that repeated values such as 1, 1, 1 and 8, 8 are allowed, because the rule requires the denominators to be nondecreasing, not strictly increasing.
Reading these examples, you can see the two properties working together. The denominators never decrease, and each one divides the product that follows it, which is why the remainder can be driven to exactly zero for a rational input. The result is a finite, exact representation of the number rather than an approximation, and every term in the list is a genuine unit fraction.
How the expansion is computed
The Engel expansion turns a number into a sum of unit fractions — fractions with 1 on top — whose denominators never decrease. To compute it, the calculator repeats one short step: take a = ceil(1 / x), record a as the next term, then replace x by x * a - 1. That is the whole engine. The ceiling function rounds 1 / x up to the nearest whole number, so a is always the smallest integer whose reciprocal is no larger than the current remainder. Subtracting 1 after multiplying by a strips off the unit fraction just recorded and leaves the remainder that the next pass will handle.
Running the loop on 7/5 shows how it works. Start with x = 7/5. Then 1 / x = 5/7, and ceil(5/7) = 1, so the first term is 1. Replace x: (7/5) * 1 - 1 = 2/5. Next, 1 / x = 5/2 = 2.5, and ceil(2.5) = 3, giving the second term 3. Replace x: (2/5) * 3 - 1 = 6/5 - 1 = 1/5. Next, 1 / x = 5, and ceil(5) = 5, so the third term is 5. Replace x: (1/5) * 5 - 1 = 0. The remainder has hit exactly zero, the loop stops, and the Engel expansion of 7/5 is the list 1, 3, 5.
Those terms rebuild the original number exactly: 1/1 + 1/3 + 1/15 = 7/5. The denominators 1, 3 and 15 are nondecreasing, and each one divides the next in the chain of products the method builds, which is the property that defines an Engel expansion. Because the input is a rational number, the remainder reaches exactly 0 rather than trailing off forever, so the expansion always terminates and the list of terms is finite.
Two more examples confirm the pattern. For 2/3, the first pass gives ceil(3/2) = 2 and a remainder of (2/3) * 2 - 1 = 1/3; the second pass gives ceil(3) = 3 and a remainder of (1/3) * 3 - 1 = 0. The terms are 2, 3, and 1/2 + 1/6 = 2/3. A longer run comes from 355/113, the well-known approximation to pi: its Engel expansion is 1, 1, 1, 8, 8, 17, 19, 113 — eight terms that reconstruct 355/113 exactly. Notice that repeated terms are allowed; the rule is only that denominators never decrease, not that they must strictly increase.
- Start with the value x you want to expand.
- Compute a = ceil(1 / x) and record a as the next term.
- Replace x by x * a - 1.
- Repeat until the remainder is exactly 0; for a rational input this always happens, so the list of terms is finite.
Worked examples
The quickest way to see how the Engel expansion behaves is to run a few rational numbers through the algorithm and check the arithmetic by hand. In each case below, the method is the same: take a = ceil(1 / x) and replace x by x * a - 1. Because the starting value is rational, the remainder reaches exactly 0 after finitely many steps, so every one of these expansions terminates. The table collects the three calculator cases with their term counts and reconstruction checks.
The first case is 355/113, the familiar approximation to pi. Its Engel expansion is 1, 1, 1, 8, 8, 17, 19, 113: eight terms, with 113 as the largest. Adding the corresponding unit fractions of the running products reconstructs 355/113 exactly, with no rounding anywhere in the chain. The leading run of three 1s shows how the algorithm can return the same value several times before the denominators begin to grow.
The second case is 7/5, which gives the terms 1, 3, 5. Written out, 1/1 + 1/3 + 1/15 = 7/5. Notice the pattern in the denominators: each term is the previous product multiplied by the next factor, so the third denominator is 1 x 3 x 5 = 15. The reconstruction check confirms the sum lands exactly on 7/5.
The third case is 2/3, the shortest of the three, with terms 2, 3. The reconstruction is 1/2 + 1/6 = 2/3, where 6 comes from 2 x 3. Only two steps are needed before the remainder hits zero.
Read together, the examples show the two properties that define the Engel expansion: the denominators are nondecreasing, and each divides the next product term. They also show that term counts vary widely with the input, from two terms for 2/3 to eight for 355/113. Checking the reconstruction is the simplest way to confirm an expansion is correct.
- 355/113: terms 1, 1, 1, 8, 8, 17, 19, 113 (eight terms, largest 113); reconstructs 355/113 exactly.
- 7/5: terms 1, 3, 5; 1/1 + 1/3 + 1/15 = 7/5.
- 2/3: terms 2, 3; 1/2 + 1/6 = 2/3.
| Input | Engel terms | Term count | Reconstruction check |
|---|---|---|---|
| 355/113 | 1, 1, 1, 8, 8, 17, 19, 113 | 8 (largest 113) | Reconstructs 355/113 exactly |
| 7/5 | 1, 3, 5 | 3 | 1/1 + 1/3 + 1/15 = 7/5 |
| 2/3 | 2, 3 | 2 | 1/2 + 1/6 = 2/3 |
When Engel expansions terminate
A rational number always produces a terminating Engel expansion. The reason lies in the step-by-step rule: each step takes a = ceil(1 / x) and replaces x by x * a - 1. When you start with a fraction, the remainders produced by this rule stay rational, and eventually the remainder reaches exactly 0. Once that happens, there is nothing left to expand, and the Engel expansion stops after a finite number of terms. This is a sharp contrast with the decimal system, where a rational such as 1/3 never terminates no matter how many digits you write.
Small fractions show the mechanism clearly. The Engel expansion of 2/3 is 2, 3, because 1/2 + 1/6 = 2/3. The Engel expansion of 7/5 is 1, 3, 5, because 1/1 + 1/3 + 1/15 = 7/5. In each case the list is short and the reconstruction is exact, not an approximation. A longer example makes the same point with more terms: the Engel expansion of 355/113 is 1, 1, 1, 8, 8, 17, 19, 113. Those eight terms reconstruct 355/113 exactly. Even a fraction with a comparatively awkward denominator closes off cleanly, because the remainder is driven to zero by the algorithm itself.
Famous constants behave differently. Their Engel expansions do not terminate, because they are not rational and the remainder never reaches exactly 0. Instead the process continues indefinitely, producing an infinite list of denominators. What distinguishes one constant from another is the pattern those denominators follow. The number e has a patterned infinite Engel expansion: its terms follow a regular, predictable structure rather than jumping around unpredictably. Pi is the opposite case. Its Engel expansion is irregular, with terms that do not settle into a simple repeating scheme. So the dividing line is not length but kind: rationals terminate, while constants such as e and pi continue forever, one in an orderly way and one not.
This is why the Engel expansion is a useful thing to compute rather than merely to define. The rule that builds it — nondecreasing denominators, each dividing the next product term — turns an arbitrary number into a concrete list you can inspect. For a rational input, the list is a complete and exact description of the number, and you can verify it by adding the unit fractions back together. For a constant, any finite list is only a truncation, and the interesting question becomes how quickly and how regularly the terms grow. Seeing a short terminating list next to an endless patterned or irregular one makes the difference between rational and irrational tangible, without any appeal to decimal digits.
Working through examples by hand is the best way to see where an Engel expansion stops. Start with a fraction, apply a = ceil(1 / x) at each step, and watch the remainder shrink toward exactly 0. When it arrives, the expansion is complete and the terms you have collected reconstruct the original fraction precisely.
FAQs
What is the Engel expansion of 7/5?
The Engel expansion of 7/5 is 1, 3, 5. Written as unit fractions, that is 1/1 + 1/3 + 1/15 = 7/5. Each denominator in the list builds the next term, and the sum of those three fractions returns exactly 7/5, so the expansion is finite and complete.
How does the Engel expansion algorithm work?
The algorithm repeatedly takes a = ceil(1 / x) and replaces x with x * a - 1 until the remainder is 0. Each value of a becomes the next term in the expansion. The process continues step by step, shrinking the remainder, and stops once x * a - 1 reaches exactly zero.
Does every rational number have a finite Engel expansion?
Yes. For rational x the remainder x * a - 1 reaches exactly 0 after finitely many steps, so the expansion always terminates. For example, the rational number 355/113 has a finite Engel expansion that completes in 8 steps, ending with a remainder of zero rather than continuing forever.
What is the Engel expansion of 2/3?
The Engel expansion of 2/3 is 2, 3. As unit fractions, that is 1/2 + 1/6 = 2/3. The first term 1/2 leaves a remainder of 1/6, and the next denominator 3 produces the final term 1/6, so the sum equals 2/3 exactly.
How is an Engel expansion different from an Egyptian fraction?
In an Engel expansion the denominators are nondecreasing, and each term divides the next product of denominators. A greedy Egyptian expansion only requires distinct unit fractions, without that divisibility or ordering rule. So both write a number as unit fractions, but the Engel form imposes the stricter nondecreasing and divisibility structure.
What is the largest term in the Engel expansion of 355/113?
The largest term in the Engel expansion of 355/113 is 113, which is the eighth and final term. Because the denominators are nondecreasing, the last term is the largest one, so 113 closes out the 8-step expansion of 355/113.