Computation

Solutions that come in multiples of p

Count the solutions of x² + y² + z² = 0 in the field with five elements and there are 25; with seven, there are 49. Whenever a system of equations has more unknowns than its total degree, its number of solutions is a multiple of the characteristic — which forces a solution besides zero, and the reason is a sum over the field that vanishes because its non-zero elements form one cycle.

Worth reading first: Every element is a power of one of them · Necklaces that prove a theorem.

In the integers modulo 5, the equation x2+y2+z2=0x^2 + y^2 + z^2 = 0 has 25 solutions among the 125 triples. Modulo 7 it has 49 of 343, modulo 11 it has 121, modulo 13 it has 169. Every time the count is a multiple of the prime — in fact the square of it — and one of the solutions is always (0,0,0)(0, 0, 0).

The zeros of x² + y² + z² over GF(5), and of x² + y² over GF(7). Grids of every point over a small prime field with the solutions of a quadratic equation filled in: the three-variable equation drawn as one slice per value of z, beside a two-variable equation with far fewer solutions.
Fig. 1 x2+y2+z2=0x^2 + y^2 + z^2 = 0 over GF(5), one 5-by-5 slice for each value of z: 25 solutions, a multiple of 5, so besides (0, 0, 0) there are 24 more. Beside it, x2+y2=0x^2 + y^2 = 0 over GF(7), which has 1 solution — with as many variables as the degree, the divisibility is not promised, and here it fails.

That the count is a multiple of the prime is not a coincidence of this equation. Whenever a system of polynomial equations over a finite field has more variables than the sum of its degrees, the number of its solutions is divisible by the field’s characteristic. Chevalley and Warning proved it in 1935. The consequence that gets used is the one the figure makes plain: a count divisible by 5 that includes the solution at zero cannot be 1, so there is another.

The proof is short, and it turns on a single fact about finite fields that the essay on every element being a power of one of them supplies.

A count that has to be a multiple

The statement is worth having exactly. Take a finite field with qq elements, of characteristic pp, and polynomials f1,,frf_1, \dots, f_r in nn variables with coefficients in the field. If the degrees add to less than nn, then the number of points of FnF^n at which every fif_i vanishes is a multiple of pp.

For one quadratic in three variables the degrees add to 2 and there are 3 variables, so the theorem applies; the count 25 is a multiple of 5. For x3+y3+z3+w3x^3 + y^3 + z^3 + w^3, a cubic in four variables, the counts modulo 3, 5, 7, 11 and 13 are 27, 125, 595, 1331 and 3133, and each divides by its prime. For one quadratic in two variables the degrees add to 2 and there are 2 variables, so the theorem says nothing, and the figure’s second panel shows why it has to say nothing.

The theorem was the answer to a question of Artin’s. He had conjectured that a finite field is quasi-algebraically closed: any polynomial with no constant term, in more variables than its degree, has a zero other than the obvious one. Chevalley proved it, and Warning in the same year strengthened it to the statement about counts. The counting version is the more useful, because a count carries information a bare existence statement does not.

The sum that vanishes

The one fact needed is a sum over all the elements of the field.

Sums of k-th powers over GF(7) and GF(9). For each field, a row of cells giving the sum of the k-th powers of every element for k from zero upward, which is zero except at the positive multiples of one less than the field's size.
Fig. 2 The sum of xkx^k over every element of GF(7) and of GF(9), for kk = 0 to 18. It is 0 at every kk except the positive multiples of q1q - 1 — at 6, 12 and 18 for GF(7), at 8 and 16 for GF(9) — where it is −1.

Add up xkx^k as xx runs over every element of a field with qq elements. At k=0k = 0 every term is 1 and there are qq of them, and qq is zero in a field of characteristic pp. For larger kk the zero element contributes nothing, and the rest are the powers g0,g1,,gq2g^0, g^1, \dots, g^{q-2} of a primitive element gg. Their kk-th powers are 1,gk,g2k,1, g^k, g^{2k}, \dots, a geometric series in gkg^k.

If gkg^k is not 1, that series is (gk(q1)1)/(gk1)(g^{k(q-1)} - 1)/(g^k - 1), and gk(q1)g^{k(q-1)} is 1, so the sum is 0. If gkg^k is 1 — exactly when q1q - 1 divides kk — every term is 1, there are q1q - 1 of them, and q1q - 1 is 1-1. So summing a power over the whole field gives nothing unless the power is a positive multiple of q1q - 1.

