OFFSET
0,2
COMMENTS
Sum_{k>=0} 1/a(k) = C = 1.99...
EXAMPLE
The continued fraction for S(11)=1+1/2+1/4+1/10+1/32+1/44+1/47+1/56+1/61+1/249+1/261+1/379 is [1, 1, 32, 3, 10, 6, 1, 1, 1, 8, 1, 1, 1, 1, 2, 1, 9, 3, 1, 1, 2, 23, 3, 1, 1, 2, 1, 21, 1, 1, 5, 3] which contains 32 elements and with largest element 32.
PROG
(PARI) s=1; t=1; for(n=1, 60, s=s+1/t; while(abs(length(contfrac(s+1/t))-vecmax(contfrac(s+1/t)))>0, t++); print1(t, ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 19 2002
EXTENSIONS
Name corrected by Sean A. Irvine, Jun 18 2024
STATUS
approved