Prime number theorem

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Log(x) Template:Duplication In mathematics, the prime number theorem (PNT) describes the asymptotic distribution of the prime numbers among the positive integers. It formalizes the intuitive idea that primes become less common as they become larger by precisely quantifying the rate at which this occurs. The theorem was proved independently by Jacques Hadamard[1] and Charles Jean de la Vallée Poussin[2] in 1896 using ideas introduced by Bernhard Riemann (in particular, the Riemann zeta function).

The first such distribution found is Template:Math, where Template:Math is the prime-counting function (the number of primes less than or equal to N) and Template:Math is the natural logarithm of Template:Mvar. This means that for large enough Template:Mvar, the probability that a random integer not greater than Template:Mvar is prime is very close to Template:Math. Consequently, a random integer with at most Template:Math digits (for large enough Template:Mvar) is about half as likely to be prime as a random integer with at most Template:Mvar digits. For example, among the positive integers of at most 1000 digits, about one in 2300 is prime (Template:Math), whereas among positive integers of at most 2000 digits, about one in 4600 is prime (Template:Math). In other words, the average gap between consecutive prime numbers among the first Template:Mvar integers is roughly Template:Math.[3]

Statement

Error creating thumbnail:
Graph showing ratio of the prime-counting function Template:Math to two of its approximations, Template:Math and Template:Math. As Template:Mvar increases (note Template:Mvar axis is logarithmic), both ratios tend towards 1. The ratio for Template:Math converges from above very slowly, while the ratio for Template:Math converges more quickly from below.
File:Prime number theorem absolute error.svg
Log–log plot showing absolute error of Template:Math and Template:Math, two approximations to the prime-counting function Template:Math. Unlike the ratio, the difference between Template:Math and Template:Math increases without bound as Template:Mvar increases. On the other hand, Template:Math switches sign infinitely many times.

Let Template:Math be the prime-counting function defined to be the number of primes less than or equal to Template:Mvar, for any real number Template:Mvar. For example, Template:Math because there are four prime numbers (2, 3, 5 and 7) less than or equal to 10. The prime number theorem then states that Template:Math is a good approximation to Template:Math (where log here means the natural logarithm), in the sense that the limit of the quotient of the two functions Template:Math and Template:Math as Template:Mvar increases without bound is 1:

limxπ(x)[xlog(x)]=1,

known as the asymptotic law of distribution of prime numbers. Using asymptotic notation this result can be restated as

π(x)xlogx.

This notation (and the theorem) does not say anything about the limit of the difference of the two functions as Template:Mvar increases without bound. Instead, the theorem states that Template:Math approximates Template:Math in the sense that the relative error of this approximation approaches 0 as Template:Mvar increases without bound.

The prime number theorem is equivalent to the statement that the Template:Mvarth prime number Template:Mvar satisfies

pnnlog(n),

the asymptotic notation meaning, again, that the relative error of this approximation approaches 0 as Template:Mvar increases without bound. For example, the Template:Valth prime number is Template:Val,[4] and (Template:Val)log(Template:Val) rounds to Template:Val, a relative error of about 6.4%.

On the other hand, the following asymptotic relations are logically equivalent:[5]Template:Rp

limxπ(x)logxx=1, andlimxπ(x)logπ(x)x=1.

As outlined below, the prime number theorem is also equivalent to

limxϑ(x)x=limxψ(x)x=1,

where Template:Mvar and Template:Mvar are the first and the second Chebyshev functions respectively, and to

limxM(x)x=0,Template:R

where M(x)=nxμ(n) is the Mertens function.

History of the proof of the asymptotic law of prime numbers

Based on the tables by Anton Felkel and Jurij Vega, Adrien-Marie Legendre conjectured in 1797 or 1798 that Template:Math is approximated by the function Template:Math, where Template:Mvar and Template:Mvar are unspecified constants. In the second edition of his book on number theory (1808) he then made a more precise conjecture, with Template:Math and Template:Math. Carl Friedrich Gauss considered the same question at age 15 or 16 "in the year 1792 or 1793", according to his own recollection in 1849.[6] In 1838 Peter Gustav Lejeune Dirichlet came up with his own approximating function, the logarithmic integral Template:Math (under the slightly different form of a series, which he communicated to Gauss). Both Legendre's and Dirichlet's formulas imply the same conjectured asymptotic equivalence of Template:Math and Template:Math stated above, although it turned out that Dirichlet's approximation is considerably better if one considers the differences instead of quotients.

