Skip to the first stop
The Riemann Hypothesis Contents

The Riemann Hypothesis, step by step

The prime numbers look irregular. In 1859 Bernhard Riemann found that their pattern is governed by the points where one function equals zero, and he guessed that the ones that matter all lie on a single straight line. This page builds that idea from school mathematics, one checkable step at a time.

Figure 0.1 The path of ζ(½ + it)
0.00
Input
Output ζ(½ + it)
Distance from 0
Zeros passed

The input ½ + it climbs a vertical line; the curve is the output of the zeta function. Each time the curve passes through 0, the input is a zero of zeta. The Riemann Hypothesis says that every non-trivial zero lies on the line this input is climbing. Stop 9 explains the picture.

Describe this figure in words

Every step of an argument carries a label.

Background boxes teach the school mathematics a step needs: logarithms, infinite sums, complex numbers. Open them one at a time, or all at once with the button at the top.

Four notations to keep apart: π(x) counts primes and has nothing to do with the circle number π = 3.14159…; ln is the natural logarithm; s = σ + it is an input to the zeta function, with horizontal coordinate σ and vertical coordinate t; t₁, t₂, t₃, … are the heights of its zeros.

Stop 1

The staircase of primes

Goal. Read the prime-counting function π(x) as "how many primes are there up to x?": an exact function whose graph is a staircase with irregular steps.

A prime number is a whole number greater than 1 whose only whole-number divisors are 1 and itself. Walk along the number line from 0 and keep a running tally of how many primes you have passed: that running count is the object at the heart of this story.

  1. Definition

    The prime-counting function, written π(x), is the number of primes less than or equal to x. Despite the Greek letter, π(x) is a counting function and has nothing to do with the circle number π=3.14159….

    π(x)= the number of primes ≤x

    In words: at any position x on the number line, count how many prime numbers lie at or to the left of x.

    Up to 10 the primes are 2, 3, 5 and 7, so π(10)=4. The number 1 is not a prime (Stop 4 explains why). The input x does not have to be a whole number: π(10.5)=4 as well.

  2. Computed

    Plot π(x) against x and you get a staircase: completely flat between primes, stepping up by 1 at each prime. At a prime the count already includes that prime, so π(7)=4, π(8)=4 and π(11)=5.

  3. Computed

    The steps are irregular and look random when seen close up. After 23, the next primes are 29 and 31: a flat gap of 6 followed immediately by a gap of 2.

Figure 1.1 Walk along the number line and count the primes
10.0
π(x)
4
Largest prime up to x
7
Next prime
11 (gap 4)

What to notice. The count changes only when x reaches a prime, and the flat stretches follow no regular pattern; try 23, 24 and 25.

Describe this figure in words

At x = 10.0 there are 4 primes up to x. The next prime is 11.

  1. Proved

    The staircase never ends (Euclid, about 300 BC). Take any finite list of primes, multiply them all together and add 1 to get a number N. Dividing N by any prime on your list leaves remainder 1, so none of them divides N. Yet every whole number above 1 is divisible by some prime, because its smallest divisor above 1 cannot be factored further and must be prime. Therefore at least one prime is missing from your list.

    2·3·5·7·11·13+1 =30,031 =59×509

    In words: multiplying the first six primes and adding 1 gives 30,031, which splits into 59 times 509—two primes outside the starting list.

    Sometimes "product plus one" is itself prime, as in 2·3·5+1=31. As 30,031 shows, it need not be prime itself; what matters is that its prime factors are guaranteed to be new.

Check yourself What are π(30), π(30.9) and π(31)?

10, 10 and 11. Up to 30 there are 10 primes (the tenth is 29, as you can check on Figure 1.1). Nothing changes at 30.9 because no prime lies between 30 and 30.9. At 31, which is prime, the count already includes 31 and steps up to 11.

Next: Gauss steps back

Stop 2

Gauss steps back

Goal. Seen from far away, the staircase follows a law: near x about one number in the natural logarithm lnx is prime, so π(x) is close to the logarithmic integral li(x).

Up close, individual prime gaps look irregular. Step back to survey thousands of numbers at once, and a steady pattern emerges: primes thin out as you climb, and they thin out at a measurable rate.

  1. Computed

    Count how many primes land in the last fifth of the numbers up to x (Figure 2.1). From 801 to 1,000 there are 29 primes among 200 numbers, about one in 6.9. Up to 10,000 there are 222 primes among 2,000 numbers, about one in 9.0. Up to 100,000: 1,755 among 20,000, about one in 11.4. Up to 1,000,000: 14,547 among 200,000, about one in 13.7.

Figure 2.1 Prime density in the last fifth of the numbers up to x
x numbers from 0.8x to x primes among them about one in ln x
103 (1,000) 200 29 6.90 6.91
104 (10,000) 2,000 222 9.01 9.21
105 (100,000) 20,000 1,755 11.40 11.51
106 (1,000,000) 200,000 14,547 13.75 13.82

What to notice. Multiplying x by 10 adds roughly 2.3 to the average spacing between primes—matching ln x in the rightmost column.

Describe this figure in words

In the top fifth of numbers up to 1,000, 10,000, 100,000 and 1,000,000, primes occur about once every 6.90, 9.01, 11.40 and 13.75 numbers, closely tracking ln x at 6.91, 9.21, 11.51 and 13.82.

Background What is a logarithm? 4 min

The base-10 logarithm log10x answers the question "10 to what power gives x?". Since 102=100 and 106=1,000,000, we have log10100=2 and log101,000,000=6: for a whole number, roughly the number of digits minus 1.

Its key rule is that multiplying numbers adds their logarithms, because 10m·10n=10m+n. Every time you multiply x by 10, log10x goes up by 1.

The natural logarithm, written lnx, uses the same idea with base e≈2.718 instead of 10 (Stop 5 shows why e is special). For now, all you need is the fixed conversion factor:

lnx= 2.3026×log10x

In words: the natural logarithm of x is 2.3026 times its base-10 logarithm.

So ln10=2.3026 and ln1,000,000=13.8155. Logarithms grow very slowly.

  1. Computed

    Each time x is multiplied by 10 in Figure 2.1, "one in k" goes up by nearly the same amount: 2.1, then 2.4, then 2.4. A quantity that rises by a fixed amount whenever x is multiplied by a fixed factor is a logarithm. Compare the natural logarithm lnx across those four rows: 6.9, 9.2, 11.5 and 13.8. So k≈lnx.

  2. Quoted

    At 15 or 16 (1792 or 1793) Gauss noticed that near x about one number in ln x is prime; he recalled it in an 1849 letter to the astronomer Encke.

  3. Idea

    A first, crude estimate for π(x) is to pretend that the density 1/lnx held steady all the way from 0 to x:

    π(x)≈ x·1lnx =xlnx

    In words: estimate the prime count up to x by dividing x by the natural logarithm of x.

    This runs too low, because smaller numbers along the way have smaller logarithms and are richer in primes than numbers near x.

Background Area as a sum of thin strips 3 min

Suppose you want to add 1/ln2+1/ln3+⋯+1/ln29. Draw a bar of width 1 and height 1/lnu at each whole number u. Because width times height equals height when the width is 1, the sum of the heights equals the total area of the bars. Smooth out the tops of the bars into the curve y=1/lnu, and that sum is closely matched by the area under the curve.

Width-one bars from 2 to 30. The top left of each bar meets the falling curve y = 1 / ln u. 0 1 2 10 20 30 y = 1 / ln u
Figure 2.2 Strips of width 1 under the curve y = 1 / ln u from u = 2 to u = 30.

