Write . We begin with the elementary identity
There is no estimation involved. If the ratio is not 1, the sum of the geometric progression is zero; otherwise every term is 1. In particular, for
, multiplication by any nonzero residue merely permutes the five roots of unity. This suggests a useful way of approaching a more complicated exponential sum. Suppose that we can arrange its terms into blocks of the form
We need not calculate the individual terms in a block. We need only determine whether is zero modulo
. An exponential-sum problem has been replaced by a congruence problem. We shall see how far this elementary idea takes us in evaluating the Gauss Sum
where is a multiplicative character modulo
. The difficulty is that the two factors in the summand behave naturally under different operations:
If we could express the character itself in the form , with
given by a reasonably simple polynomial expression, the sum would become
There would then be just one phase to study. The binomial theorem would tell us how that phase changes when we vary a digit of . But there is a substantial restriction on
. Multiplicativity of the character requires
Why should there be a polynomial with this property? Ordinary polynomials do not turn products into sums. The point is that we are working modulo a power of 5, where certain products become invisible. This is where we begin.
Consider first the units which are congruent to 1 modulo 5. Modulo 25 they are or, more uniformly,
, with
. Their multiplication law is particularly simple:
The term has disappeared. Thus multiplication of these five numbers is exactly addition of their second base-5 digits. For example,
, corresponding to
. We have consequently found a natural character on this subgroup:
The question is how to obtain a similar expression for an arbitrary unit modulo 25. Fermat’s theorem supplies precisely the map we need. For every unit ,
Raising to the fourth power moves an arbitrary unit into the subgroup we have just understood. Since raising to a power respects multiplication, we can compose it with our character on that subgroup. Put
To verify the construction directly, write and
. Both are divisible by 5, and
Therefore , as required.
Here are a few values, with all the exponents reduced modulo 25.
Notice, for instance, that . The character values are fifth roots of unity, since every exponent is divisible by 5. The polynomial is not an arbitrary device for producing oscillation: it is recording the part of multiplication that is invisible modulo 5 but visible modulo 25. We may multiply this character by a character
modulo 5, and we may multiply its exponent by any integer
. In fact, all characters modulo 25 have the form
Indeed, on we have
. Varying
gives every character of the additive group of five digits. Given any character modulo 25, divide it by the one of these exponential characters having the same restriction to that subgroup. The quotient is constant on units having the same residue modulo 5, and hence is a character modulo 5. This explains both pieces of the formula.
Take and
. We wish to evaluate
There are twenty terms. Instead of calculating them individually, group together the five numbers with the same residue modulo 5. Write
Why is this a useful decomposition? For an integer polynomial , the binomial theorem gives
All terms quadratic or higher in contain a factor of 25. The phase, however complicated as a polynomial in
, has become a linear polynomial in the digit
. Thus
The inner sum vanishes unless . Here
where the last step uses . The only solution is
.
It is instructive to see the individual blocks. The following entries are the five values of modulo 25, in order as
.
| Phases modulo 25 | Block sum | ||
|---|---|---|---|
| 1 | 0 | 1, 1, 1, 1, 1 | |
| 2 | 3 | 17, 7, 22, 12, 2 | 0 |
| 3 | 4 | 8, 3, 23, 18, 13 | 0 |
| 4 | 2 | 9, 19, 4, 14, 24 | 0 |
Each of the last three rows visits a translate of the five equally spaced roots of unity. The first row consists of five equal terms. We conclude that
The essential calculation was not the evaluation of a degree-four polynomial at twenty points. It was the solution of the much simpler equation modulo 5. This is the finite arithmetic form of the stationary-phase principle: only those blocks on which the first-order variation of the phase vanishes can contribute.
For the general character modulo 25 the phase is , and the same calculation gives
. Hence the surviving residue is
. If
, we may use the integer
itself to represent it, and
. Therefore
If , every block vanishes. For example,
gives
for the trivial
, and
for the quadratic character modulo 5. The latter sign comes from
, not from a different cancellation calculation.
For an arbitrary prime , the same argument works modulo
, replacing
by
. In particular, for
,
The derivative reduces to independently of the prime. The form of the answer is therefore not peculiar to 5.
We now try to repeat the character construction modulo 125. The natural first attempt is . It fails for a precise reason:
The right-hand side is divisible by 25, but not necessarily by 125. The failure is already visible within the subgroup of units congruent to 1 modulo 5. For example,
The third digit contains the additional product . Simply reading off the digits after subtracting 1 no longer gives an additive coordinate.
We would like to correct the coordinate by a quadratic term. Put
, with
. Modulo 125 we have
The mixed product disappears if we take . Thus the corrected coordinate is
The division by 2 means multiplication by its inverse modulo 125. All omitted terms contain at least three factors divisible by 5. Notice that the correction was not guessed from a familiar series: the mixed term forced it.
Applying this to gives the polynomial
which satisfies . Thus
is a character. For instance,
We have turned a multiplicative relation between integers into an additive relation between polynomial values.
There is a useful way of viewing the construction on the subgroup itself. The map
converts multiplication modulo 125 into addition modulo 25. It is also invertible: its value at minus its value at
is
, and the second factor is a unit. We have not lost information by changing coordinates. We have found a better coordinate in which multiplication has become addition.
With , consider
There are one hundred terms. Separate the highest digit, writing , with
a unit modulo 25 and
. Again the phase is linear in
:
Although now has degree eight, its derivative modulo 5 has not changed. Indeed,
The correction to the character is invisible in this first-order calculation because . Consequently fifteen of the twenty blocks vanish, and the five surviving blocks are represented by
,
. We have
What happens inside the surviving class? Modulo 125 the binomial theorem gives
Substituting into the phase gives
At the previous modulus this variation was invisible. Now the additional digit detects it, and a quadratic polynomial remains. Completing the square gives
Since shifting by 1 permutes its possible values, and
, we obtain
It remains to evaluate a sum of five terms. Put . The sum of the fifth roots gives
, and squaring
gives
. As
, we have
. The squares modulo 5 are
, so
It follows that
Compare this with . In both cases the geometric cancellation first restricts us to
. Modulo 25 the phase is constant there; modulo 125 a quadratic variation survives. The factor
is the contribution of that variation.
For another example take , so the phase is
. Only
survives. Center the class at
, writing
. By multiplicativity in additive coordinates,
More explicitly, this difference is . The linear terms in the full phase cancel, leaving
, and
. The remaining quadratic coefficient modulo 5 is
, which gives
instead. Thus
Why was a good center? And why should the quadratic term remain the decisive term when the modulus is much larger? To answer these questions, we first need a systematic construction of the character.
Logarithm
We have constructed additive coordinates on the units congruent to 1 modulo 5 at two levels of precision:
The natural next question is whether one can continue this process indefinitely. Suppose we wish to work modulo 625. The quadratic correction is no longer sufficient: cubic terms in can now be detected. In fact,
On the other hand,
Thus adding to the coordinate cancels precisely the new error. The first three approximations are
We could continue computing the mixed terms at every level. It is more instructive to determine the coefficients all at once. What we are trying to construct is a formal series
such that
The coefficient of has been normalized to 1, so that the new coordinate agrees with the old one to first order. To determine the other coefficients, compare the coefficient of
on the two sides. Since
, the coefficient on the left is
. The coefficient on the right is 1. Hence
This is the whole explanation for the coefficients of the logarithm. Expanding the reciprocal geometrically gives
Comparing coefficients, with , determines the series uniquely:
It remains to check that the condition obtained by comparing coefficients of is sufficient. Differentiate the proposed identity formally with respect to
. The derivative of its left side is
and the derivative of its right side is the same. The difference is therefore independent of ; putting
shows that it is zero. We have proved the identity as an identity of formal series with rational coefficients.
Of course, is the usual series for
. But we have arrived at it from a finite arithmetic problem. Its role here is to replace the multiplication law
by the addition law
. The denominators and alternating signs are forced by this requirement.
There is no question of convergence in the real numbers. We only use inputs divisible by 5 and only ask for a prescribed number of digits.
Write , and let
denote the exponent of 5 in the positive integer
. Then
contains at least
factors of 5. Since
tends to infinity, only finitely many terms can be nonzero modulo any specified
.
For example, the necessary expressions are
The last term in the final line is important. Although it has degree five, its denominator removes one factor of 5. For example, if , then
, which need not vanish modulo 3125. In general, write
with
; the term is interpreted as
, using the inverse of
modulo the required power of 5.
Thus at each finite precision the series is a polynomial in , with coefficients interpreted by ordinary modular arithmetic. It is not necessary to introduce a new number system. The formal identity for
remains valid after substitution of
divisible by 5 and reduction modulo
: each term in the expansion of
contains at least
factors of 5, so all the terms beyond a sufficiently large index can be discarded. The value also depends only on
. Indeed, if
, write
with
; the additive identity gives
. Fractions with denominator prime to 5 here and below mean modular inverses.
Return to an arbitrary unit . Fermat’s theorem gives
, so we can define
In explicit polynomial form, this means
Every summand is well defined by the preceding rule. Multiplication of two fourth powers, followed by the identity for , gives
Consequently the function
is a multiplicative character modulo . Here
is a character modulo 5 and
is an integer taken modulo
.
We should prove that the formula describes all the characters, rather than merely a convenient family of examples. The subgroup of units congruent to 1 modulo 5 has elements. For
in this subgroup the additive identity implies
Moreover, if is divisible by
but not by
, with
, then
Indeed, for the exponent
is at least
. The logarithmic correction cannot destroy the first nonzero digit. Thus the homomorphism
has trivial kernel on the subgroup
. Its image lies in the additive group of multiples of 5 modulo
, which has the same number of elements. It is therefore an isomorphism onto that group.
We have proved something more informative than the fact that the subgroup is cyclic. We have constructed an explicit additive coordinate on it. In particular,
identifies it with . All characters of this additive group are
. It follows that our exponential characters give every character on the subgroup. As in the case of modulus 25, dividing an arbitrary multiplicative character by a suitable exponential character leaves a character which is constant on residue classes modulo 5. This gives exactly the factor
.
The exponential factor describes how the character varies within each residue class modulo 5. The factor describes how it varies between the four classes. There are
possible choices, as expected.
For , a character is primitive modulo
precisely when
. To see this, evaluate it on
:
A character comes from modulus if and only if it is trivial on this subgroup. So
is exactly the condition for the character to come from a smaller modulus. We shall concentrate on primitive characters.
We now have a formula for the character, but it appears to be increasingly complicated as grows. Why is it a good formula for calculating exponential sums?
The answer is that we do not need to evaluate the polynomial everywhere. We need to understand how its value changes under a small change in . In this respect the logarithmic expression is much simpler than its individual polynomial approximations.
Let be a unit and let
be divisible by 5. Write
By the identity for
, we get the exact finite congruence
There is a simple reason for the factor 4: raising to the fourth power multiplies its additive coordinate by 4. Consequently, if
then
This one formula contains all the binomial expansions we performed separately at moduli 25 and 125. Its first-order coefficient is , and its second-order coefficient is
. The complicated polynomial corrections to the character have combined to produce particularly simple coefficients.
Formally, we would say that the derivative of is
. Here, however, the displayed congruence is the justification; we need no differentiation of functions on a ring of residues.
There is also a direct interpretation in terms of the original character. The additive phase changes by , whereas the multiplicative character changes by
. At sufficiently high precision the latter is
. The two changes cancel exactly to first order when
This is why an additive exponential and a multiplicative character, despite their different origins, can combine into a phase with a distinguished point.
Write , with
a unit modulo
and
. The higher powers in the preceding expansion vanish modulo
, and hence
Also , since the residue modulo 5 is unchanged. The sum over
becomes
It vanishes unless . Thus, for every
,
where the sum on the right is still taken over residues modulo . All other residue classes have cancelled exactly. If
, no unit can survive and the Gauss sum is zero.
Suppose now that , and take the integer
This is stronger than choosing an arbitrary representative of the surviving class: the first-order coefficient vanishes exactly at . We therefore parametrize the class by
The change in the phase is particularly simple:
The linear term has disappeared. The coefficient of the quadratic term is a unit modulo 5. The remaining question is how to sum an exponential whose phase begins with a nonzero quadratic term but also has higher-order terms.
Consider the simpler expression . We want to replace it by a square, not merely approximate it by a square. Factoring gives
If we can take a square root of , the substitution
does exactly what we want. Since
, such a square root exists modulo every power of 5, with the choice
.
We can discover it by successive polynomial corrections. For instance,
This is already the desired square modulo 625. To remove the quartic term at the next precision, use . The new error begins at degree five, so this gives the desired square modulo 3125. Continuing is equivalent to using the binomial series for
. Its coefficients have denominators which are powers of 2, and only finitely many terms are needed at each precision. Alternatively, one can solve for the square root one digit at a time: replacing a provisional root
by
changes its square by
modulo
; since
, the new digit can be chosen uniquely.
There is one more issue: a substitution in a finite sum must be a permutation. In the first approximation,
The second factor is 1 modulo 5 and hence is invertible. The difference has exactly the same divisibility by 5 as . This means that the substitution is injective on the finite set of multiples of 5 modulo
, and hence bijective. The higher corrections have the same property.
More generally, any polynomial map of the form
with coefficients of integral modulo powers of 5 is a permutation modulo every power of 5. Indeed, the difference of its values at
is
for some polynomial
, and the second factor is a unit. This little observation is what makes the change of variable legitimate.
Apply the idea to our phase. Factoring the nonzero quadratic coefficient gives
where
Although some denominators contain powers of 5, every nonconstant coefficient after substituting is divisible by 5: the term originating from
,
, contains at least
factors of 5 after the quadratic term has been factored out. These exponents tend to infinity. Thus, at any finite precision,
is a polynomial congruent to 1 modulo 5.
Take its square root using the finite binomial expansion and set
If and
, then
for a polynomial
with integral modular coefficients. The preceding argument proves that this is a permutation modulo
. Moreover,
There is no approximation error in the resulting sum. At the prescribed finite precision the substitution converts the entire phase into a quadratic phase, while preserving every term with its multiplicity. This is the finite arithmetic version of the familiar fact that a nondegenerate stationary point can be put into quadratic form.
Since , the full sum becomes
The phase depends only on , and every such residue occurs five times. Put
We have established the exact reduction
The logarithm removed the obstruction to representing the character by an additive phase. The square-root substitution removed the obstruction to making that phase exactly quadratic. Both were obtained by correcting an elementary polynomial, one order at a time.
For the particular purpose of evaluating the Gauss sum, we can bypass the square-root substitution altogether. The preceding argument is useful because it explains the underlying local structure of the phase. The following argument exploits that structure more economically.
Write or
, and set
. Split the digits of
into two nearly equal parts:
We have chosen so that
. The phase is therefore exactly linear in the upper block of digits:
The sum over the upper block is
It vanishes unless , in which case it contributes
. We have localized the sum not merely to one residue modulo 5, but to one residue modulo roughly the square root of the modulus.
If , then
. There is just one surviving
modulo
; we may choose
itself as its representative. Consequently
If , then
. There are five surviving residues modulo
, represented by
with
. In the expansion at
, the terms of degree three and higher vanish modulo
: their divisibility is at least
for
. The linear term is already zero. Hence
and we obtain directly
This proof makes the parity distinction particularly transparent. At even precision, the cancellation determines all of the lower block of digits. At odd precision, precisely one digit remains undetermined, and its variation is quadratic. The square root of 5 will come from this single digit.
Quadratic Sums
For completeness, we evaluate the sums that occurred in the first approach. Assume
. For
, write
, with
,
. Then
The inner sum vanishes unless , since
is a unit. Put
in the remaining terms. We get
Every application of the recurrence removes two powers of 5 and supplies one factor of 5. Starting with , this yields
The last sum is the one already encountered modulo 5. If , multiplication by a square root of
permutes the variables and reduces it to
. If
, the same argument reduces it to
. In the notation of the Legendre symbol,
The parity distinction in the preceding section is thus exactly the parity distinction in the quadratic recurrence.
Theorem. Let , and let
be a primitive multiplicative character modulo . Set
. Then, for
,
Here the character in each line is taken modulo the corresponding power of 5. In particular, . For an imprimitive character the sum is zero.
The theorem determines the phase, not just the absolute value. There are two separate pieces: the value of the original summand at the stationary point, and, in the odd case, the sign of a small quadratic Gauss sum. All other contributions cancel in complete blocks.
There is very little in the construction that is specific to 5. For an odd prime , replace
by
, and define
The finite interpretation of the logarithm works exactly as before, using instead of
. The character classification also works:
preserves the first nonzero digit of a multiple of
, and
is a unit. Thus all characters are of the form
with , and for
primitivity is equivalent to
.
Write , and take
. The first-order coefficient of the phase is
, and the expansion at the stationary point is
For the square-root argument applies without change, since
for
. Equivalently, splitting the digits in the middle gives, with
,
The standard quadratic Gauss sum evaluation is for
, and
for
. We have proved the reduction to this classical sum; the general evaluation of its phase is a separate calculation.
There is a small exception at worth noting. The cubic term
is divisible by only
when
is divisible by exactly one power of 3. It can therefore contribute at the same precision as the quadratic term. The square-root substitution above need not apply on the whole residue class modulo 3. The middle-block proof still works for even exponents and for odd exponents
with
, because then
for
. At
, one must keep the cubic term. Here
, and after putting
the surviving phase, modulo 3, is
Hence in that case the formula is . The extra phase results from the cubic term, not from any failure of the block cancellation principle.
The starting point was a problem about two different structures on a ring of residues. The multiplicative character respects products, while the additive exponential respects sums. To combine them we first needed an additive coordinate on a multiplicative group. Raising to the power takes a unit into the subgroup congruent to 1 modulo
; the logarithmic polynomial then converts multiplication within that subgroup into addition.
Once we have this coordinate, the Gauss sum becomes a sum with a single phase. The important feature of the phase is not its degree, which grows with the precision, but its variation under a shift. The finite identity for the logarithm expresses that variation by a simple series in . Orthogonality of the additive characters then turns the exponential-sum problem into the congruence
.
At its solution the linear variation vanishes. For the local phase is exactly quadratic after an invertible change of coordinate. Or, by splitting the digits in the middle, we can arrange that the higher terms disappear automatically. The remaining square root of
, in the odd case, is the contribution of one quadratic sum modulo
.
It is important to distinguish this calculation from the problem of Gauss sums over a finite field . The ring
has nonzero multiples of
, and the subgroup of units congruent to 1 modulo
has order
. It is that subgroup which the logarithm turns into an additive group. In a finite field of order
, the multiplicative group has order
, prime to
. Stickelberger’s theorem for finite-field Gauss sums relates their divisibility by a prime above
to the base-
digits of a character exponent. The lesson is more general: when a sum mixes different algebraic operations, it is often worth looking for a coordinate in which those operations become compatible. The coordinate need not simplify the value of every individual term. It is enough that it simplifies the change in the term when a variable is varied. In our example that simple change, together with exact geometric cancellation, determines the entire sum.