Prime constant

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Distinguish

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.[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… Template:OEIS[1]

The beginning of the binary expansion is: ρ=0.011010100010100010100010000…2 Template:OEIS

Irrationality

The number ρ is irrational.[2]

Proof by contradiction

Suppose ρ 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+i⋅k=rp+p⋅k=rp(k+1)=0, since p(k+1) is composite because k+1≥2. Since rp≠rp(k+1) we see that ρ is irrational.

References

Template:Irrational number