Consider the fifth roots of unity. If , then the simple-looking sum
is actually equal to
. One can check the identity directly: if
and
, then
and
, so
; the difference is positive. But suppose instead that we ask an arithmetic question: what factors does this number have when we allow ourselves to calculate with roots of unity? In particular, what happens if we regard
as a small factor? This seems unrelated to the familiar expression
, but it gives a surprisingly useful way to study the sum. Set
, so that
. There is no approximation here: we are simply making a change of variable. Expand the four powers of
by the binomial theorem. The constant terms cancel, as do the coefficients of
. What remains is the exact identity
Thus is divisible by
, but not by
: after taking out
, the remaining factor is
, which reduces to
when
is set equal to zero. This is the sort of information that the equation
does not make obvious. We obtained it without evaluating a trigonometric sum; we simply used the binomial theorem and watched the early coefficients cancel. Stickelberger’s theorem explains this cancellation for a whole family of Gauss sums. More unexpectedly, it says that the order of the first surviving term can be read from the digits of an integer written in base
.
We first need to see why is a natural factor, rather than an arbitrary choice. Let
be any prime, and let
. The nontrivial
-th roots of unity are the roots of
. Factor this polynomial and then substitute
. We obtain
Here . Every factor of
becomes
when
is replaced by
, and none of the integers
is zero modulo
. Consequently, the last product is invertible in the arithmetic we shall use. The identity says that
contains exactly
factors of
, up to multiplication by an invertible element. In this sense,
is a finer measuring unit than
. A question such as “how many factors of
?” becomes more informative if we first count factors of
. In ordinary arithmetic, we identify a power of a prime by repeatedly dividing until a nonmultiple remains. We will do the same thing here. For an expression
built from our roots of unity, saying that it contains exactly
factors of
means that we can write
, where
is nonzero after reduction modulo
. We write this number as
. The example above gives
. Later we will give an explicit construction of the congruence arithmetic that makes these statements precise; for now, thinking of the first nonzero coefficient in a
expansion is enough.
Our general sums will involve two kinds of roots of unity. The additive part uses , which has order
. The multiplicative part uses roots of unity whose orders divide
, or later
. We want to arrange for a multiplicative root of unity corresponding to a residue
to become that same residue when we reduce modulo
. For example, modulo
we can make
correspond to
, since
. Then
correspond to
. Multiplication is preserved, which is what we need when summing character values. Denote the resulting multiplicative correspondence by
. It satisfies
.
Such a correspondence is often called the Teichmüller character. For the moment, we shall use only these two properties. In the prime-field case, every multiplicative character is a power of , so a convenient family of Gauss sums is
.
The sum in our opening example is for
. What might make the first few powers of
disappear in such a sum? The binomial expansion alone does not explain it. We also need a reason for sums of powers of residues to vanish. Fortunately, that reason is elementary and works just as well in any finite field.
Let be a field with
elements; later
. The notation
means its nonzero elements. Consider the sum
, where
can even be negative because
is nonzero. Multiplication by any fixed nonzero
merely rearranges the terms, so
. If
does not divide
, some
satisfies
: otherwise, after reducing
modulo
, a nonzero polynomial of degree smaller than
would have
distinct roots. For such a
, our identity forces
. If
does divide
, all summands are
, and their sum is
in the field. Thus we have proved
This little identity is responsible for most of the cancellation in the proof. Its importance is not that it evaluates a difficult sum, but that it tells us in advance which terms cannot survive. We now return to the Gauss sum over the ordinary prime field and see exactly how it works.
Prime field Case
Fix . Because
, expanding every
and collecting equal powers of
gives
.
We need to find the earliest for which
is nonzero modulo
. This reduces the original problem to sums in the much simpler field
. Indeed, on reducing the multiplicative character, we get
.
For , the expression
is a polynomial of degree
, with highest term
. Suppose first that
. Every term of
is a constant multiple of one of
. All these exponents are strictly between
and
, so none is divisible by
. The power-sum identity makes every one of their sums vanish. Hence
.
Now let . Something changes for the first time: the leading term
cancels the factor
, leaving the constant
. The lower terms still give negative powers of
and still vanish when summed. There are
nonzero values of
, so the constant terms add up to
. This gives
.
Thus the first coefficient that does not vanish modulo occurs precisely at the exponent
. There is one point to check before calling this the first surviving power of
. A coefficient divisible by
does not necessarily vanish as an ordinary integer. But we already know that
contains
factors of
. Therefore the earlier coefficients, which are divisible by
, contribute only terms divisible by at least
. Since
, they cannot change the coefficient of
. We have therefore established the precise congruence
Notice how little we needed to know about the Gauss sum itself. We never tried to evaluate it as a complex number. We asked instead which term in a binomial expansion could escape cancellation. The answer was forced by the exponent of the multiplicative character: the polynomial supplied by the binomial coefficient must reach degree
before a constant term can appear. The factorial in the answer is simply the leading coefficient of that polynomial. For the opening example
, the congruence gives
. Since
, this agrees with the exact calculation
.
To see the next difficulty, replace the prime field by . An exponent
may now have several nonzero base-
digits. For example, when
, the integer
is
: its digit sum is
, not
. Stickelberger’s theorem predicts three factors of
in the corresponding Gauss sum over
. Why should the two digits act independently? Directly expanding all terms is possible, but it hides the reason. We want a way to build a Gauss sum by adding one digit at a time, keeping track of its leading coefficient.
Larger fields
Put . One can construct
using polynomials with coefficients modulo
: choose a monic irreducible polynomial
of degree
and work modulo that polynomial. Every field element then has a unique expression of degree below
. For example,
can be obtained by adjoining to
a symbol
satisfying
. Its nine elements are
, with
. We shall not need to list them individually; the power-sum identity proved above applies to them all. The additive part of our Gauss sum needs a little thought. Over
, the exponent in
is an integer modulo
. An element
of
is not generally such an integer. We therefore need a way to turn
into an element of
while preserving addition. The natural choice is
, called the trace. Because
, raising this expression to the
-th power merely cycles its terms, so
. The elements satisfying
are precisely those of
, and hence the trace really does lie in the prime field. Furthermore, the binomial identity
implies
.
We may now define . It has two properties that will be used repeatedly:
because the trace preserves addition, and
because the trace is unchanged by the
-th power map. The first identity will explain how to multiply Gauss sums; the second will explain why a power of
contributes the same leading term as
.
We also need the multiplicative correspondence for nonzero
. Here is a direct way to construct it without assuming any theory of algebraic number fields. Work first modulo
, using the same polynomial
with its coefficients lifted to ordinary integers. If a nonzero field element
is represented by
, then
. Suppose that we have found a representative
satisfying
. To improve it by one power of
, try
. If
, the binomial theorem reduces the correction problem to
. The coefficient of
is nonzero in the field, so there is exactly one correction. Continuing gives compatible solutions to every precision. The resulting lift is
. It reduces to
, and its
-st power is
. The product
has these same properties for
, so uniqueness of the lift implies
. As a concrete instance, for
, the element
has successive lifts
,
, and
, each satisfying
at the stated precision. The lifting procedure lets us carry out exactly the reductions modulo
and
used in the proof.
To make the last sentence precise, we can work with the ring of compatible polynomial representatives modulo all powers of and adjoin
subject to the one relation
. Expanded out, this relation is
.
It tells us that is
times an invertible element. Reducing modulo
leaves precisely the field
; in particular, an element nonzero after this reduction is invertible, by the usual geometric-series calculation. The polynomial relation also allows cancellation of powers of
(its constant term is
, which is not a zero divisor among our compatible representatives). Thus the familiar rules for counting factors of
can be justified entirely by finite congruence calculations.
We can finally introduce the general Gauss sums. For , put
.
Every exponent has a unique base-
expansion
, with each digit between
and
. Write
for the sum of these digits. We seek not only the number of factors of
in
, but also the coefficient of its first nonzero power. The result is as follows.
Theorem: Let , and let
have base-
digits
. With
and
, one has
In particular, .
The factorials are meaningful in this congruence because no digit reaches , so none of their factorials is divisible by
. Notice that the formula includes the prime-field case: when
, there is just one digit, and we recover
. To prove the general result, however, it will be better not to start a new binomial expansion from scratch. We already know the first Gauss sum, and the trace will let us recover all the Gauss sums with a single
in their base-
expansion. We will then need only a rule for combining them.
Begin with . We need only the constant and linear terms in its expansion in
. The constant term is
, and it is exactly zero: multiplying the index by any fixed
permutes the terms but multiplies the sum by
. For the coefficient of
, replace
by
and expand the trace. The summand becomes
. Every nonconstant power has exponent strictly between
and
, and so vanishes on summation. The constant contributes
. Therefore
.
Now use the fact that raising to the -th power permutes the field and leaves the trace unchanged. In the sum defining
, we can replace
by
and then change the summation variable from
to
. This gives the exact identity
(with character exponents understood modulo
). Applying it repeatedly to
yields
Every exponent therefore gives the same first term. This is the first real indication of why digits matter. For instance, to build
, we may start with the elementary pieces
. There are six pieces, exactly the sum of the digits of
. If multiplying the corresponding Gauss sums simply added their exponents, we would get six factors of
. It does not work quite so simply: a correction factor appears. The important point is that this correction can be calculated, and it behaves well whenever no carry occurs in base
.
Multiply and
. Using
, the product is a double sum over nonzero
whose additive part depends only on
. We should therefore group together all pairs with the same sum
. For
, make the substitution
and
. Multiplicativity of
separates the
-dependent factor
from the
-dependent factor
. Summing over
produces
. Summing over
produces a new finite sum, traditionally called a Jacobi sum:
The product identity holds whenever is not divisible by
. Indeed, we have still to account for pairs with
, or
. Their contribution is a constant multiple of
, which vanishes by the same permutation argument as before. This is why the restriction on
appears. For our proof we shall only need
and
, so the restriction causes no difficulty. The new identity shifts the problem from Gauss sums to Jacobi sums. That is progress because
contains no powers of
at all. To find its residue modulo
, we simply replace each
by
. The question is whether the resulting sum vanishes in the finite field. We can answer it by the same power-sum cancellation used in the prime-field calculation.
Assume and
. Modulo
, the Jacobi sum becomes
. Since
for
, we may replace the negative powers by
and
. Both exponents are positive, so the summand is zero at
and
, and we may include those two values in the sum. Now expand
by the binomial theorem. A typical resulting term involves the power sum
, where
. Only an exponent divisible by
can survive. In our range, the exponent is positive and smaller than
, so the only possibility is
, or
. All other terms vanish. The surviving term carries the binomial coefficient
, and its power sum is
. We have therefore obtained
A sum involving many roots of unity has been reduced to a single binomial coefficient. We can now see why the digits of and
will enter. Binomial coefficients modulo
are governed by the base-
expansions of their upper and lower arguments.
The needed fact is elementary. Recall that in characteristic , the binomial theorem gives
. Iterating,
. If
, it follows that
. To obtain the coefficient of
, where
, we must choose the power
from the
-th factor. Uniqueness of the base-
expansion shows that there is no other way. Comparing coefficients proves the digitwise identity
This is usually called Lucas’s theorem. We have reached it simply by expanding in two ways. To apply it to the Jacobi sum, notice that the base-
digits of
are all
. Therefore, if
, the digits of
are
. The binomial coefficient
consequently reduces to
.
There is one useful simplification. In the finite field, each factor satisfies . When
, both sides are zero, so the identity remains valid. The signs cancel against the factor
from the preceding calculation, because
and its digit sum have the same parity when
is odd (and signs are irrelevant when
). The resulting formula is the one we need:
Here is the meaning of this formula. Suppose we add and
in base
. If the addition produces no carry, then every digit sum
is at most
. Each binomial coefficient in the product is then nonzero modulo
, and hence
is invertible. If a carry occurs, one of the digit sums is at least
, and the corresponding binomial coefficient is zero modulo
. Thus
is divisible by
precisely when a carry appears. The proof of Stickelberger’s theorem needs only the first case: we shall construct
by adding powers of
without carrying.
Proof of Theorem: We already know that for every
. Suppose an exponent
has been constructed, and we want to increase its
-th digit by one. Assume
, so the addition
has no carry, and suppose
. Our Jacobi-sum formula simplifies drastically: all digits of
are zero except the
-th digit, so
.
The denominator is invertible, and the Gauss–Jacobi identity gives
.
Suppose that we already know the leading term . Multiplying it by
and dividing by
yields
This is the whole induction step. Increasing a digit by one adds exactly one factor of and divides the leading coefficient by the new value of that digit. Starting with a single power
, we can build any exponent
by adding the necessary powers of
, one at a time, without ever causing a carry. The successive increments in the
-th position contribute
, giving the product
for that digit. Over all digits, the coefficient becomes
and the exponent of
becomes
. Because every
is nonzero modulo
, this is indeed the first nonzero term. The theorem follows.
A small example makes the induction less formal. Take and
. The exponent
has base-three digits
, meaning
; the digit sum is therefore
. To build it, start with
, add another
to obtain
, and then add
. Neither addition causes a carry. The Jacobi factors are
and
. Since
, the two multiplication identities give
The answer agrees with the theorem: and the product of the digit factorials is
. There is no need to enumerate the eight nonzero elements of
or evaluate the Gauss sum directly. The two Jacobi sums have already told us where its leading term occurs. The same calculation also explains why the valuation is not a steadily increasing function of
: in base three,
has digit sum two, while
has digit sum one. Correspondingly,
but
.
Fractional Parts
There is a further consequence that makes the appearance of digits even more concrete. In the proof, we deliberately avoided carries so that the Jacobi sum would be invertible. What if we now allow a carry? Stickelberger’s theorem lets us answer this without another calculation. Provided and
, the exact identity
implies
. Applying the theorem, this becomes
. The difference between these digit sums counts the carries in the addition. Indeed, every carry replaces
units in one place by one unit in the next. The total sum of the digits decreases by exactly
. If
carries occur, we therefore have
. But
itself contains
factors of
. Thus, for these Jacobi sums, the number of factors of
is exactly the number of carries:
For example, let ,
,
, and
. In base five these are
and
. Their sum is
. There is one carry: the units digits give
, which leaves
and carries
to the next place. The digit sums are
,
, and
. Hence
, so the Jacobi sum has exactly one factor of
. A single carry in ordinary positional notation has become a statement about divisibility of a character sum.
Stickelberger’s theorem is also often written using fractional parts rather than digits. This form initially looks different, but the connection is simple. Normalize the divisibility so that . Since
contains
factors of
, the theorem says
. We now want to express this digit sum without explicitly writing the digits. The trick is to multiply
repeatedly by
, reducing modulo
each time. The reason this works is that multiplication by
cyclically rotates the base-
digits modulo
. For three digits,
becomes
, because
. Multiplying again rotates the digits once more. Add the
successive representatives. Each digit occurs exactly once in each of the
positions, so their total is
. Dividing by
gives the identity
where is the fractional part. To see the formula numerically, take again
. The left side is
. The right side is
. The fractional parts are simply recording the two cyclic rotations of the base-three digits
and
.
Finally, let be a divisor of
, and choose the multiplicative character
, which has order
. For
, the Gauss sum of
is
with
. Substituting this value into the fractional-part identity yields the familiar alternative statement of the theorem:
We have therefore arrived at two descriptions of the same arithmetic quantity. One uses the base- digit sum of the character exponent; the other uses fractional parts obtained by multiplying that exponent by successive powers of
. The equivalence is nothing more than cyclic rotation of digits. The proof of the leading-term formula has a similarly elementary structure. The first binomial expansion shows when cancellation stops in the prime-field sum. Multiplying Gauss sums produces Jacobi sums, and a second binomial expansion reduces their residues to binomial coefficients. The digits then tell us exactly when these coefficients are invertible, allowing us to build any exponent without carries. Thus the same elementary operations that govern positional arithmetic also govern the first nonzero term of a Gauss sum. The further Stickelberger theorem concerning ideal classes in cyclotomic fields is a separate consequence.