OFFSET
1,2
COMMENTS
sum(k=>1,1/a(k))=C=1.3...
EXAMPLE
The continued fraction for S(7)=1+1/6+1/13+1/16+1/49+1/71+1/124 is [1, 2, 1, 6, 1, 1, 2, 3, 3, 1, 21, 1, 1, 3, 1, 3, 18, 3] where the largest element is 21=3*7 and 124 is the smallest integer > a(6)=71 with this property, hence a(7)=124.
PROG
(PARI) s=1; t=1; for(n=1, 60, s=s+1/t; while(abs(3*n-vecmax(contfrac(s+1/t)))>0, t++); print1(t, ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 19 2002
STATUS
approved