Primes from zeros

About 20 minutes

The prime staircase

Count the primes with a weight: every prime power pk≤xp^k \leq x contributes ln⁡p\ln p,

ψ(x)=∑pk≤xln⁡p=∑n≤xΛ(n). \psi(x) = \sum_{p^k \leq x} \ln p = \sum_{n \leq x} \Lambda(n) .

This Chebyshev function is a staircase that jumps by ln⁡p\ln p at every prime power pkp^k (black in Fig. 1). The weight ln⁡p\ln p makes the steps grow on average like xx: the prime number theorem, π(x)∼x/ln⁡x\pi(x) \sim x/\ln x for the number π(x)\pi(x) of primes up to xx, is equivalent to ψ(x)∼x\psi(x) \sim x. The coefficients Λ(n)\Lambda(n) are those of −ζ′/ζ-\zeta'/\zeta in episode 1.

The explicit formula

Perron’s formula picks the terms with n<xn < x out of the Dirichlet series: for c>1c > 1 and xx not a prime power,

ψ(x)=12πi∫c−i∞c+i∞(−ζ′(s)ζ(s))xss ds, \psi(x) = \frac{1}{2\pi i} \int_{c-i\infty}^{c+i\infty} \left(-\frac{\zeta'(s)}{\zeta(s)}\right) \frac{x^s}{s}\, ds ,

because 12πi∫ys ds/s\frac{1}{2\pi i}\int y^s\, ds/s along this line is 1 for y>1y > 1 and 0 for y<1y < 1. Shifting the contour to the left and collecting residues (Sec. 3.5.1 of the course) turns every singularity of −ζ′(s) xs/(ζ(s) s)-\zeta'(s)\,x^s/(\zeta(s)\, s) into one term: the pole of ζ\zeta at s=1s = 1 gives xx, every zero ρ\rho gives −xρ/ρ-x^\rho/\rho, the point s=0s = 0 gives −ζ′(0)/ζ(0)=−ln⁡2π-\zeta'(0)/\zeta(0) = -\ln 2\pi, and the trivial zeros s=−2ns = -2n give ∑nx−2n/(2n)=−12ln⁡(1−x−2)\sum_n x^{-2n}/(2n) = -\frac12\ln(1 - x^{-2}). The result is the explicit formula (von Mangoldt 1895, after Riemann’s formula for the prime counting function of 1859):

Explicit formula

For x>1x > 1,

ψ0(x)=x−∑ρxρρ−ln⁡2π−12ln⁡ ⁣(1−x−2), \psi_0(x) = x - \sum_{\rho} \frac{x^\rho}{\rho} - \ln 2\pi - \frac12 \ln\!\left(1 - x^{-2}\right) ,

where the sum runs over the non-trivial zeros, taken in pairs ρ\rho, ρˉ\bar\rho in order of increasing ∣γ∣\abs{\gamma}. Here ψ0(x)=ψ(x)\psi_0(x) = \psi(x) if xx is not a prime power, and at a prime power ψ0(x)\psi_0(x) is the midpoint of the jump.

The sum converges only conditionally, and the order of summation matters. The smooth part x−ln⁡2π−12ln⁡(1−x−2)x - \ln 2\pi - \frac12\ln(1 - x^{-2}) is the dashed line in Fig. 1. All steps come from the zeros.

Each pair of zeros is a wave

With ρ=β+iγ\rho = \beta + i\gamma, xρ=xβeiγln⁡xx^\rho = x^\beta e^{i\gamma\ln x} and 1/ρ=e−iarg⁡ρ/∣ρ∣1/\rho = e^{-i\arg\rho}/\abs{\rho}. A pair of conjugate zeros contributes

xρρ+xρˉρˉ=2 xβ∣ρ∣cos⁡ ⁣(γln⁡x−arg⁡ρ). \frac{x^\rho}{\rho} + \frac{x^{\bar\rho}}{\bar\rho} = \frac{2\,x^\beta}{\abs{\rho}} \cos\!\left(\gamma \ln x - \arg\rho\right) .

Each pair adds a wave that is periodic in ln⁡x\ln x with angular frequency γ\gamma. Its amplitude grows like xβx^\beta, so the real part of the zero sets how large the wave becomes, and the imaginary part sets how fast it oscillates. Near xx the period in xx is about 2πx/γ2\pi x/\gamma. With the first NN pairs, details of the staircase finer than about 2πx/γN2\pi x/\gamma_N are smeared out, and the steps sharpen as NN grows.

The prime staircase psi of x from 2 to 32 with the explicit formula using no zeros, 10 pairs and 100 pairs of zeros
Figure 1: The prime staircase ψ(x)\psi(x) (black) and the explicit formula with no zeros (dashed), with the first 10 pairs (orange) and with the first 100 pairs of non-trivial zeros (blue). The ticks mark the primes.

Try it: the slider sets the number NN of pairs of zeros in the sum. With N=0N = 0 only the smooth part remains. A few pairs already place the large steps, and around N=100N = 100 the curve follows every step up to x≈50x \approx 50.

The explicit formula with the first NN pairs of zeros ρ=12±iγn\rho = \tfrac12 \pm i\gamma_n drawn over the prime staircase ψ(x)\psi(x). Dashed: the smooth part without zeros. The ticks on the axis mark the primes. The zeros are the first 100 values γn\gamma_n, to ten digits.

The zeros set the error of the prime number theorem

The size of ψ(x)−x\psi(x) - x is controlled by the largest wave amplitude, so by Θ=sup⁡ρβ\Theta = \sup_\rho \beta. Since ρ\rho and 1−ρˉ1 - \bar\rho are both zeros, Θ≥1/2\Theta \geq 1/2. The error ψ(x)−x\psi(x) - x grows like xΘx^\Theta, up to logarithmic factors. The prime number theorem itself needs only that no zero lies on Re⁡s=1\operatorname{Re} s = 1, which makes ψ(x)−x\psi(x) - x small compared with xx.

The Riemann hypothesis, β=1/2\beta = 1/2 for every ρ\rho, is the smallest possible value Θ=1/2\Theta = 1/2. Every wave then grows only like x\sqrt x. Von Koch (1901) showed that it is equivalent to the bound

∣π(x)−Li⁡(x)∣=O ⁣(x ln⁡x),Li⁡(x)=∫2xdtln⁡t, \abs{\pi(x) - \operatorname{Li}(x)} = \mathcal O\!\left(\sqrt{x}\,\ln x\right) , \qquad \operatorname{Li}(x) = \int_2^x \frac{dt}{\ln t} ,

and equally to ψ(x)−x=O(x ln⁡2x)\psi(x) - x = \mathcal O(\sqrt{x}\,\ln^2 x). In this sense, all zeros on the critical line means that the primes are distributed as regularly as the symmetry of the zeros allows.

References