The integral sign ∫ is a stretched letter S for "sum": writing ∫2xdu/lnu stands for the area under 1/lnu between 2 and x. No calculus is used anywhere on this page.

  1. Idea

    A much better estimate adds the local prime density number by number, 1/ln2+1/ln3+⋯+1/lnx, which is close to the area under the curve y=1/lnu from 2 to x. The standard function for this is the logarithmic integral:

    li(x)= li(2)+ ∫2x dulnu

    In words: the logarithmic integral li(x) equals a fixed starting constant li(2) plus the area under 1 / ln u between 2 and x.

    Here li(2)≈1.045 is a small head start built into the standard definition. (Some books write Li(x)=li(x)−1.045 without that head start; this page uses li(x), the function in Riemann's formula, and at large x the 1.045 offset hardly matters.)

  2. Computed

    At tiny ranges li(x) is not yet ahead—at x=100, where π(100)=25, x/lnx is 21.7 while li(100) is 30.1—yet by a thousand and beyond li(x) wins decisively. Scoreboard at x=1,000,000: π(x)=78,498; x/lnx=72,382, which is 6,116 short (7.8%); li(x)=78,628, which is 130 over (0.17%).

Figure 2.3 Zoom out from X = 32 to X = 1,000,000
100
Quantity at X = 100 Value Difference from π(X)
π(X), exact count 25 —
X / ln X 21.7 —
li(X) 30.1 —
Riemann's refinement R(X), explained at stop 11 — —

What to notice. Zooming out melts the jagged steps into a curve that li(x) hugs while x / ln x lags behind, yet the raw differences in the table keep growing.

Describe this figure in words

  1. Quoted

    The prime number theorem (Hadamard and de la Vallée Poussin, independently, 1896) proves that this relative match becomes exact in the limit:

    π(x)li(x) →1

    In words: as x grows larger without bound, the ratio of π(x) to li(x) tends to 1.

    The ratio π(x)÷(x/lnx) tends to 1 as well, though much more slowly.

  2. Computed

    "Ratio tends to 1" is not "difference tends to 0". At x=103, 104, 105, 106, the gap li(x)−π(x) is about 10, 17, 38 and 130 (Stop 13 shows that li(x) does not stay above π(x) forever either). The staircase looks smooth from far away, yet zoom back in and every step is still there. That leftover wiggle is the subject of the rest of the page.

Check yourself Roughly what fraction of the numbers near one trillion (1012) are prime?

Since ln1012=12×2.3026≈27.6, about one number in 28 near one trillion is prime.

Next: Adding forever

Stop 3

Adding forever

Goal. An infinite sum means the limit of its running totals; 1+1/2s+1/3s+⋯ has one when and only when s>1, and that limit is called the zeta function ζ(s).

Riemann's route to the primes starts with a sum that runs through every whole number without stopping. Nobody can literally carry out infinitely many additions, so we first need an exact rule for when an unending sum adds up to a number—and when it does not.

  1. Proved

    Start with halves of halves: 12+14+18+⋯. After N terms the running total is 1−1/2N, because each new piece fills half of what is still missing from 1 (Figure 3.1). As N grows, the leftover gap 1/2N shrinks toward 0, so the running totals close in on 1.

A unit square cut into a half, a quarter, an eighth, a sixteenth and smaller halves ½ ¼ ⅛ ¹⁄₁₆ …
Figure 3.1 A unit square of area 1 halved repeatedly: each piece fills half of what was still left.
  1. Definition

    The sum of infinitely many terms is the single number that their running totals (partial sums) close in on—their limit—if there is one. If no such number exists, the series has no sum, and we never write an equals sign after it.

  2. Proved Computed

    Shrinking terms do not guarantee a sum. Even though 1/n shrinks to 0, the harmonic series 1+12+13+14+⋯ has no sum (Oresme, about 1350). Group its terms in doubling blocks:

    1+12+ (13+14)+ (15+16+17+18)+⋯

    In words: after 1 + ½, collect the next two terms, then the next four, then the next eight, and so on.

    Every bracket is bigger than 12: two terms of at least 14, then four terms of at least 18, and so on without end. So the running totals pass every ceiling, though slowly: they first pass 5 at term 83 and 10 at term 12,367.

  3. Proved Quoted

    Square the denominators—1+14+19+116+⋯—and the series does have a sum, below 2. For n ≥ 2, compare each term with a difference.

    1/n2<1/(n(n−1))=1/(n−1)−1/n

    In words: the difference between two neighbouring reciprocals is larger than the square term.

    The capital Greek sigma (∑) means add. With n = 2 below it and N above, add one term for each whole number from 2 to N. With ∞ above, take the limit of the running totals. Watch how the differences cancel:

    1+ ∑n=2N 1n2 <1+ (1−1N) <2

    In words: adding 1 / n² up to any term N stays strictly below 2 − 1 / N, and therefore never passes 2.

    Because each term is positive, the totals keep rising yet never pass 2; by a basic property of the real numbers, rising totals trapped below a ceiling must close in on a limit.

Background Exponents that are not counting numbers 3 min

Follow the pattern as the exponent steps down by 1 each time: 23=8, 22=4, 21=2, 20=1, 2−1=12. Each step down divides by 2, so negative exponents mean reciprocals: n−1=1/n and n−s=1/ns.

For positive bases, raising a power to another power multiplies the exponents: (na)b = nab. Two numbers raised to the same power can be multiplied first: ma · na = (mn)a. All exponents obey the addition rule na·nb=na+b. With a=b=1/2, that gives n1/2·n1/2=n1=n, which forces n1/2=n. Exponents between whole numbers fill in smoothly by the same rule: 21.5=21·21/2=22≈2.828.

Background The geometric series 3 min

In a geometric series, each term multiplies the previous one by a fixed ratio r. Multiply the finite sum up to rm by (1−r), and every middle term cancels:

(1−r) (1+r+r2+⋯+rm) =1−rm+1

In words: multiplying 1 + r + ⋯ + rm by (1 − r) leaves 1 minus the next power rm+1.

If −1<r<1, then rm+1 shrinks to 0 as m grows, so dividing by (1−r) gives the infinite sum:

1+r+r2+⋯= 11−r

In words: when r lies strictly between −1 and 1, the powers of r from 1 onwards add up to 1 divided by (1 − r).

With r=12, that limit is 1/(1−12)=2. If r≥1 (or r≤−1), rm+1 never shrinks to 0 and there is no limit. (Stop 4 and Stop 7 both return to this identity.)

  1. Definition Proved

    Now replace the exponent 2 by any real number s>1, and call the limit the Riemann zeta function ζ(s):

    ζ(s)= ∑n=1∞ 1ns =1+12s +13s +14s+⋯

    In words: for s greater than 1, ζ(s) is the limit obtained by adding one over every whole number raised to the power s.

    Why the limit exists for every s>1: group the series into brackets starting at each power 2k. That bracket holds 2k terms, each at most 1/(2k)s, so its total is at most 2k/(2k)s. The power rules turn that bound into (21−s)k. Because s>1, those bounds form a geometric series with ratio 21−s<1, giving a finite ceiling. The totals rise under that ceiling, so the property quoted above gives them a limit. For s≤1 every term is at least as big as the harmonic term 1/n, so there is no limit—and this sum defines ζ(s) for s>1 only.

  2. Quoted Computed

    At s=2, Leonhard Euler found the exact limit (Euler, 1734):

    ζ(2)= π26 ≈1.644934

    In words: the sum of the reciprocals of all square numbers equals the circle number π squared divided by 6, about 1.644934.

    Here π really is the circle number 3.14159…, not the prime-counting function.

  3. Proved

    What if you try plugging s=−1 into the terms? Since 1/n−1=n, the series becomes 1+2+3+⋯. Pairing the first number with the last gives the exact partial sum after N terms:

    1+2+⋯+N= N(N+1)2

    In words: the first N counting numbers add up to N times (N + 1) divided by 2.

    That total grows without bound, so 1+2+3+⋯ has no sum. Claiming that 1+2+3+⋯ adds up to −1/12 is false as a statement about adding. Yet −1/12 is not a parlour trick either: Stop 7 gives the true statement about an extended function hiding behind it.

Figure 3.2 Watch the partial sums of 1 + 1/2s + 1/3s + ⋯ up to 1,000 terms
2.00
30
Partial sum SN
—
Limit ζ(s)
1.6449
Still missing, ζ(s) − SN
—

What to notice. Shrinking terms do not guarantee a sum: s = 1 is the knife edge, and while s = 1.1 does converge (to 10.58), after 1,000 terms it has reached little more than half of its limit. The guaranteed bound on what is missing comes from the area estimate quoted in stop 6.

Describe this figure in words

Check yourself (a) Does 1+1/2+1/3+⋯ have a sum?

No. This is the series with s=1/2≤1: every term 1/n is at least as large as the harmonic term 1/n, so the partial sums pass every ceiling.

Check yourself (b) What is the sum of 0.9+0.09+0.009+⋯?

It is 1. Factor out 0.9 to get 0.9×(1+0.1+0.12+⋯), a geometric series with first term 0.9 and ratio 0.1: 0.9/(1−0.1)=1.

Next: Euler finds the primes inside the sum

Stop 4

Euler finds the primes inside the sum

Goal. See why ζ(s) equals a product with one factor per prime, because every whole number is built from primes in exactly one way.

At stop 3, the zeta sum treated every whole number alike, primes and composites together. In 1737 Leonhard Euler showed that you can sieve the terms out of the sum one prime at a time. Throughout this stop, keep s>1, where the sum has a finite limit.

  1. Definition

    Start from the definition of the zeta function for s>1:

    ζ(s)=1 +12s +13s +14s +15s +16s +⋯

    In words: zeta of s adds 1 over every whole number raised to the power s.

  2. Proved

    Divide every term by 2s. Since 2s·ns=(2n)s, the base of each denominator changes from n to 2n:

    ζ(s)2s =12s +14s +16s +⋯

    In words: dividing zeta of s by 2 to the power s produces all the even terms of the sum.

  3. Proved

    Subtract that second line from the first. On the left, ζ(s)−ζ(s)/2s factors as (1−1/2s)ζ(s); on the right, every even term disappears, leaving odd n only:

    (1−12s) ζ(s)=1 +13s +15s +17s +19s +⋯

    In words: multiplying zeta of s by 1 minus 1 over 2 to the power s clears out every multiple of 2.

  4. Proved

    Do the same with 3, the next number still standing after 1. Divide the remaining sum by 3s and subtract again:

    (1−13s)(1−12s)ζ(s) =1+15s+17s+111s+113s+⋯

    In words: multiplying next by 1 minus 1 over 3 to the power s removes every remaining multiple of 3.

    No multiples of 2 or 3 are left; 1/25s is still there, waiting for 5.

Background Every number has one prime recipe 2 min

Break any whole number above 1 into factors until nothing breaks further, and you reach primes: 12=2·2·3 and 360=23·32·5. No other choice of primes multiplies to either number, apart from shuffling the order in which you write them.

Quoted This fact is called the fundamental theorem of arithmetic. The key step is Euclid's lemma (Elements, Book VII); Gauss gave what seems to be the first explicit proof that the factorisation is unique (1801). Every whole number greater than 1 is a product of primes in one way only.

That uniqueness is also the reason 1 is not called a prime. If 1 counted as prime, then 12=2·2·3=1·2·2·3=1·1·2·2·3 would wreck "one way" for every number at once.

  1. Proved Quoted

    Continue with 5,7,11,…. Every whole number n above 1 is removed once only, at the turn of its smallest prime factor (quoting one background fact: a convergent sum of positive terms may be regrouped freely). Stop after a prime p. Every survivor above 1 is bigger than p. Their sum is at most the tail of the original sum beyond p. That tail shrinks to zero by stop 3. So the leftover sum tends to 1. An infinite product over primes means the limit of the products up to p as p grows.

    (1−12s) (1−13s) (1−15s) ⋯ζ(s)=1

    In words: multiplying zeta of s by 1 minus 1 over p to the power s for every prime p leaves 1.

  2. Proved

    For s>1, each p−s=1/ps (stop 3’s exponents box) is smaller than 1, so no factor 1−p−s is zero. Divide across, writing the capital Greek pi ∏ to stand for multiplying a list of factors, one for every prime p:

    ζ(s)= ∏p 11−p−s

    In words: zeta of s equals the product, over all prime numbers p, of 1 divided by 1 minus p to the power minus s.

    A sum over all whole numbers equals a product over the primes alone (Euler, 1737).

  3. Proved Quoted

    Expanding in the other direction shows why unique factorisation drives the identity. By stop 3’s geometric series with ratio r=1/ps, each prime’s factor is a sum of powers of that prime:

    11−p−s =1 +1ps +1p2s +⋯

    In words: 1 divided by 1 minus p to the power minus s equals 1 plus 1 over p to the s plus 1 over p to the 2s, and so on.

    Multiply the brackets for 2 and 3: choosing 1/4s from the first and 1/3s from the second gives 1/12s, and 12 turns up once only, because 12=22·3 in one way only. By the quoted uniqueness of the prime recipe, every 1/ns appears once and only once.

  4. Computed

    At s=2 the product over primes up to 2,3,5,7,11,13 is 1.3333, 1.5000, 1.5625, 1.5951, 1.6083, 1.6179, against ζ(2)=1.6449: six primes already give 98.4% (Figure 4.1).

  5. Proved

    Bonus, a second proof that the primes never end: as s shrinks toward 1, ζ(s) passes any ceiling you choose. First take enough harmonic terms to pass that ceiling (stop 3). Those same finitely many terms with exponent s approach that total as s approaches 1, so they too pass the ceiling. The full sum is larger still. Yet a product over finitely many primes would stay below the fixed product at 1, since each factor is smaller for s > 1: ∏p1/(1−1/p).

Figure 4.1 Sieve the zeta sum one prime at a time
none
2.0
12
Sieve factors applied to ζ(s)
none yet
Euler product so far (1 divided by the sieve product)
1.0000
ζ(s)
1.6449
Share of ζ(s)
—
What is left of the sum
1.6449
Inspected n
12 = 2² · 3 — still there; it will go at the prime 2

What to notice. Each number above 1 disappears once only, at its smallest prime factor; the product creeps up to ζ(s) while the leftover sum sinks to 1.

Describe this figure in words

Check yourself (a) After using the primes 2, 3 and 5, which term survives right after the 1?

1/7s, because 2,3,4,5 and 6 have all been removed at 2, 3 or 5.

Check yourself (b) Multiplying out the whole Euler product, how many times does 1/360s appear?

Once, because 360=23·32·5 is built from primes in one way only.

Next: Numbers with direction

Stop 5

Numbers with direction

Goal. Read a complex number as an arrow whose multiplication multiplies lengths and adds angles, turning 1/ns for s=σ+it into an arrow of length 1/nσ at angle −tlnn.

In 1859 Bernhard Riemann let the exponent in zeta have two coordinates, writing s=σ+it, with horizontal coordinate σ (the Greek letter sigma) and vertical coordinate t. To give 1/ns a meaning, you need numbers with two coordinates, the growth number e, and a rule for an imaginary exponent. ("Imaginary" is an old name for the vertical axis; there is nothing unreal about it.)

  1. Definition

    A complex number a+bi is the point (a,b) in a plane—a across and b up—or the arrow drawn from 0 to that point. The symbol i is the point (0, 1). The real part is a and the imaginary part is b. Measure the angle anticlockwise from the arrow pointing right. Adding two complex numbers adds their coordinates separately, placing the arrows tip to tail.

  2. Definition Proved

    Multiplying uses ordinary algebra together with one new rule, i2=−1, which turns bdi2 into −bd:

    (a+bi) (c+di) = (ac−bd) + (ad+bc)i

    In words: multiply each part of the first arrow by each part of the second, and replace i squared with minus 1.

    For example, (2+i)(1+i)=2+2i+i+i2=1+3i.

  3. Proved

    Lengths multiply. By Pythagoras’s theorem, the arrow a+bi has length a2+b2. Expanding both sides (the cross terms −2abcd and +2abcd cancel) shows:

    (ac−bd)2+(ad+bc)2 =(a2+b2)(c2+d2)

    In words: the squared length of the product equals the product of the squared lengths.

  4. Computed Quoted

    Angles add (Figure 5.1; the algebraic proof uses the angle-addition formulas for sine and cosine, which we quote). Multiplying by i is a quarter turn anticlockwise, since i(a+bi)=−b+ai. Two quarter turns make a half turn, which reverses the arrow by ×(−1): that is all i2=−1 says.

Figure 5.1 Drag two arrows and watch their product multiply lengths and add angles
2.24
27°
1.40
45°
z (length, angle)
2 + i
w (length, angle)
1 + i
Product zw
1 + 3i
Length z × length w
—
Angle z + angle w
—

What to notice. Wherever you place z and w, the length of zw matches length z times length w, and its angle matches angle z plus angle w.

Describe this figure in words

Background Radians and the unit circle 3 min

Draw a circle of radius 1 centred at 0: the unit circle. Instead of splitting a full turn into 360°, mathematicians measure an angle by the arc length walked around that rim of radius 1. Because a circle of radius 1 has circumference 2π (here π is the circle number), one full turn anticlockwise is 2π radians (360°), and a half turn is π radians (180°). Negative angles turn clockwise.

Start at (1,0) and walk an angle θ (the Greek letter theta) around the unit circle. The horizontal and vertical coordinates of the point you reach are named cosθ and sinθ, matching the right-triangle definitions when θ is acute. Plotting the height sinθ as the point goes round traces a smooth wave.

Background The number e 3 min

Invest £1 at 100% annual interest paid in N equal instalments over the year, compounding each time. Your £1 grows to (1+1/N)N: that gives 2 for N=1, 2.25 for N=2, 2.594 for N=10, 2.705 for N=100, and 2.717 for N=1000, closing in on Euler’s growth constant e=2.71828….

For any rate x, ex is the limit of (1+x/N)N as N grows without bound. The natural logarithm ln introduced at stop 2 undoes this growth: ln(ex)=x, and elnn=n.

  1. Computed Quoted

    What should eiθ mean? Feed x=iθ into the same limit (1+x/N)N: start at 1 and multiply by the arrow 1+iθ/N a total of N times. Each multiplication turns by a tiny angle (about θ/N) and stretches by a hair (the factor 1+θ2/N2). As N grows, the total turn approaches θ and the total stretch approaches 1 (Figure 5.2), landing on the unit circle at angle θ radians (Euler’s formula):

    eiθ = cosθ+isinθ

    In words: e to the power i θ is the point on the unit circle at angle θ radians, with coordinates cos θ and sin θ.

    With θ=π, half a turn from 1 lands at eiπ=−1.

Figure 5.2 Compound tiny turns (1+iθ/N)N onto the unit circle
π rad (180°)
8
End point (1 + iθ/N)N
—
Target cos θ + i sin θ
—
Distance between them
—

What to notice. Taking more, smaller steps pulls the spiral onto the unit circle and stops at angle θ; at θ=π it closes in on −1.

Describe this figure in words

  1. Definition

    For a positive whole number n, rewrite n=elnn to define an imaginary power:

    nit = eit·lnn

    In words: n to the power i t is the unit arrow turned to the angle t times ln n radians.

    Do not read nit as "n multiplied by itself it times": it is a pure rotation of length 1.

  2. Definition Proved

    Use the exponent rule to define a complex power. Split s=σ+it into its two parts using n−(σ+it)=n−σ·n−it:

    1ns = n−σ · e−it·lnn

    In words: 1 over n to the power s is an arrow of length 1 over n to the σ, turned to the angle minus t times ln n radians.

    The horizontal coordinate σ sets the length; the vertical coordinate t sets the turn (clockwise when t>0).

  3. Computed

    Example, s=2+3i and n=2: the length is 1/22=1/4; the angle is −3ln2=−2.079 radians (−119.1°); written as coordinates, −0.1217−0.2184i (Figure 5.3).

Figure 5.3 Inspect one zeta term 1/ns as an arrow
2
2.00
3.0
Length 1/nσ
0.2500
Angle −t ln n
−2.079 rad (−119.1°)
Number a + bi
−0.1217 − 0.2184i

What to notice. Sliding σ changes only the length, sliding t changes only the angle, and n=1 stays fixed at the arrow 1 because ln1=0.

Describe this figure in words

Check yourself (a) What does multiplying by −1 do to an arrow?

A half turn (keeping the same length and pointing in the opposite direction).

Check yourself (b) For s=1+2i, describe the arrow 1/3s.

Length 1/3, turned to the angle −2ln3=−2.197 radians (about −125.9°).

Next: The spiral of sums

Stop 6

The spiral of sums

Goal. Follow a chain of arrows and tell when its tip settles.

Take the arrows from stop 5 and lay them tip to tail. Hold the input s still. After each new arrow, mark where you stand. Will the marks close in on a single point?

  1. Computed

    Set the input on the small pad to 2 + 3i. The chain starts at 0. Its first arrow has value 1 and takes you to the point 1. Each new arrow changes your position by a little less, and the chain curls in towards 0.7980 − 0.1137i. This is the output ζ(s), to four decimal places.

  2. Proved Quoted

    To see why the tip settles, imagine straightening out all the unused arrows. Their lengths are the terms of the real sum from stop 3. When σ > 1, stop 3 bounds the block starting at 2k by rk, where r = 21−σ < 1. Add that block and all the later ones. Their combined length is at most rk/(1 − r), which shrinks to zero. For the figure we quote a sharper bound. It is the area under the falling curve y = 1/uσ to the right of N.

    ∑n=N+1∞1nσ<N1−σσ−1

    In words: after N arrows, even walking the rest in a straight line could take you only this far.

    Draw a disc of that radius around the tip. Every later tip fits inside. The radius shrinks to zero as N grows, so the tips have one limit.

  3. Computed

    For σ ≤ 1 the sum 1 + 1/2s + 1/3s + … does not define a number. Try lowering σ while the height t stays at 3. Watch the last tip as you add more arrows.

  4. Computed Quoted

    For 0 < σ ≤ 1 and non-zero t, there is still a fixed centre. The figure calls it ζ(s). Stop 7 explains how zeta gets a value here. Once N exceeds |t|, a tail estimate puts the tip about N1−σ/|1 − s| from it. Below σ = 1 the turns grow wider. At 1 + 5i the distance stays near 0.2 as the count grows. Set t to zero instead and the arrows march away along the real axis.

Figure 6.1 Choose one input, then follow its partial sums
2
3
60
Input s
—
Arrows N
—
Tip SN
—
Target
—
Distance from tip to target
—
Does it settle?
—

What to notice. The spiral follows one input as you add arrows. In the figure at the top of the page the input moves and there is no arrow count.

Describe this figure in words

  1. Proved

    Now reverse every second arrow. Call the resulting sum eta, written η(s). Start where σ > 1, so the ordinary sum exists. To turn an even arrow backwards, subtract it twice. The even terms together make ζ(s)/2s, because each even base is twice a whole number. Subtracting those terms twice leaves ζ(s) × (1 − 2/2s). The exponent rule gives 2/2s = 21−s.

    η(s)=1−12s+13s−14s+⋯ =(1−21−s)ζ(s)

    In words: reversing the even arrows multiplies the full sum by a known factor.

  2. Computed Quoted

    Neighbours in the flipped chain nearly cancel. Its tip settles for every σ > 0, though after N arrows the distance left is still about 1/(2Nσ). Divide the limit by the known factor and you recover the centre of the plain spiral. Wherever the factor is zero, division gives no answer.

  3. Computed

    Try the preset near ½ + 14.1347i. At the zero whose height rounds to this number, the plain tips circle the origin and the flipped tips close in on it. You will meet this input again in stop 8.

Check yourself Does the plain chain settle at 1.01 + 100i? At 0.99 + 100i?

Yes for the first, since its real part exceeds 1. No for the second, however small its individual arrows become.

Next: A formula can outlive its sum

Stop 7

A formula can outlive its sum

Goal. Understand analytic continuation as the single forced extension of a function beyond its original sum, settling why ζ(−1)=−1/12 is a value of that extended function rather than a sum.

At stop 3, the infinite sum for zeta hit a boundary at 1, and at stop 6 the flipped chain reached across to σ>0. Stepping past a sum’s domain without inventing anything arbitrary is a standard move in algebra, and an ordinary geometric series already shows how it works.

  1. Proved

    Warm-up. Recall stop 3’s geometric series box, valid strictly for −1<x<1:

    1+x+x2+⋯ = 11−x

    In words: for x between minus 1 and 1, adding every power of x from 1 upward gives 1 divided by 1 minus x.

    Now test x=2. The left side is 1+2+4+8+⋯, which grows without bound and has no sum; the right side is 1/(1−2)=−1, an ordinary number. Nobody says 1+2+4+8+⋯ adds up to −1. The formula 1/(1−x) reaches farther than the sum it came from (Figure 7.1).

  2. Idea

    The same thing happens to zeta, and stop 6 already showed two reaches: the plain sum (σ>1) and the flipped chain η(s) (σ>0).

  3. Definition Proved

    For σ>0 and s≠1, define:

    ζ(s)= η(s)1−21−s

    In words: zeta of s is defined across σ greater than 0 as eta of s divided by 1 minus 2 to the power 1 minus s.

    Where the old sum works (σ>1), stop 6 proved this gives the exact same value, so it is an extension of zeta rather than a new function.

  1. Quoted

    There was no choice. Functions of this kind (near each point they can be written as a sum of powers of the change in the input, like the series in the first rung) are rigid: their values on any small patch fix them everywhere they can be extended. Such a forced extension is called analytic continuation, and once found it is the only one. Real curves are not like this; a curve drawn on part of a page can be continued any way you like.

  2. Computed

    Near s=1 the values blow up: ζ(1.1)=10.58, ζ(1.01)=100.58, and on the left side ζ(0.9)=−9.43. You can check all three values in Figure 6.1 with the height set to 0. That wall is the harmonic series showing through. It is called a pole, and s=1 is the single point in the complex plane where zeta has no value.

  3. Quoted

    Riemann’s mirror formula (1859) ties ζ(s) to ζ(1−s). When σ≤0, the reflected input 1−s sits where zeta is already known (at s = 0 it lands on the wall, so take the limit), carrying zeta across to σ≤0.

Background The mirror formula in full 3 min

Quoted In 1859 Riemann proved an exact identity linking ζ(s) to ζ(1−s) across the whole plane (except s=1):

ζ(s)=2s·πs−1·sin(πs2) ·Γ(1−s)·ζ(1−s)

In words: zeta of s equals 2 to the s, times π to the s minus 1, times sin(πs/2), times Gamma of 1 minus s, times zeta of 1 minus s.

At s = 0 the sine is zero and the reflected zeta has a pole. At positive whole numbers above 1 the gamma factor has a pole. At those inputs, take the limit of the whole expression from nearby points.

The factorial n! means the product of the whole numbers from 1 to n. For example, 3! = 1 × 2 × 3 = 6. By definition 0! = 1. The capital Greek gamma Γ is the smooth function that extends factorials: for positive whole numbers n, Γ(n)=(n−1)!, so Γ(2)=1. Substitute s=−1 along with Euler’s ζ(2)=π2/6 from stop 3:

2−1·π−2·sin(−π2)·Γ(2)·ζ(2) =12·1π2·(−1)·1·π26 =−112

In words: the factors of π squared cancel out, leaving one half times minus 1 times one sixth, which is minus one twelfth.

  1. Computed Quoted

    The limiting value at 0 gives ζ(0)=−1/2. Direct substitution at −1 gives ζ(−1)=−1/12. Both values are exact. Set the height to 0 in stage 3 of Figure 8.1 to check them. Two routes to −1/12 agree:

    (a) Evaluating the mirror formula directly at s=−1 (background box above).

    (b) At s=−1 the formal flipped series is 1−2+3−4+⋯. For −1<x<1, the power series identity

    1−2x+3x2−4x3+⋯ = 1(1+x)2

    In words: for x between minus 1 and 1, the alternating sum of n times x to the power n minus 1 equals 1 over the square of 1 plus x.

    reaches x=1 and gives 1/4 there (quoting a theorem that this boundary reach agrees with the continuation of η); then (1/4)÷(1−22)=−1/12.

Figure 7.1 Compare a finite partial sum against the formula that outlives it
0.50
8
Partial sum at x
—
Formula’s value at x
—
Verdict
they agree better as N grows

What to notice. Inside −1<x<1 adding terms pulls the curve onto the formula; outside, the partial sums fly off while the formula carries on smoothly—passing through 1/4 at x=1 in the second mode.

Describe this figure in words

Check yourself (a) What does 1/(1−x) give at x=3?

−1/2.

Check yourself (b) Is "1+3+9+27+⋯=−1/2" true?

No; the sum has no limit, whereas the extended formula has a value there.

Next: Where zeta is zero

Stop 8

Where zeta is zero

Goal. Find the two families of zeros and locate the critical strip.

At the last stop you found a way to follow zeta beyond the reach of its sum. Now ask which inputs send the output arrow back to its starting point.

  1. Definition

    A zero is an input s for which ζ(s) = 0. Both coordinates of the output vanish. The input itself can be a long way from the origin.

  2. Computed

    Reveal the map one formula at a time. The original sum covers the region to the right of σ = 1. The flipped chain takes you across to σ > 0, using nearby values wherever its division fails. The mirror formula completes the picture. Only the wall at s = 1 has no value.

Background How to read the map 2 min

Choose an input by moving across for its real part σ and up for its height t. The shade tells you the length of the output arrow. Pale means close to zero, dark means large. In the strip, look for pale spots. On the negative real axis the scale shows a pale streak. In stage 3 set the height to 0, then move the real part from −3 to −2. The first gives about 0.0083 and the second gives zero. Values grow near the wall at 1. The dark corners on the left also reach the end of the colour scale, but their values are finite. Colour alone cannot tell you the direction of an arrow.

Figure 8.1 Reveal the inputs where zeta can be evaluated

size of ζ(s): 0.03 · 1 · 30

Stage 2 reveals the strip and unlocks both sets of markers.

2
3
Probe input s
—
Output ζ(s)
—
Size of the output
—

What to notice. The blank region shrinks as each formula takes over. In the full map, the rings mark exact zeros on the pale streak to the left and in the pale spots up the middle of the strip.

Describe this figure in words

  1. Quoted Computed

    In the mirror formula from stop 7, the factor sin(πs/2) vanishes at every negative even whole number. The other factors stay finite there. So −2, −4, −6, … are zeros. These are called the trivial zeros. At 0 and the positive even numbers another factor blows up and cancels the effect. For instance, ζ(0) = −½.

  2. Proved

    Can there be a zero to the right of σ = 1? Multiply ζ(s) by one factor (1 − p−s) for each prime up to a cutoff P. As in stop 4, this strikes out every term divisible by any of those primes. You have 1 left, plus a tail whose denominators all come from numbers larger than P.

    The length of that tail is at most the sum of 1/nσ for n > P. This tends to zero. Choose P large enough and the tail is too short to cancel the 1. The product is non-zero, so ζ(s) itself must be non-zero.

  3. Quoted

    There are no zeros on the edge σ = 1 either. This was the fact behind the prime number theorem in 1896. Across the mirror, it follows that the trivial zeros are the only ones with σ ≤ 0.

That leaves a vertical band with both edges excluded, the critical strip, 0 < σ < 1. The zeros inside it are called non-trivial.

  1. Quoted Computed

    Reflect an input across the real axis. Its output also reflects, so a zero stays a zero. The mirror formula gives a second symmetry, sending s to 1 − s. If 0.3 + 18i were a zero, it would bring three companions, 0.3 − 18i and 0.7 ± 18i. Switch to stage 2 or 3 and turn on the hypothetical markers. On σ = ½ the two upper points coincide, as do the two lower points. Symmetry allows either arrangement.

  2. Computed

    The first five pairs the page finds have inputs ½ ± 14.1347i, ½ ± 21.0220i, ½ ± 25.0109i, ½ ± 30.4249i and ½ ± 32.9351i, with heights rounded. A small output at one of these decimals is a clue. Stop 9 explains how to establish an actual zero.

  3. Definition

    The critical line is σ = ½. The Riemann Hypothesis (1859) says that every non-trivial zero has real part exactly ½.

Check yourself If 0.3 + 20i were a zero, where would its three companions lie?

At 0.3 − 20i, 0.7 + 20i and 0.7 − 20i.

Riemann wrote that this was 'very probable', said he had put the search for a proof aside, and moved on. A proof stayed out of reach for more than 160 years. Stop 14 tells what happened in November 2026.

Next: Walking the critical line

Stop 9

Walking the critical line

Goal. Read the curve at the top of the page and see how a sign change can locate a zero exactly on the line.

A pencil line is wider than a mathematical point. If a curve looks as though it passes through the origin, how can you tell whether it missed by a hair?

  1. Definition

    Fix the real part of the input at ½. Increase its height t, and mark the output ζ(½ + it) at each height. Joining these marks gives the picture at the top of the page. In stop 6 the input stood still while you added arrows. Here the input moves, the original sum diverges and the continued function draws the curve.

  2. Computed

    Follow the moving dot. Each time it returns to the origin, you have found a height where the output vanishes. The first five heights, rounded, are 14.1347, 21.0220, 25.0109, 30.4249 and 32.9351.

  3. Computed

    Try σ = 0.6. The loops still close in on the origin, but each one in this window misses. Near height 14.13 the closest approach is about 0.076.

Figure 9.1 Walk the input up a vertical line

Z(t): the same walk, untwisted onto a number line

0.5
34
34
ζ(σ + it)
—
Size of the output
—
Closest approach to 0 for this σ
—
Sign changes of Z up to T
—
Zeros the counting formula predicts
—

What to notice. In Figure 6.1 the input stood still while you added arrows. Here it moves. Move σ and only the upper curve changes. Each crossing of the lower axis locates a zero on the critical line. At the starting height of 34 you count 5 crossings. The smooth estimate is 4.6. It need not land on the exact count. The figure uses ordinary arithmetic.

Describe this figure in words

A length of 0.0000001 would still leave a gap. A nearby zero could even have real part 0.5000001. The way past this difficulty is to turn a question about hitting a point into a question about changing sign.

Background What is θ(t)? 2 min

Quoted The gamma function Γ extends the factorial, as you saw in stop 7. Follow the angle of Γ(¼ + it/2) smoothly as t rises, and subtract (t/2) ln π. Call the resulting angle theta, written θ(t). The mirror formula guarantees that this turn removes the spin. At height 0 the angle is 0, so Z(0) = ζ(½) ≈ −1.4604.

  1. Quoted

    Hardy’s function, written Z(t), turns each output arrow by the known angle θ(t). The turned arrow lies on the real axis at every height. Its length stays the same.

    Z(t)=eiθ(t)·ζ(12+it)

    In words: rotate the output, keeping its length, so you can read it as one signed number.

  2. Proved Quoted

    Suppose Z is negative at height a and positive at height b. We quote one property of Z: its graph is continuous, meaning you can trace it without a jump. To get from below the axis to above it, that curve must touch zero in between. The same argument works with the signs reversed. Since rotating preserves length, the original arrow also has length zero there. Its input has real part exactly ½. A computer can establish the two signs by bounding its rounding errors.

  3. Quoted

    A separate counting formula covers every zero in the strip between heights 0 and T, including any off the line. Its smooth estimate for their number is

    N(T)≈T2π·ln(T2πe)+78

    In words: estimate how many zeros the whole strip holds up to the chosen height.

    At height 100 this gives 29.0. The exact count includes a wobble. Turing’s method (1953) pins it down.

  4. Computed

    Set the window top to 100. The page finds 29 sign changes, beside an estimate of 29.0. In a rigorous check, an exact strip count equal to the number of certified crossings leaves no room for any missing zeros.

Check yourself Z(14) ≈ −0.106 and Z(15) ≈ +0.720. What follows from those signs?

There is a zero exactly on the line between heights 14 and 15. Its height is the first one, t₁ ≈ 14.1347.

Check yourself Would an output of size 10⁻¹⁵ alone establish a zero?

No. A small positive length is consistent with a near miss. Opposite signs of Z, established with error bounds, guarantee an actual crossing.

Next: Steps from waves

Stop 10

Steps from waves

Goal. Smooth waves can add up to a jump, and finitely many of them never quite do.

The prime staircase climbs in sudden steps, whereas the curves you will meet in stop 11 are smooth waves. How can smooth waves build a sharp jump?

  1. Definition

    A pure wave is the vertical height of a point moving steadily round a circle of radius 1 (stop 5): sinx.

  2. Computed Quoted

    Add odd-numbered waves that oscillate faster and shrink in height: start with sin x, then add sin(3x)/3 and sin(5x)/5 as you reach them, up to frequency 2m − 1. Multiply that sum by 4/π and call the result Sm(x). As m grows, Sm(x) approaches a square wave that stays flat between sudden jumps:

    Sm(x)= 4π ∑ k=1 m sin((2k−1)x) 2k−1

    In words: add the first m odd sine waves, dividing each wave by its frequency, and multiply the total by four over the circle number π.

    By a theorem of Fourier analysis, with the factor 4/π in front, the infinite limit is +1 for 0<x<π and −1 for −π<x<0.

  3. Computed

    Each new wave is smaller and faster than the last; its job is to flatten the plateau and sharpen the edge.

  4. Computed

    With finitely many waves the central edge is steep yet never vertical, and beside the jump the curve overshoots by about 9% of the jump height. Because the flat levels sit at −1 and +1 (a jump of height 2), the peak tends to 1.179, an extra 0.179 above +1. Adding more waves makes this overshoot—the Gibbs effect—narrower, not smaller.

  5. Computed

    Exactly at the jump (x=0), every sine wave is 0, so the total sits at the midpoint.

Figure 10.1 Add odd sine waves toward a square step
1
Waves m
1
Highest point of the total
1.2732
Overshoot
13.66% of the jump
Value at the jump
0

What to notice. The central edge sharpens as you add waves, while the ripple beside the jump squeezes inward without shrinking below about 9% of the jump.

Describe this figure in words

Check yourself What value does the total take exactly at the jump?

0, halfway between −1 and 1.

Next: The zeros rebuild the staircase

Stop 11

The zeros rebuild the staircase

Goal. Recover the steps in a prime count by subtracting one wave for each pair of zeros.

The smooth curve li(x) in stop 2 got the trend right and missed every step. What is that leftover made of? Start with a staircase whose steps are easier to hear individually.

Background A staircase that weighs its steps 3 min

The weighted count, written ψ(x), steps up at 2, 3, 4, 5, 7, 8, 9, 11, … . The step at 4 = 2² has the same height as the one at 2, namely ln 2. So does the step at 8. The step at 9 has height ln 3.

At 10 the total is ln 2 + ln 3 + ln 2 + ln 5 + ln 7 + ln 2 + ln 3 = ln 2520 ≈ 7.832. Here 2520 is the smallest number divisible by every whole number from 1 to 10. Taking logarithms of Euler’s product is where the weights come from.

Quoted The prime number theorem says that ψ(x)/x tends to 1.

  1. Definition Computed

    Give every prime p a step of height ln p. Give every power of that prime the same step. The resulting count, ψ(x), follows a remarkably simple trend. Switch the figure to “weighted count” and its steps run close to the straight line of height x.

  2. Quoted

    Riemann gave a formula for the prime-power count J in 1859. Von Mangoldt proved it in 1895 and gave this version for the weighted count ψ. Write ρ for an input that is a non-trivial zero. For x > 1, the formula for the weighted count reads

    ψ(x)=x−∑ρxρρ−ln(2π)−12ln(1−1x2)

    In words: start with the straight line, subtract the zero terms, then make two smooth corrections.

    Read the zero terms in pairs, working upwards in height. At a jump the left side means the midpoint between the step below and the step above.

Background Where the formula comes from (idea only) 2 min

A polynomial with a given leading coefficient is fixed by its roots. You can read the roots of x² − 3x + 2 directly from the product (x − 1)(x − 2). Zeta has a product over the primes, the one you built in stop 4.

Quoted Hadamard (1893) supplied the other ingredient, a product using the zeros and the wall. Taking logarithms turns the products into sums. Comparing them puts the primes on one side and the zeros on the other.

  1. Proved

    Pick a pair on the line and call the upper zero ρ = ½ + it. The power rule from stop 5 works for any positive x because x = eln x. The arrow x½+it has length √x and angle t ln x. The arrow ρ goes ½ across and t up. Its length is |ρ| = √(¼ + t²). Its angle φ is arctan(2t), the angle whose slope is t divided by ½. For the first zero this is about 88°. Division undoes multiplication. So dividing by ρ divides the length by |ρ| and subtracts φ from the angle.

    For the partner, replace t by −t. Both angles change sign and both lengths stay the same. The quotient therefore reflects across the real axis. The two vertical parts cancel, while the horizontal parts add. Each horizontal part is the arrow’s length times the cosine of its angle. Together they give

    pair’s wave=2xcos(tlnx−φ)|ρ|

    In words: take twice the horizontal reach of the turned arrow. The wave oscillates in ln x. Its amplitude is the height it could reach at each x if the cosine were 1. That height is 2√x/|ρ|.

  2. Computed

    For the first pair the height is t₁ ≈ 14.1347. To make one full turn, t₁ ln x must increase by 2π. That happens whenever you multiply x by e2π/t₁ ≈ 1.56. At x = 30 the wave’s amplitude is about 0.77. Higher pairs turn faster and give smaller amplitudes at the same x.

  3. Computed

    In the weighted count, add the pairs in order. Watch the strip underneath the staircase to see just the wave that the newest pair subtracts. Where several waves reinforce one another the smooth curve begins to climb a step. You can see one at 25 as well as at 23.

Background From ψ back to the prime count 4 min

Quoted Riemann used another weighted staircase, J(x). It gives a prime weight 1, its square ½, its cube ⅓, and so on.

J(x)=π(x)+12π(x)+13π(x3)+⋯

In words: count the primes first, then add fractions for their powers.

J(x)=li(x)−∑ρli(xρ) −ln2+∫x∞duu(u2−1)lnu

In words: the smooth trend for J is li with two corrections. Each pair of zeros supplies a wave to subtract. Here li also takes complex inputs. Its extension, using the angle in ρ ln x, is part of the formula we quote.

Now unpick the extra steps. J(√x) steps when x reaches a prime square. Subtract half of it and the half-step at 25 disappears as √x passes 5. Undo the other powers in turn.

π(x)=J(x)−12J(x)−13J(x3) −15J(x15)+16J(x16)−⋯

In words: combine counts at successively smaller roots. Only finitely many corrections reach a step.

Applying those coefficients to li alone gives Riemann’s R(x) = li(x) − ½ li(√x) − ⅓ li(∛x) − … from stop 2. The figure also includes the smooth corrections in J. Each correction switches on where its smooth part crosses zero, at x1/n ≈ 1.61, before its first true step at 2. Any switch between 1 and 2 gives the same limit.

  1. Quoted

    The default view counts each prime once. The waves first rebuild J. The conversion to π removes the extra weight at prime powers. After you add pairs, look for the curve labelled “formula with N pairs of zeros”, where N is the number you chose. It includes both operations.

Figure 11.1 Rebuild a staircase one pair of zeros at a time

the newest wave on its own

0
24
Pairs of zeros
—
Newest pair
—
Formula at the cursor
—
Exact staircase at the cursor
—
Detail at the cursor
—

What to notice. The low pairs shape the steps and higher pairs sharpen their edges. Compare the same 60 pairs near 20 and near 100.

Describe this figure in words

  1. Idea Computed

    The finest detail you can see with pairs up to height T is roughly 2πx/T wide. For 60 pairs the top height is about 163.03, giving a width near x/26. That is narrow near 20 and much wider near 100. Sixty pairs can hug the steps only when x is small enough.

  2. Quoted

    Keep the order by height. Changing the order of this infinite sum can change the answer. At a jump the limiting value is the midpoint. With a finite number of pairs the reconstruction still has ripples, just as in stop 10.

Now return to the question from stop 1. At 23 the waves line up into a step. At 24 they cancel. At 25 = 5² the weighted count gains ln 5 ≈ 1.61, beside ln 23 ≈ 3.14 at 23. Riemann’s J gives 25 half a step and the conversion removes it. The prime count stays flat.

Check yourself Suppose the first wave has a crest at 10. Where would the next two crests in its cosine factor fall?

Multiply by about 1.56 each time. The next two are near 15.6 and 24.3.

Next: What the hypothesis says about primes

Stop 12

What the hypothesis says about primes

Goal. Connect the real part of a zero to the size of the error in counting primes.

Listen to one pair in the weighted staircase. Its height tells you how quickly the wave turns. What happens to its loudness if you give the zeros a different real part?

  1. Proved

    Write β for the real part of a zero, so the pair has inputs β ± it. Repeat the argument from stop 11. The arrow xβ+it has length xβ. Dividing by ρ divides that length by |ρ|. The two mirror arrows give twice the horizontal part. The cosine can reach 1, so the amplitude is

    2xβ|ρ|

    In words: for a fixed pair, the real part sets how fast its loudness grows with x. Its height sets the pitch in ln x.

  2. Proved

    The symmetry from stop 8 gives a companion at (1 − β) + it. If β is below ½, its companion is above ½. The larger real part is at least ½. Its amplitude grows at least as fast as √x, and faster if that part exceeds ½. To keep every pair as quiet as possible, every β must be ½. This is exactly the arrangement in the hypothesis.

  3. Quoted

    Von Koch (1901) linked the hypothesis to the size of the prime-counting error. Here is the bound with Schoenfeld’s constant (1976). If the hypothesis holds, then for every x ≥ 2657,

    |π(x)−li(x)|<x·lnx8π

    In words: the distance between the count and its trend stays below a square root times a logarithmic factor. The π in the denominator is the circle number.

    The implication also runs back the other way. If the count stays within this bound for every such x, every non-trivial zero must lie on the critical line.

  4. Computed

    At one million the bound allows an error of about 549.7 primes. The actual gap between the trend and the count is about 129.5. In the figure the gap stays positive over this range. Stop 13 explains what happens farther out.

Figure 12.1 Compare the counting error with its allowed range
Bound at 10⁶
—
Actual error at 10⁶
—

What to notice. At one million the gap uses less than a quarter of the allowed distance. Follow the curve to compare the gap at smaller inputs.

Describe this figure in words

  1. Computed

    hypothetical Try a deliberately contrary case. Give a zero real part 0.75 at height 3 × 10¹², the rounded height of the rigorous check in stop 13. That check rules out such a zero here. Its pair’s amplitude would grow faster than √x, but division by the enormous |ρ| would delay the moment you could tell. You would need to reach roughly 5 × 10⁴⁸ before that amplitude even overtook √x. No table of primes reaches so far. This is why mathematicians studied the zeros directly.

Figure 12.2 How long could an off-line pair stay quiet?

hypothetical

0.75

What to notice. Raising the height delays the crossing. The calculator compares one pair’s amplitude with √x. The rest of the staircase still contains the contributions of all the other pairs.

Describe this figure in words

The hypothesis bounds how far the count can stray from its trend. It gives no formula for the next prime and makes no prediction about any single prime.

Check yourself If x grows by a factor of 100, how much louder does a pair get for β = ½? For β = 0.75?

The amplitude scales by 100β. The first pair gets 10 times louder and the second about 31.6 times louder.

Next: Trillions of zeros checked

Stop 13

Trillions of zeros checked

Goal. Know exactly what computers checked, and why checking could never settle the question.

For more than a century, mathematicians checked non-trivial zeros of zeta up the critical strip, first by hand and then on faster and faster machines.

  1. Quoted

    Saying that a calculation checked the zeros means carrying out stop 9’s method—matching sign changes of Z(t) on the critical line against the total count of zeros in the strip—with guaranteed bounds on every rounding error.

  2. Quoted Computed

    Figure 13.1 traces four checks. In 1903, Gram checked 15 zeros. In 1953 Turing, on the Manchester computer, checked zeros up to height about 1,540 (1,104 zeros). In 2004, Gourdon (with Demichel) reported the first 10¹³ zeros in a computation report, not published in a journal. Platt and Trudgian’s rigorous result in 2021: every zero up to height 3,000,175,332,800 is on the line, the first 12,363,153,437,138 zeros. Compare the result with the smooth estimate from stop 9 in the table.

  3. Proved Quoted

    Hardy’s theorem, quoted below, says there are infinitely many zeros on the line. A finite check covers only finitely many of them. Infinitely many remain above its stopping point.

  4. Quoted

    Start at x = 2. The known range is π(x) < li(x) for every x below 10¹⁹ (Büthe). Yet Littlewood proved in 1914 that the inequality reverses infinitely often. We know a crossing exists below about 1.4 × 10³¹⁶ (Bays and Hudson, 2000; sharpened by Saouter and Demichel, 2010); the smallest crossing is not known.

  5. Quoted

    Why 1013 can be a small number here: some of the quantities that govern zeta grow as slowly as lnlnT (the natural logarithm applied twice), which at T=3×1012 has only reached about 3.4.

  6. Quoted

    What theory had reached directly: Hardy proved in 1914 that infinitely many zeros are on the line, and the proportion on the line is more than five-twelfths (Pratt, Robles, Zaharescu and Zeindler, 2020). Neither result covers all of them.

Figure 13.1 Records in checking zeros on the critical line
Year Who Height T Zeros on the line ln ln T Status of check
1903 J. Gram — 15 — By hand
1953 A. Turing about 1,540 1,104 — Manchester computer
2004 Gourdon (with Demichel) — 10¹³ — Computation report, not published in a journal
2021 D. Platt and T. Trudgian 3 × 10¹² about 1.24 × 10¹³ 3.4 Rigorous arithmetic. The count shown here is the smooth estimate at the rounded height.

What to notice. At height 3 × 10¹² (about 1.24 × 10¹³ zeros), the slow scale ln ln T has reached only 3.4, and infinitely many zeros still remain above any finite height.

Describe this figure in words

Four computational records on the critical line: 15 zeros by Gram in 1903, 1,104 by Turing in 1953, the first 10¹³ reported by Gourdon (with Demichel) in 2004 (computation report, not published in a journal), and all zeros up to height 3 × 10¹² (about 1.24 × 10¹³ zeros, where ln ln T is 3.4) certified by Platt and Trudgian in 2021.

Check yourself A pattern has held for the first ten trillion cases. Name one thing on this page that shows why that is not a proof.

Start at 2 and compare the prime count with li: π(x) < li(x) for every x below 10¹⁹ (Büthe). Yet Littlewood proved the inequality reverses infinitely often. We know a crossing exists below about 1.4 × 10³¹⁶ (Bays and Hudson, 2000; sharpened by Saouter and Demichel, 2010); the smallest crossing is not known.

So until November 2026 the position was: overwhelming evidence, deep partial results, and no proof.

Next: November 2026: a proof a computer has checked

Stop 14

November 2026: a proof a computer has checked

Goal. Separate three things: announced, machine-checked, and understood.

Status as of 23 November 2026

The Riemann Hypothesis now has a computer-verified proof. Understanding it is the next chapter.

Figure 14.1 Milestones as of 23 November 2026

    What to notice. Certification of the classical statement in Lean is complete, while a human-readable write-up, mathematical understanding and the generalised claim remain ahead.

    Describe this figure in words

    What happened

    On 20 November 2026 Levent Alpoge, a mathematician at Anthropic, announced that, working with Claude (Anthropic’s AI system), he had found a proof of the Riemann Hypothesis. The proof was released as about 17 million lines of Lean, a language in which a computer checks every logical step.

    On 21 November 2026 the Lean FRO (Focused Research Organization) and the Mathlib Initiative issued a joint statement that they “certify that both the statement and the proof of the Riemann Hypothesis are correct”. The statement proved is the one already in Mathlib, Lean’s mathematics library, under the name RiemannHypothesis: the classical hypothesis for the Riemann zeta function stated in stop 8. According to the joint statement, dozens of people compiled the proof; comparison tools confirmed that the theorem proved matches Mathlib’s statement; the proof was checked by Lean’s official kernel and by several independent checkers written by other people in other programming languages, two of which come with formal proofs of their own soundness; and the proof depends only on Mathlib.

    Scientific American reported that Andrew Sutherland at MIT compiled the proof independently, called it historic, and said the mathematical details still need to be understood.

    Background How can anyone check 17 million lines? 3 min

    A Lean proof reduces every step to a few basic logical rules, and a small program—the kernel—checks each step in turn. Nobody has to read 17 million lines by eye; instead, trust rests on three short things.

    First is the kernel: a small program, here cross-checked by independent checkers written by other authors in other programming languages, including two checkers with formal proofs of their own soundness. Second is the theorem statement: short enough to read directly, and here compared mechanically against Mathlib’s standard RiemannHypothesis definition. Third are the foundations. The joint statement says the proof depends only on Mathlib.

    On 12 November 2026, before the announcement, Kevin Buzzard had set out what such a check needs beyond seeing code compile: inspect the statement, compile inside a sandbox, compare the statement mechanically, and run more than one checker; he also noted that a passing Lean proof says nothing about any human-language write-up accompanying it. What a check cannot give is an explanation.

    What is still to come

    No human-readable proof has been published. The author says that the argument is very long, that he expects it to be simplified, and that he intends to understand it and write it up properly; a machine-written account ran past 250,000 pages and he chose not to post it. Experts such as James Maynard (Oxford) and Youness Lamzouri (Lorraine) say that understanding the proof could take months or years.

    The author also says the method gives the Generalised Riemann Hypothesis, whereas the certificate covers only the classical hypothesis, not the generalised claims. As for the approach itself, the author describes the method as a descendant of Stepanov’s method, which had earlier proved the analogue of the hypothesis for function fields.

    What changes

    With the classical hypothesis proved, the error bound of stop 12 holds for every x≥2657, and hundreds of published theorems that began by assuming the Riemann Hypothesis now rest on a machine-checked proof rather than on a hypothesis. Nothing changes for everyday cryptography: RSA does not rely on the hypothesis being false, and its truth gives no fast way to factor numbers, as Scientific American also reported. The Riemann Hypothesis is one of the seven Millennium Prize Problems named by the Clay Mathematics Institute in 2000.

    Sources for this stop: Levent Alpoge’s statement (alpo.ge/remark.pdf, 20 November 2026); the joint statement of the Lean FRO and the Mathlib Initiative (leanprover-community blog, 21 November 2026); Scientific American (Joseph Howlett, 20 and 21 November 2026); IBM Think (Sascha Brodsky, 20 November 2026); and Kevin Buzzard’s Xena blog (12 November 2026).

    Check yourself Does the certificate cover the Generalised Riemann Hypothesis?

    No. The joint certificate covers only the classical Riemann Hypothesis for the Riemann zeta function, not the generalised claims.

    Next: What we proved, computed and took on trust

    Stop 15

    What we proved, computed and took on trust

    Goal. One honest list of everything the page borrowed, plus the symbols and the sources.

    Steps badged Proved—such as Euclid’s argument in stop 1 that the primes never end—were proved in full on the page. Every theorem or reported fact badged Quoted is gathered below so nothing rests on hidden authority.

    Ledger of borrowed results

    Stop Borrowed fact or theorem Who and when
    Stop 2 Prime density observation: near x, the fraction of numbers that are prime is about 1/ln x At 15 or 16 (1792 or 1793) Gauss noticed that near x about one number in ln x is prime; he recalled it in an 1849 letter to the astronomer Encke.
    Stop 2 Prime number theorem: π(x)/li(x) and π(x) ÷ (x/ln x) tend to 1 Hadamard and de la Vallée Poussin, independently, 1896
    Stop 3 Running totals that keep rising without passing a fixed ceiling have a limit Completeness property of the real numbers
    Stop 3 Exact value ζ(2) = π²/6 Euler, 1734
    Stop 4 Unique factorisation into primes (fundamental theorem of arithmetic) The key step is Euclid's lemma (Elements, Book VII); Gauss gave what seems to be the first explicit proof that the factorisation is unique (1801).
    Stop 4 A convergent series of positive terms may be regrouped in any order Standard real analysis
    Stop 5 Multiplying complex numbers adds their angles (angle-addition formulas for sine and cosine) Trigonometry
    Stop 5 The limit of (1 + iθ/N)N equals cos θ + i sin θ (Euler’s formula) Euler
    Stop 6 For σ > 1 the unused lengths total less than N1−σ/(σ − 1) by integral comparison. For σ > 0 the flipped series η(s) converges, and for 0 < σ ≤ 1 (t ≠ 0) the plain chain circles ζ(s) at radius about N1−σ/|1 − s| Alternating-series and Euler–Maclaurin analysis
    Stop 7 Uniqueness of analytic continuation for complex-differentiable functions Complex analysis
    Stop 7 Mirror formula tying ζ(s) to ζ(1 − s), with Γ(n) = (n − 1)! Riemann, 1859
    Stop 7 Evaluating 1/(1 + x)² at x = 1 agrees with the analytic continuation η(−1) = ¼ Complex analysis
    Stop 8 No zeros of ζ(s) lie on the line σ = 1 Hadamard and de la Vallée Poussin, 1896
    Stop 8 Trivial zeros at −2, −4, −6, … and the two symmetries pairing non-trivial zeros across the real axis and across σ = ½ Riemann, 1859
    Stop 9 Hardy’s continuous function Z(t) = eiθ(t)ζ(½ + it) is real for real t, with |Z(t)| = |ζ(½ + it)| Hardy
    Stop 9 Formula counting all non-trivial zeros up to height T, and the method pinning down its exact wobble Riemann and von Mangoldt; Turing, 1953
    Stop 10 Scaled odd sine waves converge to the ±1 square step, and finite sums keep the ~9% Gibbs overshoot beside the jump Fourier analysis and the Gibbs effect
    Stop 11 Product over the zeros of zeta, explicit formulas for ψ(x) and J(x) (height-ordered convergence, midpoint at jumps, conversion from J(x) to π(x)), and ψ(x)/x → 1 Riemann, 1859; Hadamard, 1893; von Mangoldt, 1895
    Stop 12 Equivalence with |π(x) − li(x)| < √x · ln x / (8π) for every x ≥ 2657 von Koch, 1901; constants by Schoenfeld, 1976
    Stop 13 Zero-checking records on the critical line; starting at 2, π(x) < li(x) for every x below 10¹⁹ (Büthe); a crossing exists below about 1.4 × 10³¹⁶ (Bays and Hudson, 2000; sharpened by Saouter and Demichel, 2010); the smallest crossing is not known; slow ln ln T growth; infinitely many and more than five-twelfths of zeros on the line Gram, 1903; Littlewood, 1914; Hardy, 1914; Turing, 1953; Gourdon (with Demichel), 2004 (computation report, not published in a journal); Pratt, Robles, Zaharescu and Zeindler, 2020; Platt and Trudgian, 2021
    Stop 14 November 2026 announcement, 17-million-line Lean release, certification by the Lean FRO and the Mathlib Initiative, and specialist reactions Alpoge; Lean FRO and Mathlib Initiative; Scientific American; IBM Think; Buzzard, November 2026

    Symbols and terms

    Symbol or term Meaning on this page First stop
    π(x) Exact count of prime numbers less than or equal to x (not the circle number π) Stop 1
    π Circle constant, about 3.14159… Stop 1
    ln Natural logarithm (logarithm to base e) Stop 2
    li(x) Logarithmic integral, li(2) + ∫₂x du / ln u, the smooth trend for π(x) Stop 2
    partial sum Running total of the first N terms of a series Stop 3
    limit Number that running totals or steps close in on indefinitely Stop 3
    ζ(s) Riemann zeta function: ∑ 1/ns for σ > 1, and its unique analytic continuation for all s ≠ 1 Stop 3
    Euler product Product ∏ 1/(1 − p−s) over all primes p, equal to ζ(s) when σ > 1 Stop 4
    a + bi Complex number, plotted as the point or arrow (a, b), with i² = −1 Stop 5
    s = σ + it Complex input to zeta, with real coordinate σ and vertical height t Stop 5
    e Base of the natural logarithm, about 2.71828…, the limit of (1 + 1/N)N Stop 5
    radian Angle measured by arc length on a unit circle (one full turn is 2π radians) Stop 5
    η(s) Flipped-sign series 1 − 1/2s + 1/3s − ⋯, equal to (1 − 21−s)ζ(s) for σ > 0 Stop 6
    analytic continuation Forced, unique extension of a complex-differentiable function beyond its initial domain Stop 7
    pole (wall) Point where a function blows up and has no value; for ζ(s), the single wall at s = 1 Stop 7
    zero Input s whose output ζ(s) has both coordinates equal to 0 Stop 8
    trivial zero Zero of ζ(s) at a negative even whole number: −2, −4, −6, … Stop 8
    critical strip Vertical strip 0 < σ < 1 (both boundary lines excluded) holding every non-trivial zero Stop 8
    critical line Vertical centre line σ = ½ of the critical strip Stop 8
    Z(t) Hardy’s untwisted real function along σ = ½, whose sign changes certify zeros on the line Stop 9
    ψ(x) Weighted prime-power staircase stepping up by ln p at every prime power pk ≤ x Stop 11
    J(x) Riemann’s prime-power staircase π(x) + ½π(√x) + ⅓π(∛x) + ⋯ Stop 11
    R(x) Riemann’s smooth prime-count curve li(x) − ½li(√x) − ⅓li(∛x) − ⋯ (defined at stop 11) Stop 2
    t₁, t₂, … Positive heights of the non-trivial zeros on the critical line, starting at t₁ = 14.1347… Stop 9
    Lean Programming language and proof assistant in which a small kernel checks every logical step Stop 14

    Sources

    Back to the top