The primes enter · Part 1 of 3
The Euler product: where the primes come in
Prove that the sum of n^(-s) over all integers equals a product over all primes, then use it to show there are infinitely many primes and that the sum of 1/p diverges.
The primes enter7 min read
So far is a sum over all positive integers. Euler's discovery in 1737 is that the same number is also a product over the primes:
This is the reason the zeta function matters for the primes. We prove it completely in this chapter, then draw three consequences.
Step 1: where the geometric series comes from
The whole proof starts from one fact about a single number with :
Here is why it is true, so that nothing is taken on faith. Multiply the finite sum by . Each term cancels against the next one:
When , the number shrinks to 0 as grows. So the sum gets closer and closer to , which is the formula above. (Check with : .)
Step 2: put and read off the denominators
Now choose a particular . Take a prime and a real number , and let
This is between 0 and 1, so the geometric series applies. Two things happen when we put it in.
- The left side. becomes , which is just . That is where "one minus to the minus " in the product comes from: it is only the of the geometric series, with replaced by .
- The right side. The powers of become . The -th term is therefore with .
So for each prime ,
The right side is a list of over the numbers , the powers of ( is the first term).
A concrete case, and : here and the formula says
and the denominators are for , the powers of 2. Adding the first five terms gives , already close to .
Step 3: multiply two of these lists, and see every number appear
Now the idea that makes the product work. Take two primes, 2 and 3, and multiply their lists. Write each as a sum:
When two sums are multiplied, every term of the first is multiplied by every term of the second (the distributive law). Draw it as a table: the columns are the terms of the 2-list, the rows the terms of the 3-list, and each cell is the product of its column and its row.
Look at how a cell is computed. For instance, , because for positive numbers. In general the cell in column and row is
This is the trick, so let us say it plainly. Each cell of the table is for a number that is a product of a power of 2 and a power of 3: The whole product is the sum of all the cells:
Two questions decide whether this is a sum over the integers made of 2s and 3s, each counted once.
- Does every such integer appear? Yes. If , the cell in column and row is . For example is the cell in column and row .
- Does it appear only once? Yes, and this is where the primes matter. An integer can be written as a product of primes in only one way (apart from the order). So is and nothing else: no other cell gives 12. If an integer could be built from 2 and 3 in two ways, it would be counted twice and the sum would be too big. The statement that this never happens is the fundamental theorem of arithmetic.
So each integer whose only prime factors are 2 and 3 corresponds to exactly one cell, that is, to exactly one choice of "which power of 2, which power of 3". The numbers that are not in the table are those with another prime factor, such as 5 or 7, and that is why we need more primes next.
Step 4: add more primes, one at a time
Bring in the prime 5. Multiply the sum we have by . Each existing cell is now multiplied by each , giving . The new numbers are . For instance:
- comes from choosing , , ;
- comes from choosing , , ;
- is still missing: it needs the factor for 7.
In general, multiply the lists for all the primes up to : . Taking one term from each list means choosing an exponent for each prime, and the term obtained is . Every choice gives one number; unique factorization says different choices give different numbers; and every number whose prime factors are all at most is obtained by some choice (just read off its exponents, using for primes it does not contain). Therefore
Because every term is positive and every series involved converges (compare with ), the order of multiplication and addition does not matter.
Step 5: let go to infinity
Every integer has all its prime factors at most , so it appears in the sum on the right. Therefore the sum on the right contains at least , and at most all of :
The left side tends to as , so by squeezing,
That is Euler's product, and it is the whole proof. (It uses two facts that are worth stating: the geometric series, and that every integer factors into primes in exactly one way. The second is the fundamental theorem of arithmetic; the product formula is in effect its analytic form.)
Numerically, for : the first factor is , the second , so the product of two is 1.5. With 5 primes it is 1.6083 and with 25 primes 1.6419, creeping up to . The convergence is slow because the missing factors for large primes, , still add up.
Consequence 1: infinitely many primes
Suppose, for contradiction, that there were only finitely many primes, . Then the product has finitely many factors:
Each factor is a continuous function of at (the denominator is not zero because ), so the right side stays bounded as : it tends to , a finite number. But in chapter 3 we proved as . Contradiction. Hence there are infinitely many primes.
This is a different proof from Euclid's, and it contains more information: it connects the primes to the behaviour of at the pole.
Consequence 2: the sum of diverges
How many primes are there? One measure: if the primes are dense, should diverge, like the harmonic series; if they are sparse, like the squares (where converges), it should converge. Euler's answer is that it diverges, so the primes are "dense enough". Take the logarithm of the product for :
The series for gives
We bound the error term for . Since for and :
Hence , using the same telescoping sum as in chapter 2. So stays below for every .
Now let . The left side because . Since is bounded, . But , so
The sum of the reciprocals of the primes diverges. It does so extremely slowly: the sum of over primes up to grows like . To get past 4 you would need primes up to about .
Consequence 3: the inverse, and a teaser
Take the reciprocal of the product:
Multiplying out the right side (the same way as in Step 4, but with minus signs) gives a sum , where is the Möbius function: ; if has a repeated prime factor; otherwise where is the number of prime factors. So , , . We will meet this again: the partial sums of are the Mertens function, and chapter 13 shows that the Riemann hypothesis is equivalent to the statement that they grow slowly.
With we get . A famous interpretation: pick two integers at random; the probability that they have no common factor is . The heuristic is that the chance that a given prime divides both is , so the chance that does not is , and the events for different primes behave independently. Multiply over all primes and you get Euler's product for . (It can be proved rigorously by counting.)
What the product says about the zeros
One more observation, which we use in chapter 7. The product converges absolutely for , and no factor is zero or infinite. So for : the function cannot vanish where the product converges. Any zeros of must lie in a region that the product does not reach. That is why Riemann's zeros are found outside the half-plane where the series converges.
Check yourself
1. Where exactly did Step 3 use unique factorization?
In the claim that each integer appears once in the double sum. Without uniqueness, some integer would be counted twice and the product would not equal the sum.
2. Compute the first three factors of the product for and the value after multiplying them.
.
3. Why does say something about the density of primes?
The sum of over the squares converges, so if primes were as rare as squares their sum would converge too. Divergence shows they are denser than squares (and, as chapter 5 shows, thinner than all integers).