It is the same vanishing that makes the corners of a regular polygon add to nothing, and the same geometric series, carried out inside a finite field instead of the complex plane. The roots-of-unity filter used that vanishing to pick out coefficients; here it will pick out solutions.

Turning an equation into a sum

The second ingredient converts a question about solutions into a question about a sum.

For any element zz of the field, zq1z^{q-1} is 1 if zz is non-zero and 0 if zz is zero — Fermat’s little theorem, in the form every finite field satisfies. So 1f(x)q11 - f(x)^{q-1} is 1 at the points where ff vanishes and 0 everywhere else. It is an indicator, written as a polynomial.

Adding the indicator over every point of FnF^n counts the solutions — not as a whole number, but as that whole number reduced into the field, which is to say modulo pp. For several equations the product of the indicators, i(1fiq1)\prod_i (1 - f_i^{\,q-1}), is 1 exactly at the common solutions. So the number of solutions, modulo pp, is the sum over every point of a single polynomial.

That polynomial has degree (q1)(q - 1) times the sum of the degrees of the fif_i, and that number is the whole of the argument.

Why the degree has to be small

Why the zeros of x² + y² + z² over GF(3) come in threes. The monomials of one minus the square of x squared plus y squared plus z squared over the field with three elements, each with the variable whose power sums to zero over the field.
Fig. 3 The polynomial 1(x2+y2+z2)21 - (x^2 + y^2 + z^2)^2 over GF(3), which is 1 at each of the 9 zeros and 0 elsewhere, expanded into its seven monomials. Each monomial has a variable whose power is not a positive multiple of 2, and that variable’s power sums to 0 over GF(3), so every monomial adds to nothing over all 27 points.

Expand the indicator into monomials x1e1x2e2xnenx_1^{e_1} x_2^{e_2} \cdots x_n^{e_n}. Summing a monomial over every point of FnF^n splits into a product: the sum of x1e1x_1^{e_1} over the field, times the sum of x2e2x_2^{e_2}, and so on. By the vanishing sum, that product is zero unless every exponent eie_i is a positive multiple of q1q - 1.

A monomial whose exponents are all positive multiples of q1q - 1 has degree at least n(q1)n(q - 1). The indicator’s degree is (q1)(q - 1) times the sum of the degrees, and that sum is less than nn, so the indicator’s degree is less than n(q1)n(q - 1). No monomial in it can have every exponent large enough to survive, every monomial sums to zero, and so the number of solutions is zero modulo pp.

For x2+y2+z2x^2 + y^2 + z^2 over the field with three elements, the indicator is 1x4y4z4+x2y2+x2z2+y2z21 - x^4 - y^4 - z^4 + x^2y^2 + x^2z^2 + y^2z^2. Its degree is 4, less than 3×23 \times 2, and every one of its seven monomials leaves some variable out entirely — raised to the power 0, whose sum over the field is 33, which is 00. The equation has 9 solutions, and 9 is a multiple of 3.

Where it stops

The figure’s second panel is the edge of the theorem. The equation x2+y2=0x^2 + y^2 = 0 over the integers modulo 7 has two variables and degree two, so the indicator has degree 2×6=122 \times 6 = 12, which is exactly n(q1)n(q-1), and the monomial x6y6x^6y^6 is allowed to survive. It does, and the count comes out as 1: only (0,0)(0, 0).

The reason is arithmetic, and it is a fact met elsewhere. A non-zero solution would make x2=y2x^2 = -y^2, so 1-1 would be the square (x/y)2(x/y)^2, and modulo 7 it is not: the squares are 1, 2 and 4. Modulo a prime, 1-1 is a square exactly when the prime is one more than a multiple of four — a fact proved by counting, as so much here is — which is the same condition that decides whether the prime is a sum of two squares. Modulo 5 or 13 the equation has 2p12p - 1 solutions, 9 and 25, and modulo 3, 7 or 11 it has 1.

So the hypothesis is sharp. With as many variables as the degree, some fields admit only the trivial solution, and the count, 1, is not a multiple of anything. One variable fewer than needed is enough to lose the theorem entirely.

A consequence that follows on the other side of the edge is worth stating. Every quadratic form in three or more variables over a finite field has a non-zero solution, whatever its coefficients. Over the real numbers x2+y2+z2x^2 + y^2 + z^2 vanishes only at the origin, and over the rational numbers so do many forms. Over a finite field no form in three variables can avoid zero, because its solutions come in multiples of pp and zero is one of them.

