OFFSET
1,17
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
For n = 17, 4/17 is the only fraction for which the greedy Egyptian fraction representation has more terms than the shortest representation, so a(17) = 4.
For n = 38 there are 2 such fractions, 9/38 and 15/38, so a(38) = 15. For the larger fractions 28/38 = 14/19 and 34/38 = 17/19, the greedy Egyptian fraction representations also have more terms than the shortest representations, but since both 28 and 34 have a common factor with 38 they are discarded.
CROSSREFS
KEYWORD
nonn
AUTHOR
Pontus von Brömssen, May 14 2026
STATUS
approved
