OFFSET
0,2
EXAMPLE
The simple continued fraction for S(4)=1+1/2+1/5+1/7+1/12 is [1, 1, 12, 1, 1, 4, 1, 2] which contains exactly 8 elements. The simple continued fraction for 1+1/2+1/5+1/7+1/12+1/25 is [1, 1, 28, 1, 1, 2, 1, 2, 1, 2] which contains exactly 10=2*5 elements and 25 is the smallest integer>12 with this property, hence a(5)=25.
PROG
(PARI) s=1; t=1; for(n=1, 78, s=s+1/t; while(abs(2*n-length(contfrac(s+1/t)))>0, t++); print1(t, ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 19 2002
STATUS
approved