Number

The sieve written as a product

Multiply out one geometric series for each prime and every whole number appears exactly once, as a single term. That identity turns a statement about factorisation into a statement about convergence, and it is where the analytic study of the primes begins.

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 sieve as a product, and the sum over the primesThe whole numbers up to 60, with those built only from 2, 3, 5 marked — the numbers the product of three geometric series multiplies out to. Beside them, the sum of the reciprocals of the primes, which grows without bound.the numbers 2, 3, 5 build12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596023 of the first 60100100010⁴10⁵0.00.51.01.52.02.53.0xsum of 1/p for p up to xthe sum over primesln ln x + 0.261and how slowly it divergesmultiplying the 3 truncated series together gives 3.466667, which is exactly the sum of the reciprocals of the64 numbers 2, 3, 5 can build — the marked cells, continued past 60the sum of 1/p over the primes up to x passes 2.71 at 100,000 and grows without bound, never leaving ln ln x+ 0.261 by more than 0.065
Fig. 1 On the left, the numbers up to sixty that 2, 3 and 5 build, with the exponents capped: multiplying the three truncated geometric series together gives exactly the sum of their reciprocals. On the right, the sum of the reciprocals of the primes, which grows without bound at the rate of the logarithm of a logarithm.

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:

(1+12+14+)(1+13+19+)(1+15+125+)\left(1 + \frac{1}{2} + \frac{1}{4} + \cdots\right)\left(1 + \frac{1}{3} + \frac{1}{9} + \cdots\right)\left(1 + \frac{1}{5} + \frac{1}{25} + \cdots\right)\cdots

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 1/n1/n where nn is the number those exponents build.

So the expansion is a sum of 1/n1/n over some collection of nn, and two questions decide the identity. Does every nn appear? Yes, because every number has a factorisation. Does any nn appear twice? No, because the factorisation is unique. The identity

p(11p)1=n=11n\prod_{p} \left(1 - \frac{1}{p}\right)^{-1} = \sum_{n=1}^{\infty} \frac{1}{n}

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.

The divisors of 36Every divisor as a lattice point, one axis per prime, joined when one divides the other by a single prime.124361291836× 2 →× 3 ↑2^2 × 3^2 — 3 × 3 = 9 divisors
Fig. 2 The divisors of thirty-six, arranged by which powers of two and three they use. Choosing a term from each bracket of the product is choosing a point of a lattice like this one, and the lattice being complete and free of repeats is exactly what makes the expansion work.

Each bracket sums to (11/p)1(1 - 1/p)^{-1}, which is why the product is usually written that way. The form with the reciprocals is the one that makes the sieve visible: 11/p1 - 1/p is the fraction of numbers that survive striking out the multiples of pp, 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.

The sieve as a product, and the sum over the primesThe whole numbers up to 48, with those built only from 2, 3 marked — the numbers the product of three geometric series multiplies out to. Beside them, the sum of the reciprocals of the primes, which grows without bound.the numbers 2, 3 build12345678910111213141516171819202122232425262728293031323334353637383940414243444546474814 of the first 48100100010⁴10⁵0.00.51.01.52.02.53.0xsum of 1/p for p up to xthe sum over primesln ln x + 0.261and how slowly it divergesmultiplying the 2 truncated series together gives 2.894290, which is exactly the sum of the reciprocals of the25 numbers 2, 3 can build — the marked cells, continued past 48the sum of 1/p over the primes up to x passes 2.71 at 100,000 and grows without bound, never leaving ln ln x+ 0.261 by more than 0.065
Fig. 3 Two primes instead of three, and exponents up to the fourth power. The marked numbers are exactly those built from 2 and 3 with neither exponent above four, and the product of the two truncated series is exactly the sum of their reciprocals.

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 x\sqrt{x} 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 sieve of Eratosthenes below 100A grid of the whole numbers with the composites struck out by the prime that removes them.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100every composite struck once, by its smallest prime factor25 squares are left standing, and they are the primes below 100
Fig. 4 The sieve of Eratosthenes to a hundred. The fraction of numbers surviving the strike-out for a prime pp is 11/p1 - 1/p, which is the reciprocal of that prime’s bracket in the product — so the product and the sieve are one procedure described twice.

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.