In two papers from 1848 and 1850, the Russian mathematician Pafnuty Chebyshev attempted to prove the asymptotic law of distribution of prime numbers. His work is notable for the use of the zeta function Template:Math, for real values of the argument "Template:Mvar", as in works of Leonhard Euler, as early as 1737. Chebyshev's papers predated Riemann's celebrated memoir of 1859, and he succeeded in proving a slightly weaker form of the asymptotic law, namely, that if the limit as Template:Mvar goes to infinity of Template:Math exists at all, then it is necessarily equal to one.[7] He was able to prove unconditionally that this ratio is bounded above and below by 0.92129 and 1.10555, for all sufficiently large Template:Mvar.[8][9] Although Chebyshev's paper did not prove the Prime Number Theorem, his estimates for Template:Math were strong enough for him to prove Bertrand's postulate that there exists a prime number between Template:Math and Template:Math for any integer Template:Math.

An important paper concerning the distribution of prime numbers was Riemann's 1859 memoir "On the Number of Primes Less Than a Given Magnitude", the only paper he ever wrote on the subject. Riemann introduced new ideas into the subject, chiefly that the distribution of prime numbers is intimately connected with the zeros of the analytically extended Riemann zeta function of a complex variable. In particular, it is in this paper that the idea to apply methods of complex analysis to the study of the real function Template:Math originates. Extending Riemann's ideas, two proofs of the asymptotic law of the distribution of prime numbers were found independently by Jacques Hadamard[1] and Charles Jean de la Vallée Poussin[2] and appeared in the same year (1896). Both proofs used methods from complex analysis, establishing as a main step of the proof that the Riemann zeta function Template:Math is nonzero for all complex values of the variable Template:Mvar that have the form Template:Math with Template:Math.[10]

During the 20th century, the theorem of Hadamard and de la Vallée Poussin also became known as the Prime Number Theorem. Several different proofs of it were found, including the "elementary" proofs of Atle Selberg[11] and Paul Erdős[12] (1949). Hadamard's and de la Vallée Poussin's original proofs are long and elaborate; later proofs introduced various simplifications through the use of Tauberian theorems but remained difficult to digest. A short proof was discovered in 1980 by the American mathematician Donald J. Newman.[13][14] Newman's proof is arguably the simplest known proof of the theorem, although it is non-elementary in the sense that it uses Cauchy's integral theorem from complex analysis.

Proof sketch

Here is a sketch of the proof referred to in one of Terence Tao's lectures.[15] Like most proofs of the PNT, it starts out by reformulating the problem in terms of a less intuitive, but better-behaved, prime-counting function. The idea is to count the primes (or a related set such as the set of prime powers) with weights to arrive at a function with smoother asymptotic behavior. The most common such generalized counting function is the Chebyshev function Template:Math, defined by

ψ(x)=k1p is primepkx,logp.

This is sometimes written as

ψ(x)=nxΛ(n),

where Template:Math is the von Mangoldt function, namely

