OFFSET
0,2
COMMENTS
Composite constant: decimal value of A066247 interpreted as a binary number.
The characteristic function of composite numbers (A066247) has values 0, 0, 0, 1, 0, 1, 0, 1, 1, ... for n = 1, 2, 3, ... The constant obtained by concatenating these digits and interpreting them as a binary fraction is therefore C = 0.0001010111010... (base 2) = 0.0853174901...(base 10).
Continued fraction [0; 11, 1, 2, 1, 1, 2, 1, 1, 131, 2, 1, 1, 2, 6, 4, 2, 21, ...].
LINKS
Simon Plouffe, Primes coded in binary to 1000 digits.
Eric Weisstein's World of Mathematics, Composite Number.
Eric Weisstein's World of Mathematics, Prime Constant.
FORMULA
Equals Sum_{k>=1} 1/2^A002808(k).
From Amiram Eldar, Aug 11 2020: (Start)
Equals Sum_{k>=1} 1/A073718(k).
Equals Sum_{k>=1} A066247(k)/2^k.
Equals -(1/2) + Sum_{k>=1} A062298(k)/2^(k+1). (End)
Equals Sum_{k >= 1} ((-1)^A010051(k))/2^(k+1). - Antonio GraciĆ” Llorente, Jan 13 2024
EXAMPLE
0.0853174901... = (0.00010101110...)_2.
| | |||
4 6 8910
MATHEMATICA
nn = 121; Take[#, nn] &@ PadLeft[First@ #, Abs@ Last@ # + Length@ First@ #] &@ RealDigits@ N[1/2 - Sum[ 1/2^Prime[k], {k, 10^4}], nn + 2] (* Michael De Vlieger, Jul 22 2016 *)
PROG
(PARI) s=.5; forprime(p=2, bitprecision(s)+2, s-=1.>>p); s \\ Charles R Greathouse IV, Jul 22 2016
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Ilya Gutkovskiy, Jul 22 2016
STATUS
approved