OFFSET
1,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
For n=4 the sum is 1/1 + 0 + 0 + 1/4 = 5/4, so a(4) = 5. The sum for n=5 is the same.
MATHEMATICA
a[n_]=Sum[If[Element[k, Primes], 0, 1/k], {k, 1, n}]; Numerator /@ a /@ Range[1, 10]
Numerator[Accumulate[Table[If[PrimeQ[n], 0, 1/n], {n, 40}]]] (* Harvey P. Dale, Dec 16 2017 *)
PROG
(PARI) lista(nn) = {sr = 0; for (n=1, nn, if (!isprime(n), sr += 1/n); print1(numerator(sr), ", "); ); } \\ Michel Marcus, Feb 17 2017
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Ralf Steiner, Feb 16 2017
EXTENSIONS
More terms from Michel Marcus, Feb 18 2017
STATUS
approved