Λ(n)={logp if n=pk for some prime p and integer k1,0otherwise.

It is now relatively easy to check that the PNT is equivalent to the claim that

limxψ(x)x=1.

Indeed, this follows from the easy estimates

ψ(x)=p is primepxlogplogxlogpp is primepxlogx=π(x)logx

and (using [[big O notation|big Template:Mvar notation]]) for any Template:Math,

ψ(x)p is primex1εpxlogpp is primex1εpx(1ε)logx=(1ε)(π(x)+O(x1ε))logx.

The next step is to find a useful representation for Template:Math. Let Template:Math be the Riemann zeta function. It can be shown that Template:Math is related to the von Mangoldt function Template:Math, and hence to Template:Math, via the relation

ζ(s)ζ(s)=n=1Λ(n)ns.

A delicate analysis of this equation and related properties of the zeta function, using the Mellin transform and Perron's formula, shows that for non-integer Template:Mvar the equation

ψ(x)=xlog(2π)ρ:ζ(ρ)=0xρρ

holds, where the sum is over all zeros (trivial and nontrivial) of the zeta function. This striking formula is one of the so-called explicit formulas of number theory, and is already suggestive of the result we wish to prove, since the term Template:Mvar (claimed to be the correct asymptotic order of Template:Math) appears on the right-hand side, followed by (presumably) lower-order asymptotic terms.

The next step in the proof involves a study of the zeros of the zeta function. The trivial zeros −2, −4, −6, −8, ... can be handled separately:

n=112nx2n=12log(11x2),

which vanishes for large Template:Mvar. The nontrivial zeros, namely those on the critical strip Template:Math, can potentially be of an asymptotic order comparable to the main term Template:Mvar if Template:Math, so we need to show that all zeros have real part strictly less than 1.

Non-vanishing on Re(s) = 1

To do this, we take for granted that Template:Math is meromorphic in the half-plane Template:Math, and is analytic there except for a simple pole at Template:Math, and that there is a product formula

ζ(s)=p11ps

for Template:Math. This product formula follows from the existence of unique prime factorization of integers, and shows that Template:Math is never zero in this region, so that its logarithm is defined there and

logζ(s)=plog(1ps)=p,npnsn.

Write Template:Math ; then

|ζ(x+iy)|=exp(n,pcosnylogpnpnx).

Now observe the identity

3+4cosϕ+cos2ϕ=2(1+cosϕ)20,

so that

|ζ(x)3ζ(x+iy)4ζ(x+2iy)|=exp(n,p3+4cos(nylogp)+cos(2nylogp)npnx)1

for all Template:Math. Suppose now that Template:Math. Certainly Template:Mvar is not zero, since Template:Math has a simple pole at Template:Math. Suppose that Template:Math and let Template:Mvar tend to 1 from above. Since ζ(s) has a simple pole at Template:Math and Template:Math stays analytic, the left hand side in the previous inequality tends to 0, a contradiction.

Finally, we can conclude that the PNT is heuristically true. To rigorously complete the proof there are still serious technicalities to overcome, due to the fact that the summation over zeta zeros in the explicit formula for Template:Math does not converge absolutely but only conditionally and in a "principal value" sense. There are several ways around this problem but many of them require rather delicate complex-analytic estimates. Edwards's book[16] provides the details. Another method is to use Ikehara's Tauberian theorem, though this theorem is itself quite hard to prove. D.J. Newman observed that the full strength of Ikehara's theorem is not needed for the prime number theorem, and one can get away with a special case that is much easier to prove.

Newman's proof of the prime number theorem

D. J. Newman gives a quick proof of the prime number theorem (PNT). The proof is "non-elementary" by virtue of relying on complex analysis, but uses only elementary techniques from a first course in the subject: Cauchy's integral formula, Cauchy's integral theorem and estimates of complex integrals. Here is a brief sketch of this proof. See [14] for the complete details.

The proof uses the same preliminaries as in the previous section except instead of the function ψ, the Chebyshev functionϑ(x)=pxlogp is used, which is obtained by dropping some of the terms from the series for ψ. Similar to the argument in the previous proof based on Tao's lecture, we can show that Template:Math, and Template:Math for any Template:Math. Thus, the PNT is equivalent to limxϑ(x)/x=1. Likewise instead of ζ(s)ζ(s) the function Φ(s)=pxlogpps is used, which is obtained by dropping some terms in the series for ζ(s)ζ(s). The functions Φ(s) and ζ(s)/ζ(s) differ by a function holomorphic on s=1. Since, as was shown in the previous section, ζ(s) has no zeroes on the line s=1, Φ(s)1s1 has no singularities on s=1.

One further piece of information needed in Newman's proof, and which is the key to the estimates in his simple method, is that ϑ(x)/x is bounded. This is proved using an ingenious and easy method due to Chebyshev.

Integration by parts shows how ϑ(x) and Φ(s) are related. For s>1,

Φ(s)=1xsdϑ(x)=s1ϑ(x)xs1dx=s0ϑ(et)estdt.

Newman's method proves the PNT by showing the integral

I=0(ϑ(et)et1)dt.

converges, and therefore the integrand goes to zero as t, which is the PNT. In general, the convergence of the improper integral does not imply that the integrand goes to zero at infinity, since it may oscillate, but since ϑ is increasing, it is easy to show in this case.

To show the convergence of I, for z>0 let

gT(z)=0Tf(t)eztdt and g(z)=0f(t)eztdt where f(t)=ϑ(et)et1

then

limTgT(z)=g(z)=Φ(s)s1s1wherez=s1

which is equal to a function holomorphic on the line z=0 .

The convergence of the integral I, and thus the PNT, is proved by showing that limTgT(0)=g(0). This involves change of order of limits since it can be written limTlimz0gT(z)=limz0limTgT(z) and therefore classified as a Tauberian theorem.

The difference g(0)gT(0) is expressed using Cauchy's integral formula and then shown to be small for T large by estimating the integrand. Fix R>0 and δ>0 such that g(z) is holomorphic in the region where |z|R and zδ, and let C be the boundary of this region. Since 0 is in the interior of the region, Cauchy's integral formula gives

g(0)gT(0)=12πiC(g(z)gT(z))dzz=12πiC(g(z)gT(z))F(z)dzz

where F(z)=ezT(1+z2R2) is the factor introduced by Newman, which does not change the integral since F is entire and F(0)=1.

To estimate the integral, break the contour C into two parts, C=C++C where C+=C{z|z>0} and C{z0}. Then g(0)gT(0)=C+TH(t,z)dtdzC0TH(t,z)dtdz+Cg(z)F(z)dz2πizwhere H(t,z)=f(t)etzF(z)/2πi. Since ϑ(x)/x, and hence f(t), is bounded, let B be an upper bound for the absolute value of f(t). This bound together with the estimate |F|2exp(Tz)|z|/R for |z|=R gives that the first integral in absolute value is B/R. The integrand over C in the second integral is entire, so by Cauchy's integral theorem, the contour C can be modified to a semicircle of radius R in the left half-plane without changing the integral, and the same argument as for the first integral gives the absolute value of the second integral is B/R. Finally, letting T , the third integral goes to zero since ezT and hence F goes to zero on the contour. Combining the two estimates and the limit get

lim supT|g(0)gT(0)|2BR.

This holds for any R so limTgT(0)=g(0), and the PNT follows.

Prime-counting function in terms of the logarithmic integral

In a handwritten note on a reprint of his 1838 paper "Template:Lang", which he mailed to Gauss, Dirichlet conjectured (under a slightly different form appealing to a series rather than an integral) that an even better approximation to Template:Math is given by the offset logarithmic integral function Template:Math, defined by

Li(x)=2xdtlogt=li(x)li(2).

Indeed, this integral is strongly suggestive of the notion that the "density" of primes around Template:Mvar should be Template:Math. This function is related to the logarithm by the asymptotic expansion

Li(x)xlogxk=0k!(logx)k=xlogx+x(logx)2+2x(logx)3+

So, the prime number theorem can also be written as Template:Math. In fact, in another paper[17] in 1899 de la Vallée Poussin proved that

π(x)=Li(x)+O(xealogx)as x

for some positive constant Template:Mvar, where Template:Math is the [[big O notation|big Template:Mvar notation]]. This has been improved to

π(x)=li(x)+O(xexp(A(logx)35(loglogx)15)) where A=0.2098.[18]

In 2016, Timothy Trudgian proved an explicit upper bound for the difference between π(x) and li(x):

|π(x)li(x)|0.2795x(logx)3/4exp(logx6.455)

for x229.[19]

The connection between the Riemann zeta function and Template:Math is one reason the Riemann hypothesis has considerable importance in number theory: if established, it would yield a far better estimate of the error involved in the prime number theorem than is available today. More specifically, Helge von Koch showed in 1901[20] that if the Riemann hypothesis is true, the error term in the above relation can be improved to

π(x)=Li(x)+O(xlogx)

(this last estimate is in fact equivalent to the Riemann hypothesis). The constant involved in the big Template:Mvar notation was estimated in 1976 by Lowell Schoenfeld,[21] assuming the Riemann hypothesis:

|π(x)li(x)|<xlogx8π

for all Template:Math. He also derived a similar bound for the Chebyshev prime-counting function Template:Mvar:

|ψ(x)x|<x(logx)28π

for all Template:Math . This latter bound has been shown to express a variance to mean power law (when regarded as a random function over the integers) and Template:Sfrac noise and to also correspond to the Tweedie compound Poisson distribution. (The Tweedie distributions represent a family of scale invariant distributions that serve as foci of convergence for a generalization of the central limit theorem.[22]) A lower bound is also derived by J. E. Littlewood, assuming the Riemann hypothesis:[23][24][25]

|π(x)li(x)|=Ω(xlogloglogxlogx)

The logarithmic integral Template:Math is larger than Template:Math for "small" values of Template:Mvar. This is because it is (in some sense) counting not primes, but prime powers, where a power Template:Mvar of a prime Template:Mvar is counted as Template:Sfrac of a prime. This suggests that Template:Math should usually be larger than Template:Math by roughly  12li(x) , and in particular should always be larger than Template:Math. However, in 1914, Littlewood proved that  π(x)li(x)  changes sign infinitely often.[23] The first value of Template:Mvar where Template:Math exceeds Template:Math is probably around Template:Math; see the article on Skewes' number for more details. (On the other hand, the offset logarithmic integral Template:Math is smaller than Template:Math already for Template:Math; indeed, Template:Math, while Template:Math.)

Elementary proofs

In the first half of the twentieth century, some mathematicians (notably G. H. Hardy) believed that there exists a hierarchy of proof methods in mathematics depending on what sorts of numbers (integers, reals, complex) a proof requires, and that the prime number theorem (PNT) is a "deep" theorem by virtue of requiring complex analysis.[9] This belief was somewhat shaken by a proof of the PNT based on Wiener's tauberian theorem, though Wiener's proof ultimately relies on properties of the Riemann zeta function on the line re(s)=1, where complex analysis must be used.

In March 1948, Atle Selberg established, by "elementary" means, the asymptotic formula

ϑ(x)log(x)+pxlog(p) ϑ(xp)=2xlog(x)+O(x)

where

ϑ(x)=pxlog(p)

for primes Template:Mvar.[11] By July of that year, Selberg and Paul Erdős[12] had each obtained elementary proofs of the PNT, both using Selberg's asymptotic formula as a starting point.[9][26] These proofs effectively laid to rest the notion that the PNT was "deep" in that sense, and showed that technically "elementary" methods were more powerful than had been believed to be the case. On the history of the elementary proofs of the PNT, including the Erdős–Selberg priority dispute, see an article by Dorian Goldfeld.[9]

There is some debate about the significance of Erdős and Selberg's result. There is no rigorous and widely accepted definition of the notion of elementary proof in number theory, so it is not clear exactly in what sense their proof is "elementary". Although it does not use complex analysis, it is in fact much more technical than the standard proof of PNT. One possible definition of an "elementary" proof is "one that can be carried out in first-order Peano arithmetic." There are number-theoretic statements (for example, the Paris–Harrington theorem) provable using second order but not first-order methods, but such theorems are rare to date. Erdős and Selberg's proof can certainly be formalized in Peano arithmetic, and in 1994, Charalambos Cornaros and Costas Dimitracopoulos proved that their proof can be formalized in a very weak fragment of PA, namely Template:Math.[27] However, this does not address the question of whether or not the standard proof of PNT can be formalized in PA.

A more recent "elementary" proof of the prime number theorem uses ergodic theory, due to Florian Richter.[28] The prime number theorem is obtained there in an equivalent form that the Cesàro sum of the values of the Liouville function is zero. The Liouville function is (1)ω(n) where ω(n) is the number of prime factors, with multiplicity, of the integer n. Bergelson and Richter (2022) then obtain this form of the prime number theorem from an ergodic theorem which they prove:

Let X be a compact metric space, T a continuous self-map of X, and μ a T-invariant Borel probability measure for which T is uniquely ergodic. Then, for every fC(X),

1Nn=1Nf(Tω(n)x)Xfdμ,xX. This ergodic theorem can also be used to give "soft" proofs of results related to the prime number theorem, such as the Pillai–Selberg theorem and Erdős–Delange theorem.

Computer verifications

In 2005, Avigad et al. employed the Isabelle theorem prover to devise a computer-verified variant of the Erdős–Selberg proof of the PNT.[29] This was the first machine-verified proof of the PNT. Avigad chose to formalize the Erdős–Selberg proof rather than an analytic one because while Isabelle's library at the time could implement the notions of limit, derivative, and transcendental function, it had almost no theory of integration to speak of.[29]Template:Rp

In 2009, John Harrison employed HOL Light to formalize a proof employing complex analysis.[30] By developing the necessary analytic machinery, including the Cauchy integral formula, Harrison was able to formalize "a direct, modern and elegant proof instead of the more involved 'elementary' Erdős–Selberg argument".

Prime number theorem for arithmetic progressions

Let Template:Math denote the number of primes in the arithmetic progression Template:Math that are less than Template:Mvar. Dirichlet and Legendre conjectured, and de la Vallée Poussin proved, that if Template:Mvar and Template:Mvar are coprime, then

πd,a(x)Li(x)φ(d) ,

where Template:Mvar is Euler's totient function. In other words, the primes are distributed evenly among the residue classes Template:Math modulo Template:Mvar with Template:Math . This is stronger than Dirichlet's theorem on arithmetic progressions (which only states that there is an infinity of primes in each class) and can be proved using similar methods used by Newman for his proof of the prime number theorem.[31]

The Siegel–Walfisz theorem gives a good estimate for the distribution of primes in residue classes.

Bennett et al.[32] proved the following estimate that has explicit constants Template:Mvar and Template:Mvar (Theorem 1.3): Let Template:Mvar 3 be an integer and let Template:Mvar be an integer that is coprime to Template:Mvar. Then there are positive constants Template:Mvar and Template:Mvar such that

|πd,a(x) Li(x)  φ(d) |<A x (logx)2  for all xB ,

where

A=1 840  if 3d104 and A=1 160  if d>104,

and

B=8109 if 3d105 and B=exp( 0.03 d  (logd)3 ) if d>105 .

Prime number race

Error creating thumbnail:
Plot of the function  π(x;4,3)π(x;4,1)  for Template:Math

Although we have in particular

π4,1(x)π4,3(x) ,

empirically the primes congruent to 3 are more numerous and are nearly always ahead in this "prime number race"; the first reversal occurs at Template:Math.[33]Template:Rp However Littlewood showed in 1914[33]Template:Rp that there are infinitely many sign changes for the function

π4,1(x)π4,3(x),

so the lead in the race switches back and forth infinitely many times. The phenomenon that Template:Math is ahead most of the time is called Chebyshev's bias. The prime number race generalizes to other moduli and is the subject of much research; Pál Turán asked whether it is always the case that Template:Math and Template:Math change places when Template:Mvar and Template:Mvar are coprime to Template:Mvar.[34] Granville and Martin give a thorough exposition and survey.[33]

File:Prime race of last digit up to 10000.png
Graph of the number of primes ending in 1, 3, 7, and 9 up to Template:Math for Template:Math

Another example is the distribution of the last digit of prime numbers. Except for 2 and 5, all prime numbers end in 1, 3, 7, or 9. Dirichlet's theorem states that asymptotically, 25% of all primes end in each of these four digits. However, empirical evidence shows that, for a given limit, there tend to be slightly more primes that end in 3 or 7 than end in 1 or 9 (a generation of the Chebyshev's bias).[35] This follows that 1 and 9 are quadratic residues modulo 10, and 3 and 7 are quadratic nonresidues modulo 10.

