login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A103591
Smallest number m such that Sum_{k=1..m} 1/prime(k) >= n/2.
10
1, 3, 10, 59, 1413, 361139, 4833601540, 43922730588128390
OFFSET
1,2
FORMULA
a(2n) = A046024(n). - Michel Marcus, Aug 22 2013
MATHEMATICA
Table[m = 1; s = 0; While[(s = s + 1/Prime[m]) < n/2, m++];
m, {n, 1, 5}] (* Robert Price, Mar 27 2019 *)
PROG
(PARI) a(n) = my(s = 0, k = 1); while ((s += 1/prime(k)) < n/2, k++); k \\ Michel Marcus, Aug 22 2013
CROSSREFS
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
a(7) from Robert Price, Dec 10 2013
a(8) derived from A046024 by Robert Price, Dec 10 2013
STATUS
approved

  NODES
orte 1
see 1
Story 1