Approaching Riemann from another direction: well, why are we talking about the zeta function in the first place? Yes, we established that it might have something to do with the prime numbers. But…well, let’s talk about the primes for a second.
Someone, somewhere along the way—I think it was probably Terence Tao—mentioned that the primes act a little bit randomly, and a little bit deterministically. (Presumably Tao said it more intelligently.) In some sense, of course they’re deterministic: whether a number is prime is not the result of a coin toss. But at the same time, there doesn’t seem to be an easy algorithm that we could tell to “print the 5 millionth prime number.” There is an algorithm for that; I can give you a very stupid one. But as far as I know, there’s no quick way to generate the th prime. (The 5 millionth prime is 86,028,121, using that very stupid code.)
And it gets weirder. There’s a variant of the proof of the infinitude of primes that goes like this: suppose you tell me that you would like to find a sequence of numbers, none of which is prime (i.e., all of which are composite), that is 1000 integers long. I will give you that sequence. I won’t necessarily give you the earliest place where you’ll find 1000 composite numbers in a row, but I’ll give you a place where you can find it.
The way to start building this sequence is to note that 1000 factorial—which we abbreviate , and which equals 1000 times 999 times 998 times ⋯ times 3 times 2 times 1—is divisible by every integer between 2 and 1000. Likewise, is divisible by 2, is divisible by 3, and so on up to . That’s a sequence of 999 numbers. So if you want a sequence that’s exactly 1000 composite integers long, you’ll want to start with and continue up to . So, in short, if you want a sequence of composite numbers that’s integers long, the sequence from through has you covered.
In other words, there are arbitrarily large gaps between the primes, if you look far enough.
On the other end, there’s the still outstanding twin prime conjecture, namely that there are infinitely many prime numbers separated by only 2. (For instance, 3 and 5 are twin primes, as are 5 and 7, 11 and 13, 17 and 19, and so forth. The question is whether there are infinitely many such pairs.) Mathematicians have proved that there are infinitely many primes separated by a gap of at most 246. If we can bring 246 down to 2, the twin prime conjecture is proved.
So on the one hand, the primes can be found as far apart as you want. On the other, there may well be infinitely many of them that are as close together as they could be. That makes them a little mysterious. So let’s try to get a sense of how prevalent the primes are, by just counting. And while we’re at it, we’ll skip to the punchline and add an approximation. And we’ll use the universal notation for “the number of primes less than or equal to ,” namely .
| Relative error | |||
|---|---|---|---|
| 10 | 5 | 4 | 25% |
| 100 | 26 | 21 | 23.8% |
| 1000 | 169 | 144 | 17.3% |
| 10000 | 1230 | 1085 | 13.3% |
| 100000 | 9593 | 8685 | 10.4% |
| 1000000 | 78499 | 72382 | 8.5% |
| 10000000 | 664580 | 620420 | 7.1% |
| 100000000 | 5761456 | 5428681 | 6.1% |
The prime-counting function seems to track , where is the natural logarithm of . As gets larger, the relative error seems to decrease. Mathematicians back to Gauss, at least, speculated that the prime-counting function approaches as , in the sense that the ratio of to that approximation approaches 1. When this was finally proved, 30 years or so after Riemann, it was dubbed the Prime Number Theorem.
The Riemann Hypothesis falls out of his 1859 paper, which I’m given to understand proved a lot of results about the prime-counting function, including the “explicit formula”, which seems to connect a smoothed version of the prime-counting function to the log integral (which is similar to the approximation from above). The explicit formula includes the roots of the zeta function.
So that’s why we’re even slopping around in the zeta function to begin with: because the primes are a little random, but deterministic enough that people have hunted for a formula that counts them; and because the roots of the zeta function show up in the proof of the Prime Number Theorem.
That last fact alone, by the way, is mysterious and awe-inspiring on its own, if your eyes have been trained to spot it: if we count the number of primes below a certain threshold, and build an approximation to that count, we end up using the roots of the zeta function.
It’s weirder than that, actually: we’re not using the roots of the zeta function that I showed you in that earlier post; that zeta function was only defined for the real-valued argument . If we only allow ourselves to look at real numbers, the zeta function never equals zero—i.e., it has no roots. The way to make that function have some roots is to extend it to the complex plane, which is what Riemann did in his paper.
So somehow, to count the number of primes up to a threshold—which really seems like the simplest and most elementary of mathematical operations—we need to extend the zeta function to the complex plane, then find its roots. That’s extraordinary; I’m stunned that the human mind was able to take that leap.
In subsequent posts, I’ll map out how we get there—including, firstly, what people mean when they refer to the “trivial zeroes” of the zeta function. What makes a zero trivial? From what I can tell, the answer there doesn’t require too much complex-analytic machinery, so should be fairly easy to describe.