Prime constant

From HandWiki

The prime constant is the real number ρ whose nth binary digit is 1 if n is prime and 0 if n is composite or 1.

In other words, ρ is the number whose binary expansion corresponds to the indicator function of the set of prime numbers. That is,

ρ=p12p=n=1χ(n)2n

where p indicates a prime and χ is the characteristic function of the set of prime numbers.

The beginning of the decimal expansion of ρ is: ρ=0.414682509851111660248109622 (sequence A051006 in the OEIS)

The beginning of the binary expansion is: ρ=0.0110101000101000101000100002 (sequence A010051 in the OEIS)

Irrationality

The number ρ can be shown to be irrational.[1] To see why, suppose it were rational.

Denote the kth digit of the binary expansion of ρ by rk. Then since ρ is assumed rational, its binary expansion is eventually periodic, and so there exist positive integers N and k such that rn=rn+ik for all n>N and all i.

Since there are an infinite number of primes, we may choose a prime p>N. By definition we see that rp=1. As noted, we have rp=rp+ik for all i. Now consider the case i=p. We have rp+ik=rp+pk=rp(k+1)=0, since p(k+1) is composite because k+12. Since rprp(k+1) we see that ρ is irrational.

References

  1. Hardy, G. H. (2008). An introduction to the theory of numbers. E. M. Wright, D. R. Heath-Brown, Joseph H. Silverman (6th ed.). Oxford: Oxford University Press. ISBN 978-0-19-921985-8. OCLC 214305907. https://www.worldcat.org/oclc/214305907.