CalcWorldHub
Free online calculator · no signup

Greedy Egyptian fraction expansion calculator

Express a proper positive rational as a sum of distinct unit fractions using the greedy algorithm.

4,000 tools
Greedy Egyptian fraction expansion calculator — Positive numerator, Positive denominator and calculation method
Greedy Egyptian fraction expansion calculator: inputs and calculation method.

How to use this calculator

Express a proper positive rational as a sum of distinct unit fractions using the greedy algorithm.

  1. Enter Positive numerator, Positive denominator. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Greedy Egyptian fraction expansion explained

Express a proper positive rational as a sum of distinct unit fractions using the greedy algorithm.

Greedy Egyptian expansion1/4 + 1/18 + 1/468
Greedy Egyptian expansion: 1/4 + 1/18 + 1/468 in the worked scenario.

How the calculation works

Greedy unit-fraction subtraction

At each step choose denominator ceil(d/n), subtract its unit fraction n/d, and reduce the exact rational remainder before continuing. Only proper fractions are accepted; at most 30 terms and 5,000-digit intermediates are supported..

Set up the calculation

a — Positive numerator
Positive integer numerator of a proper fraction; it must be smaller than the denominator.
b — Positive denominator
Positive integer denominator. The algorithm repeatedly subtracts the largest unit fraction that does not exceed the remainder.

Limits of this model

Only proper fractions are accepted; at most 30 terms and 5,000-digit intermediates are supported.

Check this example

Positive numerator = 4; Positive denominator = 13.

  • Greedy Egyptian expansion: 1/4 + 1/18 + 1/468

Interpreting the result

The exact identity is 4/13=1/4+1/18+1/468. The displayed terms are distinct unit fractions selected by the greedy rule; other valid Egyptian-fraction expansions can exist.

Frequently asked questions

Is the expansion unique?

No, the greedy method selects one expansion.

Does it always use the fewest terms?

No.

Can an improper fraction be entered?

Separate its integer part first.

How do I use the Greedy Egyptian fraction expansion calculator?

Enter Positive numerator, Positive denominator. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Greedy Egyptian fraction expansion?

Positive numerator = 4; Positive denominator = 13. Greedy Egyptian expansion: 1/4 + 1/18 + 1/468