One solution, and a line through it finds the rest

Chevalley and Warning say the count is a multiple of pp. For a quadratic form in three variables the figure shows more — exactly p2p^2 — and the reason is a construction that the divisibility makes possible.

Treat the solutions up to scaling. If (x,y,z)(x, y, z) is a non-zero solution then so is every multiple of it, and the p1p - 1 non-zero multiples are the same point of the projective plane over the field. So the non-zero solutions of x2+y2+z2=0x^2 + y^2 + z^2 = 0 fall into groups of p1p - 1, and each group is a point of a conic drawn in the finite projective plane.

Chevalley’s theorem supplies one such point. The rest are found the way every Pythagorean triple is found from one point of the circle: draw every line through the known point. A line meets a conic in two points, one of which is the point already known, so each line through it picks up exactly one more — except the tangent line, which touches only there. The plane over a field with pp elements has p+1p + 1 lines through any point, so the conic has exactly p+1p + 1 points.

That gives the count exactly. Each of the p+1p + 1 points is p1p - 1 non-zero solutions, and the zero solution is one more, so the total is (p+1)(p1)+1=p2(p + 1)(p - 1) + 1 = p^2 — 25 when p=5p = 5, 49 when p=7p = 7. The divisibility found one point, and the geometry of lines found all the others, which is a division of labour worth recognising: counting modulo pp is often the only way to show that a first solution exists, and once one exists, a construction usually counts the rest exactly.

More than one factor of p

Chevalley and Warning promise one factor of pp. Sometimes the counts carry more.

How far the solution counts of sums of squares are divisible by p. A table of the number of zeros of sums of three to six squares over small prime fields, each with the power of the prime dividing it, beside the powers promised by Warning's theorem and by Ax and Katz.
Fig. 4 The number of solutions of x12++xn2=0x_1^2 + \cdots + x_n^2 = 0 over GF(3), GF(5) and GF(7), with the power of p that divides it. For a sum of three squares the counts are 9, 25 and 49; of four, 33, 145 and 385; of five, 81, 625 and 2401; of six, 225, 3225 and 16513. A sum of six squares is divisible by exactly p2p^2 at every prime drawn — more than Warning promises and exactly what Ax and Katz do.

Counting every tuple, the sums of squares show a pattern Warning’s argument does not explain. A sum of four squares is divisible by pp and no more — 33 is 3×113 \times 11. A sum of six squares is divisible by p2p^2 at every prime drawn: 225=9×25225 = 9 \times 25, 3225=25×1293225 = 25 \times 129, 16513=49×33716513 = 49 \times 337.

Ax proved in 1964, and Katz sharpened it for systems in 1971, that the number of solutions is divisible not just by pp but by qbq^{b}, where b=n/d1b = \lceil n/d \rceil - 1 for a single equation of degree dd in nn variables. For quadratics that is n/21\lceil n/2 \rceil - 1: one factor for three or four variables, two factors for five or six. The sums of six squares meet that exactly, which shows the Ax–Katz bound cannot be improved in general. The sums of five squares, which are divisible by p4p^4, show that a particular equation can do better still.

Asking how many times pp divides a count, rather than whether it does, is a different kind of question, and it has a precedent that needs no field at all: how many times a prime divides a binomial coefficient is the number of carries in an addition written in base pp. Ax’s theorem is a counting of factors of pp of the same exact kind, applied to a count of solutions instead of a count of subsets.

The proof is harder than Chevalley and Warning’s. It needs sums over the field weighted by characters rather than plain sums of powers, and a careful count of how many factors of pp each such sum carries; the elementary argument above sees only whether a sum is zero, not how divisible it is.

Five numbers out of any nine

The theorem’s best-known use has no field in its statement at all.

Among any 2n − 1 whole numbers, n whose sum is divisible by n, for n = 3 and 5. For small n, every collection of 2n − 1 residues checked for n of them summing to a multiple of n, beside the collections of 2n − 2 residues where no such n exist.
Fig. 5 Every collection of 2n − 1 whole numbers, taken by their remainders mod n: all 21 collections for n = 3 and all 715 for n = 5 contain n numbers whose sum is divisible by n. With only 2n − 2 numbers it can fail — 3 of the 15 collections for n = 3 and 10 of the 495 for n = 5 — and n − 1 zeros with n − 1 ones is always one of them.

