OFFSET
0,1
COMMENTS
Decimal expansion of Sum_{k >= 1} A010051(k)/2^(k-1).
The primes have a larger measure than the composites as they dominate the lower integers.
REFERENCES
S. M. Ulam, Problems in Modern Mathematics, John Wiley and Sons, New York, 1960, page 54.
FORMULA
Equals Sum_{k>=1} pi(k)/2^k, where pi(k) = A000720(k). - Amiram Eldar, Aug 11 2020
Equals 1 - A119524. - Antonio GraciĆ” Llorente, Jan 14 2024
EXAMPLE
0.829365...
MATHEMATICA
b = 0; Do[k = PrimePi[n + 1] - PrimePi[n]; b = b + k/2^n, {n, 1, 200}]; First[RealDigits[N[b, 200]]] (* Artur Jasinski, Jun 02 2008 *)
PROG
(PARI) s=0; forprime(p=2, 1000, s+=1.>>p); 2*s \\ Charles R Greathouse IV, Apr 05 2012
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Roger L. Bagula, May 27 2006
EXTENSIONS
More terms from Peter Pein (petsie(AT)dordos.net), May 31 2006
Edited by N. J. A. Sloane, Nov 17 2006
Use of PrimePi in the first comment line corrected by R. J. Mathar, Oct 30 2010, _Alonso Del Arte_, Apr 05 2012
a(99) corrected by Sean A. Irvine, Jun 09 2024
STATUS
approved