OFFSET
0,1
COMMENTS
Absolute difference between this number and A139395 is about 0.1333426...
EXAMPLE
0.4343277031969381022961575130248372367427913892771967793855...
MAPLE
P:=proc(n) local a, b, i, j, k; a:=0.5; k:=1; for i from 2 by 1 to n do b:=1; for j from k by 1 to k+i-1 do b:=b*1/ithprime(j+1); od; k:=j; a:=evalf(a+b*(-1)^(i-1), 105); od; print(a); end: P(100);
MATHEMATICA
digits = 105; n0 = 10; dn = 10; t[n_] := n*(n + 1)/2; Clear[p]; p[n_] := p[n] = Sum[(-1)^(k + 1)/Product[Prime[j], {j, t[k] - k + 1, t[k]}], {k, 1, n}] // N[#, digits] &; p[n0]; p[n = n0 + dn]; While[RealDigits[p[n]] != RealDigits[p[n - dn]], Print["n = ", n]; n = n + dn]; RealDigits[p[n], 10, digits] // First (* Jean-François Alcover, Aug 12 2014, adapted from PARI *)
PROG
(PARI) default(realprecision, 120);
T(n) = n*(n + 1)/2; \\ T(n) = A000217(n).
sum(k = 1, 100, (-1.)^(k-1)/prod(j = T(k) - k + 1, T(k), prime(j))) \\ Rick L. Shepherd, Mar 07 2014
CROSSREFS
KEYWORD
AUTHOR
Paolo P. Lava, Feb 27 2014 - following a suggestion of Jean-François Alcover.
EXTENSIONS
More terms from and offset corrected by Rick L. Shepherd, Mar 07 2014
STATUS
approved