This site is supported by donations to The OEIS Foundation.
Greedy Egyptian representation
From OeisWiki
An Egyptian representation of a real number
is a sum of positive (usually) distinct unit fractions equal to
. The (unique) greedy Egyptian representation uses the greedy algorithm for Egyptian representation.
Contents |
Greedy Egyptian representation of 1 in unit fractions less than 1
The denominators are given by the quadratic recurrence
and by the formula (which shows that it is an infinite coprime sequence)
where for
we get 1 + (empty product, i.e. 1) = 2.
Greedy Egyptian representation of 1 (Sylvester's sequence): a(n+1) = a(n)^2 - a(n) + 1, with a(0) = 2. (Cf. A000058)
- {2, 3, 7, 43, 1807, 3263443, 10650056950807, 113423713055421844361000443, 12864938683278671740537145998360961546653259485195807, ...}
Greedy Egyptian representation of positive rational numbers less than 1
| Denominators of distinct unit fractions of the greedy Egyptian representation
of positive rational numbers less than 1 |
|---|---|
| {2} |
| {3} |
| {2, 6} |
| {4} |
| {2, 4} |
| {5} |
| {3, 15} |
| {2, 10} |
| {2, 4, 20} |
| {6} |
| {2, 3} |
| {7} |
| {4, ...} |
| {3, ...} |
| {2, ...} |
| {2, ...} |
| {2, ...} |
| {8} |
| {3, ...} |
| {2, ...} |
| {2, ...} |
| {9} |
| {5, ...} |
| {3, ...} |
| {2, ...} |
| {2, ...} |
| {2, ...} |
| {10} |
| {4, ...} |
| {2, ...} |
| {2, ...} |
Greedy algorithm for Egyptian representation
Fibonacci's algorithm for the greedy Egyptian representation
of a rational number
is
where
is the ceiling function.
Greedy signed Egyptian representation
A signed Egyptian representation of a real number
is a sum of negative or positive (usually) distinct unit fractions equal to
. The (unique) greedy signed Egyptian representation uses the greedy algorithm for signed Egyptian representation.
Greedy signed Egyptian representation of positive rational numbers less than 1
| Signed denominators of distinct signed unit fractions of the greedy signed Egyptian representation
of positive rational numbers less than 1 |
|---|---|
| {2} |
| {3} |
| {2, 3} |
| {4} |
| {1, -4} |
| {5} |
| {3, 15} |
| {1, ...} |
| {1, ...} |
| {6} |
| {1, ...} |
| {7} |
| {4, ...} |
| {2, } |
| {2, ...} |
| {1, ...} |
| {1, ...} |
| {8} |
| {3, ...} |
| {2, ...} |
| {1, ...} |
| {9} |
| {5, ...} |
| {2, ...} |
| {2, ...} |
| {1, ...} |
| {1, ...} |
| {10} |
| {3, ...} |
| {1, ...} |
| {1, ...} |
Greedy algorithm for signed Egyptian representation
***** NEEDS DOUBLECHECKING *****
The greedy algorithm for the signed Egyptian representation
where
is the Heaviside step function, of a rational number
is
where
is the nearest integer function.
Sequences
Denominators of distinct unit fractions (less than 1) of the greedy Egyptian representation of rational numbers (less than 1) ordered by increasing denominators, then by increasing coprime numerators of those rational numbers
- {{2}, {3}, {2, 6}, {4}, {2, 4}, {5}, {3, 15}, {2, 10}, {2, 4, 20}, {6}, {2, 3}, {7}, ...}
whose concatenation gives (Cf. A??????)
- {2, 3, 2, 6, 2, 4, 5, 3, 15, 2, 10, 2, 4, 20, 6, 2, 3, 7, ...}