Non-asymptotic bounds on the prime-counting function

Template:Main The prime number theorem is an asymptotic result. It gives an ineffective bound on Template:Math as a direct consequence of the definition of the limit: for all Template:Math, there is an Template:Mvar such that for all Template:Math,

(1ε)xlogx<π(x)<(1+ε)xlogx.

However, better bounds on Template:Math are known, for instance Pierre Dusart's

xlogx(1+1logx)<π(x)<xlogx(1+1logx+2.51(logx)2).

The first inequality holds for all Template:Math and the second one for Template:Math.[36]

The proof by de la Vallée Poussin implies the following bound: For every Template:Math, there is an Template:Mvar such that for all Template:Math,

xlogx(1ε)<π(x)<xlogx(1+ε).

The value Template:Math gives a weak but sometimes useful bound for Template:Math:[37]

xlogx+2<π(x)<xlogx4.

In Pierre Dusart's thesis there are stronger versions of this type of inequality that are valid for larger Template:Mvar. Later in 2010, Dusart proved:[38]

xlogx1<π(x) for x5393, and π(x)<xlogx1.1 for x60184.

Note that the first of these obsoletes the Template:Math condition on the lower bound.

Approximations for the nth prime number

As a consequence of the prime number theorem, one gets an asymptotic expression for the Template:Mvarth prime number, denoted by Template:Math:

