A sum that never leaves its circle
Worth reading first: Give or take twice the square root · One sum, squared two ways.
One sum squared two ways drew the quadratic Gauss sum as a walk of roots of unity, steps of length one, and found that it ends exactly from where it started — not about , as a random walk would, but exactly. Give or take twice the square root found the same square root in a different place: a cubic curve over the integers modulo has points give or take at most , Hasse’s theorem. Both are sums of terms that look independent and are not, held in by a square root that the arithmetic of the finite field imposes.
The sum this essay draws is the next one in that family, and the most famous. For a prime and whole numbers and not divisible by , the Kloosterman sum is
where is the inverse of modulo , the residue with . Hendrik Kloosterman introduced it in 1926 to count the ways of writing a number as , and it has turned up since in the theory of modular forms, in the spectral theory of the hyperbolic plane, and in the distribution of primes. It is not given by a formula. What is known about it is a bound, a distribution, and a conjecture.
A thousand steps that go twenty
The hero adds the 1,008 terms of one at a time and draws the running total. Each term is a unit vector pointing at angle , and the inverse jumps around the residues with no visible relation to : the inverse of 2 is 505, of 3 is 673, of 4 is 757. The path wanders accordingly, making the fern-like figure in the middle, and ends at on the real axis. A path of 1,008 unit steps could have gone as far as 1,008. A random one would typically end about away, and occasionally much further. This one never strays further than 24.6 from the origin, and its end lies well inside the dashed circle of radius .
Two symmetries shape the path. The term for and the term for are equal, since swapping and its inverse leaves unchanged; and the term for is the complex conjugate of the term for , since has inverse . So the steps come in conjugate pairs and the total is real; better, the last steps add up to the conjugate of the first , so the second half of the path is the first half reflected in the vertical line through half the total, which is the left–right symmetry the drawing shows. The sum is for an angle , here , and Weil’s theorem is the statement that such an angle exists at all — that .
Weil’s bound, everywhere it can be checked
André Weil proved the bound in 1948, as a consequence of his proof of the Riemann hypothesis for curves over finite fields. The proof is far from elementary: it identifies with minus the sum of two numbers of absolute value , the two eigenvalues of Frobenius on a certain piece of the cohomology of a curve, so that with and the bound is the triangle inequality. Elementary methods give much weaker bounds — is the best Kloosterman himself reached — and the gap between and is the gap between counting and geometry.
The figure checks it as far as patience allows: every for every odd prime up to 1,000, 75,958 sums. None exceeds . The largest creep up towards it as grows — 0.99 of the bound and more for most primes beyond a few hundred — because with values of to choose from, some angle lands close to 0 or . So the constant 2 cannot be lowered. Weil’s bound is not merely true; it is the truth about the largest values, and it is reached in the limit.
Every coefficient at one prime
Fix the prime and vary . The figure computes all 10,006 sums , scales each by so that Weil’s bound becomes the interval , and draws the histogram. It is not a bell. It is a semicircle — the density , highest in the middle and falling to nought exactly at — and the largest value is 1.9988.
The dashed curve is what chance would give: a sum of 10,006 random signs , scaled the same way, so that it has the same mean square as the Kloosterman sums. It is a bell, the central limit theorem’s bell, taller in the middle and spilling past in five trials of every hundred. The Kloosterman sums have no tail at all. They are confined to the interval, and instead of thinning towards its edges they pile up there, as if pressed against a wall. The difference between a bell and a semicircle is the difference between noise and noise with a hidden constraint.
Nicholas Katz proved in 1988 that the semicircle is the limit: as grows, the angles for become distributed by the Sato–Tate law , which is exactly what makes semicircular. The law is the distribution of the trace of a random rotation of the three-sphere — a random element of the group chosen uniformly — and Katz’s proof shows that the Frobenius eigenvalues of the curves behind the sums behave, collectively, like a random element of that group.
Moments that count non-crossing pairings
A distribution is pinned down by its moments, and the semicircle’s are the Catalan numbers: the average of over the semicircle on is The figure computes the averages of the 2nd to 10th powers of over all at three primes. At they are already 1.00, 1.99, 5.01, 14.24 and 43.36; at they are 1.0000, 1.9999, 5.0020, 14.035 and 42.27.
The first two are not approximations. Expanding the square and fourth power of the sum and using the orthogonality of the characters of gives exact identities,
and the figure checks both at each prime. Divided by and they tend to 1 and 2. The higher moments need Katz’s theorem.
The first identity has a one-line explanation that is worth having. As a function of , the sum is the discrete Fourier transform of the function , which has absolute value one at each of the nonzero residues and is nought at . Parseval’s identity says that the squares of a transform add up to times the squares of the function, so . The term is , a sum of all the nontrivial -th roots of unity in another order, which is ; taking away its square leaves . The fourth moment needs a little more counting — the number of solutions of with the same equation for the inverses — but it is the same kind of argument, and it is where the elementary theory ends.
The appearance of the Catalan numbers is the surprising connection. They count, among other things, the paths that never go wrong and the ways of pairing points on a line with arcs that do not cross; and expanding and averaging, the terms that survive are exactly those where the factors cancel in pairs, with the arithmetic of the inverses forbidding the pairings that cross. The same numbers, for the same reason, are the moments of the eigenvalues of a large random symmetric matrix, whose density is also a semicircle — the Wigner law that eigenvalues that keep their distance drew. A sum over a finite field and the spectrum of a random matrix share a distribution, and the shared distribution is a count of non-crossing pairings.
How far moments alone can reach
The two exact identities are worth more than a check on the computation, because they already contain a bound — and the bound they contain is Kloosterman’s. Every term in the sum of fourth powers is positive, so no single term can exceed the whole:
which gives , about . That is the exponent Kloosterman reached in 1926 by a different route, and here it falls out of one line of algebra about fourth powers. The second moment does worse — it gives only , no better than the trivial count of terms — and each higher moment does better: if the -th moment were known to be about , the same argument would give at most about , creeping down towards as grows.
That is the honest limit of averaging. Moments say what most of the sums do — the second moment says that the typical sum has size about , as a random walk of steps would, in the way a walk that comes home measured for the walks on a line — but they cannot rule out a single sum being much larger than the rest, because one exceptional value contributes only of the average. To get for every requires knowing all the moments exactly at once, which is what Weil’s geometry provides and no finite collection of identities can. The semicircle and the bound are two faces of one theorem: the bound says the support is , and the moments say how the mass is spread inside it.
The same contrast runs through the other square-root sums of this family. The slope a Gauss sum leaves behind and the quadratic Gauss sum of the opening are evaluated exactly, because a quadratic phase can be completed and squared; the Kloosterman phase cannot, which is why its sum has a law rather than a value.
One sum through every prime
Katz’s theorem varies at a fixed prime. The natural question goes the other way: fix the sum, , and let the prime vary. The figure computes it for every odd prime up to 30,000, 3,244 primes, and the histogram looks like the same semicircle, with second, fourth and sixth moments 1.017, 2.020 and 4.997 against 1, 2 and 5.
Here nothing is proved. That the angles of , as runs through the primes, are distributed by the Sato–Tate law is Katz’s conjecture, and it has been open since the 1980s. The analogous statement for elliptic curves — that the angles in , the quantity the Hasse bound confines, follow the same law as varies — was the Sato–Tate conjecture, proved between 2008 and 2011 by Richard Taylor with Laurent Clozel, Michael Harris, Nicholas Shepherd-Barron, Thomas Barnet-Lamb and David Geraghty, through the modularity machinery of the Langlands programme. For Kloosterman sums no comparable machinery is known to apply. It is not even known, for prime moduli, that changes sign infinitely often; Étienne Fouvry and Philippe Michel proved sign changes in 2007 only along moduli with a bounded number of prime factors.
The difference between the two directions is a difference in what can be averaged. Varying at a fixed prime is averaging over a family of curves defined over one finite field, where Deligne’s and Katz’s geometry applies. Varying the prime is a statement about one equation over the rational numbers, reduced modulo each prime, which is an arithmetic statement of the deepest kind — of the same kind as the distribution of the primes themselves.
Where the sums do their work
Kloosterman’s original use shows why a bound mattered. Counting representations by by the circle method produces a main term and an error, and the error is a sum of Kloosterman sums; any bound better than the trivial makes the error smaller than the main term for large numbers, and Kloosterman’s was enough to prove that every large number is represented whenever no congruence forbids it. The same structure recurs. In the spectral theory of the modular group, the Kuznetsov formula ties sums of Kloosterman sums to the eigenvalues of the Laplacian on the modular surface, and Selberg’s conjecture about the smallest of those eigenvalues is, in one form, a statement about cancellation in such sums. In the distribution of primes in arithmetic progressions, the best results beyond the Bombieri–Vinogradov theorem, including the work behind bounded gaps between primes, rest on bounds for sums of Kloosterman sums over many moduli.
What the applications need is usually not the individual bound but cancellation on average — that a sum of over many moduli is much smaller than the sum of their absolute values. Linnik and Selberg conjectured square-root cancellation of that kind, and it remains open; the semicircle of the last figure, with its mean near nought, is a picture of what it would mean along the primes.
A semicircle on 3,244 primes is not the Sato–Tate law
The sums are computed exactly up to rounding — each a sum of cosines from a table of the residues, with inverses from the recursion — and the identities for the second and fourth moments are checked to the rounding of the arithmetic. The Weil bound is checked on 75,958 sums; it is a theorem, and the check confirms the computation, not the theorem. The histograms at a fixed prime show Katz’s limit arriving at , as the theorem says it must.
The last figure proves nothing about the primes beyond 30,000, and nothing at all about the conjecture it illustrates. A distribution that looks semicircular on 3,244 primes is consistent with the Sato–Tate law and with many laws close to it; its moments agree to two decimals with Catalan numbers, and that is all a finite census can say. The figures also show only the sums with ; by the substitution , , so nothing is lost at a fixed prime, but the horizontal question for other and is a separate conjecture for each.
Still open: the sign, the law, the average
Three questions stand in increasing order of depth. Does change sign infinitely often as runs through the primes? Almost certainly, and no one can prove it. Are its angles distributed by the Sato–Tate law? That is Katz’s conjecture, and it would follow from a modularity statement for the family of Kloosterman sheaves that nobody knows how to formulate in a form the Langlands methods can reach. And do sums of Kloosterman sums over moduli up to cancel to size about , as Linnik and Selberg conjectured? That would have consequences throughout analytic number theory, from the spectral gap of the modular surface to primes in progressions to large moduli.
What the computations make vivid is that the second and third questions are the same picture as Katz’s theorem with the axes swapped. At a fixed prime, the family of coefficients behaves like random rotations, and geometry proves it. Along the primes, one sum appears to behave like random rotations too, and the only thing missing is a proof that a single equation’s reductions modulo different primes are as unrelated as the members of one family over one field.
Bounded, semicircular, and unexplained along the primes
Kloosterman’s sum adds unit vectors and never ends further than from the origin, which Weil proved by reading it as two eigenvalues of Frobenius; at a fixed prime its values over all coefficients fill the interval allowed with a semicircle, whose moments are the Catalan numbers counting non-crossing pairings — exactly for the second and fourth, by Katz’s theorem for the rest. A sum of random signs with the same mean square spreads into a bell and leaves the interval; the Kloosterman sums pile up against its walls. Followed through the primes, one fixed sum looks semicircular as well, with moments 1.017, 2.020 and 4.997 over 3,244 primes, and that is Katz’s conjecture, open, with not even its sign changes proved.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A field's worth of squares — both name finite field, modular arithmetic
- A plane in a list of numbers — both name finite field, modular arithmetic
- A sum of two sets modulo a prime cannot be small — both name finite field, modular arithmetic
- Every element is a power of one of them — both name finite field, modular arithmetic
- Every third coefficient — both name modular arithmetic, roots of unity
- How a polynomial breaks modulo the primes — both name finite field, modular arithmetic
Named objects
A dashed tag is an object no other essay names yet.
Catalan numbersFinite fieldGauss sumModular arithmeticRandom matrixRoots of unitySemicircle law