OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000 (terms 1..85 from Fintan Costello).
Michael Domaratzki, Keith Ellul, Jeffrey Shallit and Ming-Wei Wang, Non-Uniqueness and Radius of Cyclic Unary NFAs, International Journal of Foundations of Computer Science, Vol. 16, No. 5 (2005) pp. 883-896, alternative link.
FORMULA
EXAMPLE
a(2) = 10 as 1/3+1/5+1/7+1/11+1/13+1/17+1/19+1/23+1/29 > 1
but 1/3 + 1/5 + 1/7 + 1/11 + 1/13 + 1/17 + 1/19 + 1/23 < 1 (29 is the 10th prime).
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; f[n_] := Block[{k = n, p = Prime[n], s = 1/Prime[n]}, While[s < 1, p = NextPrim[p]; s = N[s + 1/p, 64]; k++ ]; k]; Table[ f[n], {n, 41}] (* Robert G. Wilson v, Apr 07 2004 *)
s = 0; j = 1; t1 = Table[While[s <= 1, s = s + 1/Prime[j]; j++]; s = s - 1/Prime[i]; j - 1, {i, 25}] (* Horst H. Manninger, Oct 11 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Domaratzki (mdomaratzki(AT)alumni.uwaterloo.ca), Apr 02 2004
EXTENSIONS
More terms from Robert G. Wilson v, Apr 07 2004
More terms from Fintan Costello, Jun 03 2011
STATUS
approved