pnnlogn.[39]

A better approximation is by Cesàro (1894):[40]

pn=nB2(logn), where
B2(x)=x+logx1+logx2x(logx)26logx+112x2+o(1x2).

Again considering the Template:Valth prime number Template:Val, assuming the trailing error term is zero gives an estimate of Template:Val; the first 5 digits match and relative error is about 0.46 parts per million.

Cipolla (1902)[41][42] showed that these are the leading terms of an infinite series which may be truncated at arbitrary degree, with

Bk(x)=x+logx1i=1k(1)iPi(logx)ixi+O((logx)k+1xk+1),

where each Template:Math is a degree-Template:Mvar monic polynomial. (Template:Math, Template:Math, Template:Math, and so on.[42])

Rosser's theorem[37] states that

pn>nlogn.

Dusart (1999).[43] found tighter bounds using the form of the Cesàro/Cipolla approximations but varying the lowest-order constant term. Template:Math is the same function as above, but with the lowest-order constant term replaced by a parameter Template:Mvar:

pn>nB0(logn;1)for n2, andpn<nB0(logn;0.9484)for n39017, whereB0(x;C)=x+logxC.pn>nB1(logn;2.25)for n2, andpn<nB1(logn;1.8)for n27076, whereB1(x;C)=x+logx1+logxCx.