Among any nine whole numbers, some five have a sum divisible by five. Eight numbers are not enough: four that leave remainder 0 and four that leave remainder 1 contain no five with a sum divisible by five, since any five of them sum to between one and four. That is the Erdős–Ginzburg–Ziv theorem of 1961, and it holds for every nn in the form “among any 2n12n - 1 numbers, some nn have a sum divisible by nn”.

For a prime n=pn = p it is Chevalley–Warning applied to two polynomials in 2p12p - 1 variables over the integers modulo pp:

iaixip1=0,ixip1=0.\sum_{i} a_i\, x_i^{\,p-1} = 0, \qquad \sum_{i} x_i^{\,p-1} = 0.

Each has degree p1p - 1, so their degrees add to 2p22p - 2, less than the 2p12p - 1 variables. The all-zero point is a common solution, so there is another. In it, xip1x_i^{\,p-1} is 1 for the non-zero xix_i and 0 for the rest, so the second equation says the number of non-zero xix_i is a multiple of pp — and since there are at most 2p12p - 1 of them and at least one, exactly pp. The first equation then says the aia_i at those pp positions add to a multiple of pp. The equations had no subsets in them; the subset appears as the set of variables a solution does not set to zero.

The general case follows from the prime case, and the step is a small counting argument of its own. Suppose the statement holds for aa and for bb, and take 2ab12ab - 1 numbers. As long as at least 2b12b - 1 numbers remain, some bb of them have a sum divisible by bb; remove them and repeat. After 2a22a - 2 removals, 2ab1(2a2)b=2b12ab - 1 - (2a - 2)b = 2b - 1 numbers are still left, so a removal is possible 2a12a - 1 times in all. Each removed group’s sum is bb times a whole number, and among those 2a12a - 1 whole numbers some aa add to a multiple of aa. Those aa groups hold abab numbers, and their sum is bb times a multiple of aa.

So the theorem for every nn comes down to the theorem for primes, and for primes it comes down to a sum over a finite field. The search in the figure checks the whole statement for n=3n = 3 and n=5n = 5 without any of that argument, by trying every collection, and it shows the bound of 2n12n - 1 cannot be lowered: with one number fewer, more numbers than remainders no longer forces anything, and collections that avoid every sum divisible by nn appear at once.

What the counts cannot show

Every field drawn is small. The zeros are listed over fields of three to eleven elements, and the Ax–Katz table stops at six variables and the prime 7. The theorem is about every finite field and every system satisfying the degree condition; the tables are evidence that the statement and its sharpness are as claimed, not a proof of either.

The indicator is expanded only over the field with three elements. Over larger fields the same polynomial has dozens of monomials, and the argument that each of them sums to zero is the one given in words above, not one drawn.

And the theorem says how many solutions there are modulo pp, not how many there are. It forces 25 over five elements to be a multiple of 5; it does not say 25 rather than 5 or 120. That the count is exactly p2p^2 for a non-degenerate quadratic form in three variables is a separate and more precise theorem, and precise counts are a subject of their own.

The question it leaves: how many solutions, not only how many modulo p

Chevalley and Warning decide a count up to multiples of pp, which settles existence and says nothing about size. For an equation in two variables with the degree too large for their theorem, the natural expectation is a count close to pp — one solution for every value of xx, on average — and the interesting question is how far a real count can stray from that.

For the cubic curves y2=x3+ax+by^2 = x^3 + ax + b the answer is exact and old: never by more than twice the square root of pp, a bound Hasse proved in 1933, with every count the bound allows achieved by some curve. That is where counting modulo pp gives way to counting.

A divisibility that comes from a vanishing sum

The theorem looks like number theory and its engine is the structure of a finite field. The non-zero elements form one cycle, so powers summed over the whole field vanish unless they complete the cycle; an equation becomes an indicator polynomial by Fermat’s theorem; and a polynomial of low enough degree cannot contain a monomial that survives the sum.

When a count needs to be shown divisible, try writing it as a sum of a polynomial over a structure whose power sums vanish — the count modulo the characteristic is then read off from the degree, without finding a single solution.

What links here

Computed from the collection, not written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

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.

Counting argumentDegreeDivisibilityExistence proofFermats little theoremFinite fieldModular arithmeticPolynomialPrimitive elementQuadratic formSums of two squares