The sieve written as a product
Worth reading first: One way to factor, and no other · A sum whose terms vanish and whose total does not.
Every whole number greater than one is a product of primes in exactly one way. That is a statement about individual numbers, proved by descent, and it is the foundation of the subject. Written as an identity between two infinite expressions, it becomes something else entirely: a statement about convergence, to which the whole of analysis can be applied.
The left panel is the identity in miniature and it is checked rather than asserted: the generator multiplies the three series, enumerates the numbers they build, adds their reciprocals, and refuses to draw unless the two agree to twelve decimal places.
Multiplying out
Take one geometric series for each prime:
Expanding means choosing one term from each bracket and multiplying, then adding over all choices. A choice is a set of exponents — a power of two, a power of three, a power of five, and so on, all but finitely many of them the zeroth — and the product of the chosen terms is where is the number those exponents build.
So the expansion is a sum of over some collection of , and two questions decide the identity. Does every appear? Yes, because every number has a factorisation. Does any appear twice? No, because the factorisation is unique. The identity
is therefore not a computation but a restatement: the left side is a product over primes, the right a sum over integers, and the equality is unique factorisation.
Each bracket sums to , which is why the product is usually written that way. The form with the reciprocals is the one that makes the sieve visible: is the fraction of numbers that survive striking out the multiples of , and the whole product is the fraction surviving every strike-out — which is where the density heuristic for the primes comes from, and where it goes wrong by a factor.
What truncating does, and does not do
The identity is between infinite expressions, and every drawable version cuts it down. It is worth being precise about what the cut version says, because it is an exact statement rather than an approximate one.
Keeping only the primes up to some bound and only the exponents up to some power gives a finite product, and multiplying it out gives a finite sum — over precisely those numbers whose prime factors are within the bound and whose exponents are within the power. Nothing has been approximated. The identity has been restricted to a subset of the integers, and it holds exactly on that subset.
This is the useful way to think about every sieve argument. Striking out the multiples of the primes up to leaves the primes; keeping only the brackets for those primes keeps the numbers those primes build; and the two operations are the same operation seen from either side of the identity.
The numbers left out by a truncation are the ones with a large prime factor, and there are a great many of them: most numbers have a prime factor larger than their own square root. That is why the finite version, though exact, converges to the infinite one so slowly, and it is the practical difficulty every sieve method has to manage.
Euler’s proof that the primes do not run out
The identity gives an argument for the infinitude of the primes that has nothing in common with Euclid’s.
Suppose there were finitely many primes. Then the product has finitely many brackets, each of them a convergent geometric series with a finite sum, so the product is a finite number. But the product equals the harmonic series, which diverges. A finite number cannot equal an infinite one, so there are infinitely many primes.
Compared with Euclid’s proof this is heavy machinery for a result already known — and it proves considerably more, which is the reason to have it. Euclid’s argument shows that no finite list is complete and gives no idea how the primes are distributed. Euler’s shows that they are numerous enough for the sum of their reciprocals to misbehave, and that quantity is the next question.
How numerous, exactly
Take logarithms of the product identity and the sum over primes appears directly, which is the step that converts the identity into information.
because is plus something of size , and the sum of over all primes converges. The harmonic sum is about , so its logarithm is about , and
with , the Mertens constant. That is the right-hand panel of the first figure, and the generator checks the curve against that estimate at every point it draws, never letting the two differ by more than a twelfth.
Two consequences are worth extracting.
The primes are denser than the squares. The sum of the reciprocals of the squares converges — famously to — and the sum over primes does not. Any set whose reciprocals sum to infinity is, in this precise sense, a large set, and the primes are large while the squares are not.
The divergence is unbelievably slow. The sum passes 3 at about five million, passes 4 at about , and passes 5 somewhere past . The growth is the logarithm of a logarithm, which is the slowest divergence anybody has cause to write down, and a quantity that grows without bound while staying under 5 for every number that will ever be examined is a useful corrective to the intuition that divergence means growth.
Where pi comes in
Replacing the exponent by a variable turns the identity into the one Riemann used:
valid whenever the sum converges, which is for greater than one. The proof is the same expansion; the exponent changes nothing about the bookkeeping.
At the sum is , which Euler found in 1735 and which has no business containing a circle constant. Combining that with the product gives a fact about integers that is worth stating on its own: the probability that two whole numbers chosen at random have no common factor is , or about . The derivation is one line from the product — the chance that neither is divisible by is , these are independent across primes, and the product of those is .
That is the appearance of in a question with no circle in it, and here the mechanism is completely visible: the circle constant enters through the value of the sum, the sum equals the product by unique factorisation, and the product is about divisibility. Nothing is mysterious; the two sides of an identity simply belong to different subjects.
What the identity is really for
Euler’s product is the door through which analysis enters number theory, and the reason is that it converts a multiplicative statement into an additive one.
Facts about primes are facts about multiplication: which numbers divide which. Facts about convergence are additive: whether a sum of small things is finite. The product identity translates between the two registers, and once the translation exists, every tool for studying functions — differentiating, integrating, continuing into the complex plane, locating zeros — becomes a tool for studying primes.
The specific payoff is the counting theorem. Riemann’s route to it is to extend beyond the region where the sum converges, take the logarithmic derivative of the product — which converts the product over primes into a sum over prime powers — and read off a formula for the count of primes in terms of where vanishes. Every step of that depends on having both descriptions of the same function, and the identity is what supplies them.
The zeros are where the difficulty lives, and it is worth being clear that the identity itself says nothing about them: it holds only where the sum converges, and the zeros are all elsewhere. What the identity does is guarantee that has no zeros at all in the region it covers, because a convergent product of non-zero factors cannot vanish — which is a small fact and the first step of every proof in the subject.
Where the product stops working
The identity holds for greater than one and fails at , and the failure is the whole subject rather than a technicality.
At both sides are infinite, which is the infinitude proof above. Just to the right of both sides are finite and enormous: behaves like as comes down to one, so the sum has a pole there. The primes’ influence on the function is entirely a matter of how that pole is approached, and every quantitative statement about the primes is a statement about the function near that point.
Extending to the left of cannot be done with either the sum or the product — both diverge — and requires an entirely different formula that agrees with the sum where both are defined. That extension is Riemann’s, and it is where the zeros are: none of them lies in the region the product covers, because the product cannot vanish there, so the interesting behaviour is by construction outside the reach of the identity that started it.
The situation is a good illustration of what analytic continuation is for. A function is defined by a formula on part of its domain; the formula is not the function, and the parts of the domain where the formula is silent are where the answers turn out to be. The geometric series is the small model of this — the sum means nothing for past one, and the function it equals is perfectly well behaved there.
The other products
Once the expansion is understood, it produces an identity for every function that respects multiplication, and the resulting catalogue is most of elementary number theory rewritten.
A function with for coprime and has
by exactly the argument above: expanding the product picks one prime power from each bracket, and unique factorisation says each arises once.
Taking gives . Taking to be the number of divisors of gives . Taking the Möbius function — which is on numbers with distinct prime factors and zero otherwise — gives , and that reciprocal is where the coprimality probability above comes from. Taking Euler’s totient gives .
The pattern is that arithmetic facts about these functions — that the divisor counts of coprime numbers multiply, that the Möbius sums over divisors vanish — become algebraic facts about products of , which are far easier to manipulate. That translation is the standard working method of the subject, and it is entirely a consequence of the expansion drawn in the first figure.
What the picture cannot show
The left panel truncates twice over: three primes rather than all of them, and exponents capped at the third power. Both truncations are necessary to draw anything and both change the object — the identity is between two infinite expressions, and the finite version is an exact statement about a smaller set of numbers rather than an approximation to the infinite one.
The right panel is worse off. It draws the sum of reciprocal primes to a hundred thousand, where it has reached 2.71, and the claim is that it grows without bound. Nothing in the drawn range distinguishes that curve from one that is levelling off at 3, and no extension of the axis would help: the divergence is so slow that a picture reaching the age of the universe in computing time would show a curve that had crept up by less than one.
The proof is therefore doing all of the work here, and the picture is doing something more modest — showing that a quantity people expect to converge does not, and showing at what rate, which is a rate a picture can display even where the divergence cannot.
The ladder from here
Below: unique factorisation, which the identity restates, and the harmonic series, which it leans on. Sideways: Euclid’s proof, the same conclusion from nothing at all, and the sieve, which the product is a rewriting of. Above: the counting theorem and the guaranteed prime before the double — the first of which this identity leads to, and the second of which it has nothing to say about.
The bookkeeping the identity depends on
The expansion above is an infinite product of infinite sums, and rearranging such a thing is not always legal, so it is worth naming what makes it legal here.
Every term is positive. For a sum of positive terms the total does not depend on the order they are added in, and the same holds for the expansion of a product of positive series: whatever order the choices are made in, the total is the same. That is what licenses the argument, and it is the reason the identity is stated for real exponents above one rather than for the whole complex plane.
Where terms have signs, none of this is automatic. A series whose terms change sign can be rearranged to any total whatever, and the corresponding manipulations of products need their own justification — which is precisely why the extension of the identity into the region where the sum does not converge cannot be done by rearranging anything.
An identity that changed the subject
The lasting point is what happens when a fact is rewritten in a language it was not stated in. Unique factorisation is a theorem about individual integers with a short proof; written as an identity between a sum and a product it becomes a statement about analytic functions, and every question about primes becomes a question about where a function is large, small or zero.
The move is worth recognising because it is one of the most productive in mathematics and one of the least obvious in advance. A geometric series drawn as a dissection of a square, a counting problem rewritten as a walk on a graph and a question about permutations rewritten as one about a group of symmetries are all the same manoeuvre, and in each case the new language brought with it a set of tools that had no visible relationship to the original question.
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- Two squares, and a lattice — both name pi, primes, unique factorisation
- A bell curve assembled out of coin flips — both name convergence, pi
- A square wave built entirely out of round ones — both name convergence, pi
- Numbers that are their own parts — both name multiplicative function, primes
Named objects
A dashed tag is an object no other essay names yet.
ConvergenceDivergenceGeometric seriesHarmonic seriesMultiplicative functionPiPrimesUnique factorisation