The upper bounds can be extended to smaller Template:Mvar by loosening the parameter. For example, Template:Math for all Template:Math.[44]

Axler (2019)[44] extended this to higher order, showing:

pn>nB2(logn;11.321)for n2, and pn<nB2(logn;10.667)for n46254381, whereB2(x;C)=x+logx1+logx2x(logx)26logx+C2x2.

Again, the bound on Template:Mvar may be decreased by loosening the parameter. For example, Template:Math for Template:Math.

Table of π(x), x / log x, and li(x)

The table compares exact values of Template:Math to the two approximations Template:Math and Template:Math. The approximation difference columns are rounded to the nearest integer, but the "% error" columns are computed based on the unrounded approximations. The last column, Template:Math, is the average prime gap below Template:Mvar.

Template:Mvar Template:Math Template:Math Template:Math % error Template:Math
Template:Math Template:Math
10 4 0 2 8.22% 42.606% 2.500
102 25 3 5 14.06% 18.597% 4.000
103 168 23 10 14.85% 5.561% 5.952
104 1,229 143 17 12.37% 1.384% 8.137
105 9,592 906 38 9.91% 0.393% 10.425
106 78,498 6,116 130 8.11% 0.164% 12.739
107 664,579 44,158 339 6.87% 0.051% 15.047
108 5,761,455 332,774 754 5.94% 0.013% 17.357
109 50,847,534 2,592,592 1,701 5.23% 3.34Template:E % 19.667
1010 455,052,511 20,758,029 3,104 4.66% 6.82Template:E % 21.975
1011 4,118,054,813 169,923,159 11,588 4.21% 2.81Template:E % 24.283
1012 37,607,912,018 1,416,705,193 38,263 3.83% 1.02Template:E % 26.590
1013 346,065,536,839 11,992,858,452 108,971 3.52% 3.14Template:E % 28.896
1014 Template:Zwsp 102,838,308,636 314,890 3.26% 9.82Template:E % 31.202
1015 Template:Zwsp 891,604,962,452 1,052,619 3.03% 3.52Template:E % 33.507
1016 Template:Zwsp Template:Zwsp 3,214,632 2.83% 1.15Template:E % 35.812
1017 Template:Zwsp Template:Zwsp 7,956,589 2.66% 3.03Template:E % 38.116
1018 Template:Zwsp Template:Zwsp 21,949,555 2.51% 8.87Template:E % 40.420
1019 Template:Zwsp Template:Zwsp 99,877,775 2.36% 4.26Template:E % 42.725
1020 Template:Zwsp Template:Zwsp 222,744,644 2.24% 1.01Template:E % 45.028
1021 Template:Zwsp Template:Zwsp 597,394,254 2.13% 2.82Template:E % 47.332
1022 Template:Zwsp Template:Zwsp 1,932,355,208 2.03% 9.59Template:E % 49.636
1023 Template:Zwsp Template:Zwsp 7,250,186,216 1.94% 3.76Template:E % 51.939
1024 Template:Zwsp Template:Zwsp 17,146,907,278 1.86% 9.31Template:E % 54.243
1025 Template:Zwsp Template:Zwsp 55,160,980,939 1.78% 3.21Template:E % 56.546
1026 Template:Zwsp Template:Zwsp 155,891,678,121 1.71% 9.17Template:E % 58.850
1027 Template:Zwsp Template:Zwsp 508,666,658,006 1.64% 3.11Template:E % 61.153
1028 Template:Zwsp Template:Zwsp Template:Zwsp 1.58% 9.05Template:E % 63.456
1029 Template:Zwsp Template:Zwsp Template:Zwsp 1.53% 2.99Template:E % 65.759