Terms that vanish, a total that does notThe first 24 terms of the harmonic series as bars, with the running total above them. The last bar is 0.042 tall and the total has reached 3.776.246810121416182022240123ntotal 3.776term 0.042
Fig. 5 The harmonic series, whose partial sums grow without bound although its terms go to zero. That divergence is the entire force of the argument below: a finite product of finite numbers cannot equal an infinite sum.

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.

Oresme's blocksThe harmonic series bracketed into blocks of 1, 1, 2, 4, 8, … terms. Every block after the first sums to at least a half, marked by the upright line, so the total passes any bound.each block after the first clears a half1/11.00001/20.50001/3 … 1/40.58331/5 … 1/80.63451/9 … 1/160.6629
Fig. 6 Why the harmonic series diverges: the terms are grouped into blocks each summing to more than a half, and there are infinitely many blocks. The proof is Oresme’s, from about 1350, and it is the fact Euler’s argument leans on.

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.

lnnx1npx1p+a bounded amount,\ln \sum_{n \le x} \frac{1}{n} \approx \sum_{p \le x} \frac{1}{p} + \text{a bounded amount},

because ln(11/p)-\ln(1 - 1/p) is 1/p1/p plus something of size 1/p21/p^2, and the sum of 1/p21/p^2 over all primes converges. The harmonic sum is about lnx\ln x, so its logarithm is about lnlnx\ln \ln x, and

px1plnlnx+M\sum_{p \le x} \frac{1}{p} \approx \ln \ln x + M

with M=0.2615M = 0.2615, 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 π2/6\pi^2/6 — 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 1.8×10181.8 \times 10^{18}, and passes 5 somewhere past 104910^{49}. 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 11 by a variable ss turns the identity into the one Riemann used:

ζ(s)=n=11ns=p(11ps)1,\zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s} = \prod_p \left(1 - \frac{1}{p^s}\right)^{-1},

valid whenever the sum converges, which is for ss greater than one. The proof is the same expansion; the exponent changes nothing about the bookkeeping.

At s=2s = 2 the sum is π2/6\pi^2/6, 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 6/π26/\pi^2, or about 0.60790.6079. The derivation is one line from the product — the chance that neither is divisible by pp is 11/p21 - 1/p^2, these are independent across primes, and the product of those is 1/ζ(2)1/\zeta(2).

That is the appearance of π\pi 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 ζ\zeta 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 ζ\zeta 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 ζ\zeta 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 ss greater than one and fails at s=1s = 1, and the failure is the whole subject rather than a technicality.

At s=1s = 1 both sides are infinite, which is the infinitude proof above. Just to the right of 11 both sides are finite and enormous: ζ(s)\zeta(s) behaves like 1/(s1)1/(s-1) as ss 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 ζ\zeta to the left of s=1s = 1 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 1+r+r2+1 + r + r^2 + \cdots means nothing for rr past one, and the function 1/(1r)1/(1-r) 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 ff with f(mn)=f(m)f(n)f(mn) = f(m)f(n) for coprime mm and nn has

n=1f(n)ns=p(1+f(p)ps+f(p2)p2s+),\sum_{n=1}^{\infty} \frac{f(n)}{n^s} = \prod_p \left(1 + \frac{f(p)}{p^s} + \frac{f(p^2)}{p^{2s}} + \cdots\right),

by exactly the argument above: expanding the product picks one prime power from each bracket, and unique factorisation says each nn arises once.

Taking f=1f = 1 gives ζ\zeta. Taking f(n)f(n) to be the number of divisors of nn gives ζ(s)2\zeta(s)^2. Taking the Möbius function — which is ±1\pm 1 on numbers with distinct prime factors and zero otherwise — gives 1/ζ(s)1/\zeta(s), and that reciprocal is where the coprimality probability above comes from. Taking Euler’s totient gives ζ(s1)/ζ(s)\zeta(s-1)/\zeta(s).

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 ζ\zeta, 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.

Named objects

A dashed tag is an object no other essay names yet.

ConvergenceDivergenceGeometric seriesHarmonic seriesMultiplicative functionPiPrimesUnique factorisation