OFFSET
1,1
FORMULA
a(n)=m: Sum_{i=n..n+m-1} 1/prime(i) > 1, while Sum_{i=n..n+m-2} 1/prime(i) < 1.
EXAMPLE
a(1)=3 because 1/2+1/3+1/5=31/30 (3 terms), while 1/2+1/3<1,
a(2)=9 because 1/3+1/5+1/7+1/11+1/13+1/17+1/19+1/23+1/29 =3343015913/3234846615 (9 terms), while 1/3+...+1/23<1,
a(3)=27 because 1/p(3)+...1/p(29)>1 (27 terms) while 1/p(3)+...1/p(28)<1.
MATHEMATICA
ss={}; Do[s=1/Prime[n]; k=1; While[s<1, k++; s+=1/Prime[n+k-1]]; AppendTo[ss, k], {n, 1, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 09 2008
EXTENSIONS
a(31)-a(40) from Donovan Johnson, Sep 05 2008
STATUS
approved