The value for Template:Math was originally computed assuming the Riemann hypothesis;[45] it has since been verified unconditionally.[46]

Analogue for irreducible polynomials over a finite field

There is an analogue of the prime number theorem that describes the "distribution" of irreducible polynomials over a finite field; the form it takes is strikingly similar to the case of the classical prime number theorem.

To state it precisely, let Template:Math be the finite field with Template:Mvar elements, for some fixed Template:Mvar, and let Template:Mvar be the number of monic irreducible polynomials over Template:Mvar whose degree is equal to Template:Mvar. That is, we are looking at polynomials with coefficients chosen from Template:Mvar, which cannot be written as products of polynomials of smaller degree. In this setting, these polynomials play the role of the prime numbers, since all other monic polynomials are built up of products of them. One can then prove that

Nnqnn.

If we make the substitution Template:Math, then the right hand side is just

xlogqx,

which makes the analogy clearer. Since there are precisely Template:Math monic polynomials of degree Template:Mvar (including the reducible ones), this can be rephrased as follows: if a monic polynomial of degree Template:Mvar is selected randomly, then the probability of it being irreducible is about Template:Math.

One can even prove an analogue of the Riemann hypothesis, namely that

Nn=qnn+O(qn2n).

The proofs of these statements are far simpler than in the classical case. It involves a short, combinatorial argument,[47] summarised as follows: every element of the degree Template:Mvar extension of Template:Mvar is a root of some irreducible polynomial whose degree Template:Mvar divides Template:Mvar; by counting these roots in two different ways one establishes that

