OFFSET
1,2
COMMENTS
Subsequence of starting elements of each pass may be related to A002387 1,2,4,11,31,83,... - David W. Wilson
REFERENCES
H. Ibstedt, Computer Analysis of Number Sequences, American Research Press, 1998; Chapter VI.2 Integers represented as sums of terms of the harmonic series.
LINKS
Jeremy Gardiner, Table of n, a(n) for n=1..94
K. S. Brown's Mathpages, The Greedy Algorithm for Unit Fractions
EXAMPLE
1/2+1/3+1/6=1
PROG
(PARI) {r=1; u=[]; l=1; for(n=1, 99, while(setsearch(u, l), l++); m=ceil(1/r); while(setsearch(u, m), m++); print1(m", "); r-=1/m; r||r=1; u=setunion(u, Set(m)))} \\ M. F. Hasler
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeremy Gardiner, Feb 25 2009
STATUS
approved