OFFSET
0,2
COMMENTS
sum(k=>1,1/a(k))=C=1.9...
EXAMPLE
The simple continued fraction for S(3)=1/a(0)+1/a(1)+1/a(2)+1/a(3)=1+1/2+1/7+1/15 is [1, 1, 2, 2, 3, 1, 6] where the largest element is 6=2*3. The simple continued fraction for 1+1/2+1/7+1/15+1/16 is [1, 1, 3, 2, 1, 1, 2, 2, 1, 8] where 8=2*4 is the largest element. Hence a(4)=16.
PROG
(PARI) s=1; t=1; for(n=1, 60, s=s+1/t; while(abs(2*n-vecmax(contfrac(s+1/t)))>0, t++); print1(t, ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 19 2002
STATUS
approved