qn=dndNd,

where the sum is over all divisors Template:Mvar of Template:Mvar. Möbius inversion then yields

Nn=1ndnμ(nd)qd,

where Template:Math is the Möbius function. (This formula was known to Gauss.) The main term occurs for Template:Math, and it is not difficult to bound the remaining terms. The "Riemann hypothesis" statement depends on the fact that the largest proper divisor of Template:Mvar can be no larger than Template:Math.

See also

Citations

Template:Reflist

References

  1. 1.0 1.1 Template:Citation
  2. 2.0 2.1 Template:Citation
  3. Template:Cite book
  4. Template:Cite web
  5. Template:Cite book
  6. Template:Citation.
  7. Template:Cite journal
  8. Template:Cite journal
  9. 9.0 9.1 9.2 9.3 Template:Cite book
  10. Template:Cite book
  11. 11.0 11.1 Template:Citation
  12. 12.0 12.1 Template:Citation
  13. Template:Cite journal
  14. 14.0 14.1 Template:Cite journal
  15. Template:Cite web
  16. Template:Cite book
  17. Template:Citation
  18. Template:Cite journal
  19. Template:Cite journal
  20. Template:Cite journal
  21. Template:Cite journal
  22. Template:Cite journal
  23. 23.0 23.1 Template:Citation
  24. Template:Cite journal
  25. Template:Cite book
  26. Template:Cite journal
  27. Template:Cite journal
  28. Bergelson, V., & Richter, F. K. (2022). Dynamical generalizations of the prime number theorem and disjointness of additive and multiplicative semigroup actions. Duke Mathematical Journal, 171(15), 3133-3200.
  29. 29.0 29.1 Template:Cite journal
  30. Template:Cite journal
  31. Template:Cite web
  32. Template:Cite journal
  33. 33.0 33.1 33.2 Template:Cite journal
  34. Template:Cite book This book uses the notation Template:Math where this article uses Template:Math for the number of primes congruent to Template:Mvar modulo Template:Mvar.
  35. Template:Cite journal
  36. Template:Cite thesis
  37. 37.0 37.1 Template:Cite journal
  38. Template:Cite arXiv
  39. Template:Cite web
  40. Template:Cite journal
  41. Template:Cite journal
  42. 42.0 42.1 Template:Cite journal
  43. Template:Cite journal
  44. 44.0 44.1 Template:Cite journal
  45. Template:Cite web
  46. Template:Cite journal
  47. Template:Cite journal