bounds on π⁢(n)


This article shows that

ln⁡2⁢(nln⁡n)-1≤π⁢(n)≤8⁢ln⁡2⁢(nln⁡n)

and thus that the function

π⁢(n)/nln⁡n

is bounded above and below.

Definition 1

If n is an integer, write n=∏piri where the pi are distinct primes. Then

o⁢r⁢dp⁢(n)={riif ⁢p=pi0𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Lemma 1
o⁢r⁢dp⁢(n!)=∑i=1∞⌊npi⌋

Proof. Note that the number of multiplesMathworldPlanetmath of p≤n is simply ⌊np⌋. But that does not result in o⁢r⁢dp⁢(n!) since some of those ⌊np⌋ numbers may have additional factors of p. So divide each by p; then clearly

o⁢r⁢dp⁢(n!)=⌊np⌋+o⁢r⁢dp⁢(⌊np⌋!)

The result follows inductively. Note that the sum is actually finite.

Lemma 2

If (m+nn)=∏qi,qi=piri, all pi distinct, then ∀i,qi≤m+n.

Proof. Consider q1=pc. Choose a such that pa≤m+n<pa+1; it suffices to show c≤a.

c=o⁢r⁢dp⁢((m+nn))=o⁢r⁢dp⁢((m+n)!)-o⁢r⁢dp⁢(m!)-o⁢r⁢dp⁢(n!)=∑1∞(⌊m+npi⌋-⌊mpi⌋-⌊npi⌋)

Now, in general, if ⌊x⌋=r,⌊y⌋=s, then ⌊x+y⌋=r+s or r+s+1. So the sum above has at most a terms (since pa+1>m+n), each of which is either 0 or 1, and thus c≤a.

Theorem 1

(Chebyshev) If n≥2

π⁢(n)≥ln⁡2⁢(nln⁡n)-1

Proof. Choose r such that 0<r<n, and write (nr)=∏piλi. Each piλi≤n by the preceding lemma, and there are at most π⁢(n) terms on the right-hand side. Thus

nπ⁢(n)≥(nr)⁢∀r

Summing from r=1 to r=n-1, we get

(n-1)⁢nπ⁢(n)≥∑r=1n-1(nr)=2n-2

But nπ⁢(n)≥2 since n≥2, so

nπ⁢(n)+1≥2n

so (π⁢(n)+1)⁢ln⁡n≥n⁢ln⁡2 and thus

π⁢(n)≥ln⁡2⁢(nln⁡n)-1
Theorem 2

(Chebyshev)

π⁢(n)≤8⁢ln⁡2⁢(nln⁡n)

Proof. Note that if p is prime, n≤p≤2⁢n, then p divides (2⁢nn) since p occurs in the numerator but not in the denominator. Thus ∏n≤p≤2⁢np divides (2⁢nn) as well, and thus

∏n≤p≤2⁢np≤(2⁢nn)≤22⁢n

and therefore

nπ⁢(2⁢n)-π⁢(n)≤22⁢n

Taking logs, we get

π⁢(2⁢n)-π⁢(n)≤2⁢n⁢ln⁡2ln⁡n=2⁢ln⁡2⁢nln⁡n

Let f⁢(n)=π⁢(n)⁢ln⁡n. Then

f⁢(2⁢n)-f⁢(n) =π⁢(2⁢n)⁢ln⁡2⁢n-π⁢(n)⁢ln⁡n
=(π⁢(2⁢n)-π⁢(n))⁢ln⁡n+π⁢(2⁢n)⁢(ln⁡2⁢n-ln⁡n)
=(π⁢(2⁢n)-π⁢(n))⁢ln⁡n+π⁢(2⁢n)⁢ln⁡2
≤2⁢n⁢ln⁡2+2⁢n⁢ln⁡2
=4⁢n⁢ln⁡2

Then

f⁢(2t) =(f⁢(2t)-f⁢(2t-1))+(f⁢(2t-1)-f⁢(2t-2))+…+(f⁢(2)-f⁢(1))
≤4⁢ln⁡2⁢(2t-1+2t-2+…+20)
≤4⁢ln⁡2⋅2t

Note that f is monotonically increasing, so if we choose t with 2t-1≤n<2t, then

f⁢(n)≤f⁢(2t)≤4⁢ln⁡2⋅2t≤4⁢ln⁡2⋅2⁢n=8⁢n⁢ln⁡2
Title bounds on π⁢(n)
Canonical name BoundsOnpin
Date of creation 2013-03-22 16:23:51
Last modified on 2013-03-22 16:23:51
Owner rm50 (10146)
Last modified by rm50 (10146)
Numerical id 4
Author rm50 (10146)
Entry type Theorem
Classification msc 11A41