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.0110101000101000101000100002 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+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

Template:Irrational number