OFFSET
1,17
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 1..10000
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 = 42 there are 2 such fractions, 13/42 and 31/42, so a(42) = 13. For the smaller fraction 10/42 = 5/21, the greedy Egyptian fraction representation also has more terms than the shortest representation, but since 10 and 42 have a common factor it is discarded.
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Pontus von Brömssen, May 14 2026
STATUS
approved
