Gauss sums modulo prime powers

Write e_m(t)=\exp(2\pi i t/m) . We begin with the elementary identity

\displaystyle \sum_{t\bmod m}e_m(At)=\begin{cases}m,&m\mid A,\\ 0,&m\nmid A.\end{cases}

There is no estimation involved. If the ratio e_m(A) is not 1, the sum of the geometric progression is zero; otherwise every term is 1. In particular, for m=5 , 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

\displaystyle e_m(B)\sum_{t\bmod m}e_m(At).

We need not calculate the individual terms in a block. We need only determine whether A is zero modulo m . 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

\displaystyle G_N(\chi)=\sum_{\substack{x\bmod 5^N\\5\nmid x}}\chi(x)e_{5^N}(x),

where \chi is a multiplicative character modulo 5^N . The difficulty is that the two factors in the summand behave naturally under different operations:

\displaystyle \chi(xy)=\chi(x)\chi(y),\qquad e_m(x+y)=e_m(x)e_m(y).

If we could express the character itself in the form e_{5^N}(P(x)) , with P given by a reasonably simple polynomial expression, the sum would become

\displaystyle \sum_{5\nmid x}e_{5^N}(x+P(x)).

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 x . But there is a substantial restriction on P . Multiplicativity of the character requires

\displaystyle P(xy)\equiv P(x)+P(y)\pmod{5^N}.

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 \displaystyle 1,6,11,16,21, or, more uniformly, 1+5a , with a\bmod5 . Their multiplication law is particularly simple:

\displaystyle (1+5a)(1+5b)\equiv1+5(a+b)\pmod{25}.

The term 25ab has disappeared. Thus multiplication of these five numbers is exactly addition of their second base-5 digits. For example, 6\cdot11\equiv16\pmod{25} , corresponding to 1+2=3\pmod5 . We have consequently found a natural character on this subgroup:

\displaystyle 1+5a\longmapsto e_5(a).

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 x ,

\displaystyle x^4\equiv1\pmod5.

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

\displaystyle P_2(x)=x^4-1\pmod{25},\qquad \chi(x)=e_{25}(P_2(x)).

To verify the construction directly, write u=x^4-1 and v=y^4-1 . Both are divisible by 5, and

\displaystyle (xy)^4-1=u+v+uv\equiv u+v\pmod{25}.

Therefore P_2(xy)\equiv P_2(x)+P_2(y)\pmod{25} , as required.

Here are a few values, with all the exponents reduced modulo 25.

x 1 2 3 4 6 12
P_2(x) 0 15 5 5 20 10

Notice, for instance, that P_2(12)=P_2(2)+P_2(6)\pmod{25} . 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 \chi_0 modulo 5, and we may multiply its exponent by any integer c . In fact, all characters modulo 25 have the form

\displaystyle \chi(x)=\chi_0(x\bmod5)e_{25}\big(c(x^4-1)\big),\qquad c\bmod5.

Indeed, on x=1+5a we have x^4-1\equiv20a\pmod{25} . Varying c 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 c=1 and \chi_0=1 . We wish to evaluate

\displaystyle G_2=\sum_{\substack{x\bmod25\\ 5\nmid x}}e_{25}(F(x)),\qquad F(x)=x+x^4-1.

There are twenty terms. Instead of calculating them individually, group together the five numbers with the same residue modulo 5. Write

\displaystyle x=r+5t,\qquad r\in{1,2,3,4},\quad t\bmod5.

Why is this a useful decomposition? For an integer polynomial F , the binomial theorem gives

\displaystyle F(r+5t)\equiv F(r)+5tF'(r)\pmod{25}.

All terms quadratic or higher in 5t contain a factor of 25. The phase, however complicated as a polynomial in x , has become a linear polynomial in the digit t . Thus

\displaystyle G_2=\sum_{r=1}^4 e_{25}(F(r))\sum_{t\bmod5}e_5(tF'(r)).

The inner sum vanishes unless F'(r)\equiv0\pmod5 . Here

\displaystyle F'(r)=1+4r^3\equiv1-r^{-1}\pmod5,

where the last step uses r^4\equiv1\pmod5 . The only solution is r=1 .

It is instructive to see the individual blocks. The following entries are the five values of F(r+5t) modulo 25, in order as t=0,1,2,3,4 .

r F'(r)\bmod5 Phases modulo 25Block sum
101, 1, 1, 1, 15e_{25}(1)
2317, 7, 22, 12, 20
348, 3, 23, 18, 130
429, 19, 4, 14, 240

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

\displaystyle G_2=5e_{25}(1).

The essential calculation was not the evaluation of a degree-four polynomial at twenty points. It was the solution of the much simpler equation 1-r^{-1}=0 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 F(x)=x+c(x^4-1) , and the same calculation gives F'(r)\equiv1-c/r\pmod5 . Hence the surviving residue is r=c\pmod5 . If 5\nmid c , we may use the integer c itself to represent it, and F(c)=c^5 . Therefore

\displaystyle G_2(\chi)=5\chi_0(c)e_{25}(c^5).

If 5\mid c , every block vanishes. For example, c=2 gives 5e_{25}(7) for the trivial \chi_0 , and -5e_{25}(7) for the quadratic character modulo 5. The latter sign comes from \chi_0(2)=-1 , not from a different cancellation calculation.

For an arbitrary prime p , the same argument works modulo p^2 , replacing x^4-1 by x^{p-1}-1 . In particular, for p\nmid c ,

\displaystyle \chi(x)=\chi_0(x)e_{p^2}(c(x^{p-1}-1))\quad\Longrightarrow\quad G(\chi)=p\chi_0(c)e_{p^2}(c^p).

The derivative reduces to 1-c/r 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 P(x)=x^4-1 . It fails for a precise reason:

\displaystyle P(xy)-P(x)-P(y)=P(x)P(y).

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,

\displaystyle (1+5a)(1+5b)=1+5(a+b)+25ab.

The third digit contains the additional product ab . Simply reading off the digits after subtracting 1 no longer gives an additive coordinate.

We would like to correct the coordinate u by a quadratic term. Put L(u)=u+Au^2 , with 5\mid u . Modulo 125 we have

\displaystyle \begin{aligned}L(u+v+uv)-L(u)-L(v)&\equiv uv+A\big((u+v)^2-u^2-v^2\big)\\ &=(1+2A)uv.\end{aligned}

The mixed product disappears if we take A=-1/2 . Thus the corrected coordinate is

\displaystyle L(u)=u-\frac{u^2}{2}.

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 u=x^4-1 gives the polynomial

\displaystyle P_3(x)=(x^4-1)-\frac{(x^4-1)^2}{2},

which satisfies P_3(xy)\equiv P_3(x)+P_3(y)\pmod{125} . Thus \chi(x)=e_{125}(P_3(x)) is a character. For instance,

\displaystyle P_3(2)\equiv90,\qquad P_3(3)\equiv5,\qquad P_3(6)\equiv95\pmod{125}.

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

\displaystyle 1+5a\longmapsto a-\frac{5a^2}{2}\pmod{25}

converts multiplication modulo 125 into addition modulo 25. It is also invertible: its value at a minus its value at b is (a-b)(1-5(a+b)/2) , 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 F(x)=x+P_3(x) , consider

\displaystyle G_3=\sum_{\substack{x\bmod125\\5\nmid x}}e_{125}(F(x)).

There are one hundred terms. Separate the highest digit, writing x=r+25t , with r a unit modulo 25 and t\bmod5 . Again the phase is linear in t :

\displaystyle F(r+25t)\equiv F(r)+25tF'(r)\pmod{125}.

Although F now has degree eight, its derivative modulo 5 has not changed. Indeed,

\displaystyle F'(r)=1+4r^3-4r^3(r^4-1)\equiv1-r^{-1}\pmod5.

The correction to the character is invisible in this first-order calculation because 5\mid r^4-1 . Consequently fifteen of the twenty blocks vanish, and the five surviving blocks are represented by r=1+5s , s\bmod5 . We have

\displaystyle G_3=5\sum_{s\bmod5}e_{125}(F(1+5s)).

What happens inside the surviving class? Modulo 125 the binomial theorem gives

\displaystyle (1+5s)^4-1\equiv20s+25s^2,\qquad ((1+5s)^4-1)^2\equiv25s^2.

Substituting into the phase gives

\displaystyle F(1+5s)\equiv1+25\left(s+\frac{s^2}{2}\right)\pmod{125}.

At the previous modulus this variation was invisible. Now the additional digit detects it, and a quadratic polynomial remains. Completing the square gives

\displaystyle s+\frac{s^2}{2}=\frac{(s+1)^2}{2}-\frac12.

Since shifting s by 1 permutes its possible values, and 1/2\equiv3\pmod5 , we obtain

\displaystyle G_3=5e_{125}(51)\sum_{s\bmod5}e_5(3s^2).

It remains to evaluate a sum of five terms. Put z=e_5(1)+e_5(4)=2\cos(2\pi/5) . The sum of the fifth roots gives e_5(2)+e_5(3)=-1-z , and squaring z gives z^2=1-z . As z>0 , we have z=(\sqrt5-1)/2 . The squares modulo 5 are 0,1,4,4,1 , so

\displaystyle \sum_{s\bmod5}e_5(3s^2)=1+2e_5(2)+2e_5(3)=-\sqrt5.

It follows that

\displaystyle G_3=-5\sqrt5,e_{125}(51).

Compare this with G_2=5e_{25}(1) . In both cases the geometric cancellation first restricts us to x\equiv1\pmod5 . Modulo 25 the phase is constant there; modulo 125 a quadratic variation survives. The factor \sqrt5 is the contribution of that variation.

For another example take c=2 , so the phase is x+2P_3(x) . Only x\equiv2\pmod5 survives. Center the class at -8 , writing x=-8(1+5s) . By multiplicativity in additive coordinates,

\displaystyle P_3(-8(1+5s))-P_3(-8)\equiv20s-50s^2\pmod{125}.

More explicitly, this difference is 4(5s-(5s)^2/2) . The linear terms in the full phase cancel, leaving -100s^2 , and F(-8)\equiv32\pmod{125} . The remaining quadratic coefficient modulo 5 is -4\equiv1 , which gives +\sqrt5 instead. Thus

\displaystyle G_3=5\sqrt5 e_{125}(32).

Why was -8 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:

\displaystyle \begin{array}{c|c} \text{modulus}&\text{additive coordinate of }1+u\\ \hline 25&u\\ 125&u-u^2/2 \end{array}

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 u,v can now be detected. In fact,

\displaystyle \begin{aligned} &(u+v+uv)-\frac{(u+v+uv)^2}{2}\ &\quad-\left(u-\frac{u^2}{2}\right)-\left(v-\frac{v^2}{2}\right)\ &\equiv-u^2v-uv^2\pmod{625}. \end{aligned}

On the other hand,

\displaystyle \frac{(u+v)^3-u^3-v^3}{3}=u^2v+uv^2.

Thus adding u^3/3 to the coordinate cancels precisely the new error. The first three approximations are

\displaystyle u,\qquad u-\frac{u^2}{2},\qquad u-\frac{u^2}{2}+\frac{u^3}{3}.

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

\displaystyle L(u)=u+a_2u^2+a_3u^3+\cdots

such that

\displaystyle L(u+v+uv)=L(u)+L(v).

The coefficient of u 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 v on the two sides. Since u+v+uv=u+(1+u)v , the coefficient on the left is (1+u)L'(u) . The coefficient on the right is 1. Hence

\displaystyle (1+u)L'(u)=1.

This is the whole explanation for the coefficients of the logarithm. Expanding the reciprocal geometrically gives

\displaystyle L'(u)=\frac1{1+u}=1-u+u^2-u^3+\cdots.

Comparing coefficients, with L(0)=0 , determines the series uniquely:

\displaystyle  L(u)=\sum_{j\ge1}\frac{(-1)^{j+1}u^j}{j}.

It remains to check that the condition obtained by comparing coefficients of v is sufficient. Differentiate the proposed identity formally with respect to v . The derivative of its left side is

\displaystyle \frac{1+u}{1+u+v+uv}=\frac1{1+v},

and the derivative of its right side is the same. The difference is therefore independent of v ; putting v=0 shows that it is zero. We have proved the identity as an identity of formal series with rational coefficients.

Of course, L(u) is the usual series for \log(1+u) . But we have arrived at it from a finite arithmetic problem. Its role here is to replace the multiplication law u+v+uv by the addition law u+v . 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 u=5t , and let v_5(j) denote the exponent of 5 in the positive integer j . Then u^j/j contains at least j-v_5(j) factors of 5. Since j-v_5(j) tends to infinity, only finitely many terms can be nonzero modulo any specified 5^N .

For example, the necessary expressions are

\displaystyle \begin{aligned} L(u)&\equiv u &&\pmod{25},\\ L(u)&\equiv u-u^2/2 &&\pmod{125},\\ L(u)&\equiv u-u^2/2+u^3/3 &&\pmod{625},\\ L(u)&\equiv u-u^2/2+u^3/3-u^4/4+u^5/5 &&\pmod{3125}. \end{aligned}

The last term in the final line is important. Although it has degree five, its denominator removes one factor of 5. For example, if u=5t , then u^5/5=625t^5 , which need not vanish modulo 3125. In general, write j=5^a j_0 with 5\nmid j_0 ; the term is interpreted as 5^{j-a}t^j/j_0 , using the inverse of j_0 modulo the required power of 5.

Thus at each finite precision the series is a polynomial in t=u/5 , with coefficients interpreted by ordinary modular arithmetic. It is not necessary to introduce a new number system. The formal identity for L remains valid after substitution of u,v divisible by 5 and reduction modulo 5^N : each term in the expansion of (u+v+uv)^j/j contains at least j-v_5(j) factors of 5, so all the terms beyond a sufficiently large index can be discarded. The value also depends only on u\bmod5^N . Indeed, if u'\equiv u\pmod{5^N} , write 1+u'=(1+u)(1+w) with w=(u'-u)/(1+u)\equiv0\pmod{5^N} ; the additive identity gives L(u')-L(u)=L(w)\equiv0\pmod{5^N} . Fractions with denominator prime to 5 here and below mean modular inverses.

Return to an arbitrary unit x . Fermat’s theorem gives 5\mid x^4-1 , so we can define

\displaystyle \Lambda_N(x)=L(x^4-1)\pmod{5^N}.

In explicit polynomial form, this means

\displaystyle \Lambda_N(x)=\sum_{j-v_5(j)<N}\frac{(-1)^{j+1}(x^4-1)^j}{j}\pmod{5^N}.

Every summand is well defined by the preceding rule. Multiplication of two fourth powers, followed by the identity for L , gives

\displaystyle \Lambda_N(xy)\equiv\Lambda_N(x)+\Lambda_N(y)\pmod{5^N}.

Consequently the function

\displaystyle \chi(x)=\chi_0(x\bmod5)e_{5^N}(c\Lambda_N(x))

is a multiplicative character modulo 5^N . Here \chi_0 is a character modulo 5 and c is an integer taken modulo 5^{N-1} .

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 5^{N-1} elements. For x=1+u in this subgroup the additive identity implies

\displaystyle \Lambda_N(1+u)=4L(u)\pmod{5^N}.

Moreover, if u is divisible by 5^a but not by 5^{a+1} , with 1\le a<N , then

\displaystyle L(u)\equiv u\pmod{5^{a+1}}.

Indeed, for j\ge2 the exponent ja-v_5(j) is at least a+1 . The logarithmic correction cannot destroy the first nonzero digit. Thus the homomorphism x\mapsto\Lambda_N(x) has trivial kernel on the subgroup x\equiv1\pmod5 . Its image lies in the additive group of multiples of 5 modulo 5^N , 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,

\displaystyle x\longmapsto\frac{\Lambda_N(x)}5\pmod{5^{N-1}}

identifies it with \mathbb Z/5^{N-1}\mathbb Z . All characters of this additive group are a\mapsto e_{5^{N-1}}(ca) . 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 \chi_0 .

The exponential factor describes how the character varies within each residue class modulo 5. The factor \chi_0 describes how it varies between the four classes. There are 4\cdot5^{N-1} possible choices, as expected.

For N\ge2 , a character is primitive modulo 5^N precisely when 5\nmid c . To see this, evaluate it on 1+5^{N-1}t :

\displaystyle \chi(1+5^{N-1}t)=e_5(4ct).

A character comes from modulus 5^{N-1} if and only if it is trivial on this subgroup. So 5\mid c 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 N 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 x . In this respect the logarithmic expression is much simpler than its individual polynomial approximations.

Let r be a unit and let h be divisible by 5. Write \displaystyle r+h=r(1+h/r). By the identity for L , we get the exact finite congruence

\displaystyle \Lambda_N(r+h)-\Lambda_N(r)=4L(h/r)\pmod{5^N}.

There is a simple reason for the factor 4: raising 1+h/r to the fourth power multiplies its additive coordinate by 4. Consequently, if

\displaystyle F(x)=x+c\Lambda_N(x),

then

\displaystyle \begin{aligned} F(r+h)-F(r)&=h+4cL(h/r) \\ &=\left(1+\frac{4c}{r}\right)h-\frac{2c}{r^2}h^2+\frac{4c}{3r^3}h^3-\cdots\pmod{5^N}. \end{aligned}

This one formula contains all the binomial expansions we performed separately at moduli 25 and 125. Its first-order coefficient is 1+4c/r , and its second-order coefficient is -2c/r^2 . The complicated polynomial corrections to the character have combined to produce particularly simple coefficients.

Formally, we would say that the derivative of L(x^4-1) is 4/x . 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 e_{5^N}(h) , whereas the multiplicative character changes by \chi(1+h/r) . At sufficiently high precision the latter is e_{5^N}(4ch/r) . The two changes cancel exactly to first order when

\displaystyle 1+\frac{4c}{r}=0.

This is why an additive exponential and a multiplicative character, despite their different origins, can combine into a phase with a distinguished point.

Write x=r+5^{N-1}t , with r a unit modulo 5^{N-1} and t\bmod5 . The higher powers in the preceding expansion vanish modulo 5^N , and hence

\displaystyle F(r+5^{N-1}t)\equiv F(r)+5^{N-1}t(1+4c/r)\pmod{5^N}.

Also \chi_0(x)=\chi_0(r) , since the residue modulo 5 is unchanged. The sum over t becomes

\displaystyle \sum_{t\bmod5} e_5\big(t(1+4c/r)\big).

It vanishes unless r\equiv-4c\pmod5 . Thus, for every N\ge2 ,

\displaystyle G_N(\chi)=\sum_{x\equiv-4c\ (\bmod5)}\chi(x)e_{5^N}(x),

where the sum on the right is still taken over residues modulo 5^N . All other residue classes have cancelled exactly. If 5\mid c , no unit can survive and the Gauss sum is zero.

Suppose now that 5\nmid c , and take the integer

\displaystyle x_0=-4c.

This is stronger than choosing an arbitrary representative of the surviving class: the first-order coefficient vanishes exactly at x_0 . We therefore parametrize the class by

\displaystyle x=x_0(1+u),\qquad u\equiv0\pmod5.

The change in the phase is particularly simple:

\displaystyle \begin{aligned} F(x_0(1+u))-F(x_0)&=x_0u+4cL(u)\ &=4c(L(u)-u) \\ &=-2cu^2+\frac{4c}{3}u^3-cu^4+\frac{4c}{5}u^5-\cdots. \end{aligned}

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 u^2+u^3 . We want to replace it by a square, not merely approximate it by a square. Factoring gives

\displaystyle u^2+u^3=u^2(1+u).

If we can take a square root of 1+u , the substitution v=u\sqrt{1+u} does exactly what we want. Since 5\mid u , such a square root exists modulo every power of 5, with the choice \sqrt{1+u}\equiv1\pmod5 .

We can discover it by successive polynomial corrections. For instance,

\displaystyle \left(u+\frac{u^2}{2}\right)^2=u^2+u^3+\frac{u^4}{4}.

This is already the desired square modulo 625. To remove the quartic term at the next precision, use v=u+u^2/2-u^3/8 . The new error begins at degree five, so this gives the desired square modulo 3125. Continuing is equivalent to using the binomial series for (1+u)^{1/2} . 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 b by b+5^jt changes its square by 2b5^jt modulo 5^{j+1} ; since b\equiv1\pmod5 , 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,

\displaystyle \left(u_1+\frac{u_1^2}{2}\right)-\left(u_2+\frac{u_2^2}{2}\right)=(u_1-u_2)\left(1+\frac{u_1+u_2}{2}\right).

The second factor is 1 modulo 5 and hence is invertible. The difference has exactly the same divisibility by 5 as u_1-u_2 . This means that the substitution is injective on the finite set of multiples of 5 modulo 5^N , and hence bijective. The higher corrections have the same property.

More generally, any polynomial map of the form

\displaystyle t\longmapsto t+5R(t)

with coefficients of R integral modulo powers of 5 is a permutation modulo every power of 5. Indeed, the difference of its values at a,b is (a-b)(1+5S(a,b)) for some polynomial S , 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

\displaystyle F(x_0(1+u))-F(x_0)=-2cu^2H(u),

where

\displaystyle H(u)=1-\frac{2u}{3}+\frac{u^2}{2}-\frac{2u^3}{5}+\cdots.

Although some denominators contain powers of 5, every nonconstant coefficient after substituting u=5t is divisible by 5: the term originating from u^j/j , j\ge3 , contains at least j-2-v_5(j)\ge1 factors of 5 after the quadratic term has been factored out. These exponents tend to infinity. Thus, at any finite precision, H(5t) is a polynomial congruent to 1 modulo 5.

Take its square root using the finite binomial expansion and set

\displaystyle v=u\sqrt{H(u)}.

If u=5t and v=5s , then s=t+5R(t) for a polynomial R with integral modular coefficients. The preceding argument proves that this is a permutation modulo 5^{N-1} . Moreover,

\displaystyle F(x_0(1+u))-F(x_0)\equiv-2cv^2\pmod{5^N}.

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 v=5s , the full sum becomes

\displaystyle G_N(\chi)=\chi(x_0)e_{5^N}(x_0)\sum_{s\bmod5^{N-1}}e_{5^N}(-50cs^2).

The phase depends only on s\bmod5^{N-2} , and every such residue occurs five times. Put

\displaystyle Q_n(A)=\sum_{t\bmod5^n}e_{5^n}(At^2),\qquad Q_0(A)=1.

We have established the exact reduction

\displaystyle G_N(\chi)=5\chi(x_0)e_{5^N}(x_0)Q_{N-2}(-2c),\qquad x_0=-4c.

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 N=2k or N=2k+1 , and set h=N-k . Split the digits of x into two nearly equal parts:

\displaystyle x=r+5^h t,\qquad r\bmod5^h,\quad t\bmod5^k.

We have chosen h so that 2h\ge N . The phase is therefore exactly linear in the upper block of digits:

\displaystyle F(r+5^ht)\equiv F(r)+5^ht(1+4c/r)\pmod{5^N}.

The sum over the upper block is

\displaystyle \sum_{t\bmod5^k}e_{5^k}(t(1+4c/r)).

It vanishes unless r\equiv x_0\pmod{5^k} , in which case it contributes 5^k . 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 N=2k , then h=k . There is just one surviving r modulo 5^k ; we may choose x_0 itself as its representative. Consequently

\displaystyle G_{2k}(\chi)=5^k\chi(x_0)e_{5^{2k}}(x_0).

If N=2k+1 , then h=k+1 . There are five surviving residues modulo 5^{k+1} , represented by x_0(1+5^k s) with s\bmod5 . In the expansion at x_0 , the terms of degree three and higher vanish modulo 5^{2k+1} : their divisibility is at least jk-v_5(j)\ge2k+1 for j\ge3 . The linear term is already zero. Hence

\displaystyle F(x_0(1+5^ks))\equiv F(x_0)-2c5^{2k}s^2\pmod{5^{2k+1}},

and we obtain directly

\displaystyle G_{2k+1}(\chi)=5^k\chi(x_0)e_{5^{2k+1}}(x_0)\sum_{s\bmod5}e_5(-2cs^2).

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 Q_n(A) that occurred in the first approach. Assume 5\nmid A . For n\ge2 , write t=r+5^{n-1}s , with r\bmod5^{n-1} , s\bmod5 . Then

\displaystyle Q_n(A)=\sum_{r\bmod5^{n-1}}e_{5^n}(Ar^2)\sum_{s\bmod5}e_5(2Ars).

The inner sum vanishes unless 5\mid r , since 2A is a unit. Put r=5w in the remaining terms. We get

\displaystyle Q_n(A)=5Q_{n-2}(A).

Every application of the recurrence removes two powers of 5 and supplies one factor of 5. Starting with Q_0(A)=1 , this yields

\displaystyle Q_{2j}(A)=5^j,\qquad Q_{2j+1}(A)=5^j Q_1(A).

The last sum is the one already encountered modulo 5. If A\equiv1,4\pmod5 , multiplication by a square root of A permutes the variables and reduces it to Q_1(1)=\sqrt5 . If A\equiv2,3\pmod5 , the same argument reduces it to Q_1(3)=-\sqrt5 . In the notation of the Legendre symbol,

\displaystyle Q_1(A)=\left(\frac{A}{5}\right)\sqrt5.

The parity distinction in the preceding section is thus exactly the parity distinction in the quadratic recurrence.

Theorem. Let N\ge2 , and let

\displaystyle \chi(x)=\chi_0(x\bmod5)e_{5^N}(c\Lambda_N(x)),\qquad 5\nmid c,

be a primitive multiplicative character modulo 5^N . Set x_0=-4c . Then, for k\ge1 ,

\displaystyle \boxed{\begin{aligned} G_{2k}(\chi)&=5^k\chi(x_0)e_{5^{2k}}(x_0),\\ G_{2k+1}(\chi)&=5^k\sqrt5\left(\frac{-2c}{5}\right)\chi(x_0)e_{5^{2k+1}}(x_0). \end{aligned}}

Here the character in each line is taken modulo the corresponding power of 5. In particular, |G_N(\chi)|=5^{N/2} . 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 p , replace x^4-1 by x^{p-1}-1 , and define

\displaystyle \Lambda_{p,N}(x)=L(x^{p-1}-1)\pmod{p^N}.

The finite interpretation of the logarithm works exactly as before, using j-v_p(j) instead of j-v_5(j) . The character classification also works: L(u) preserves the first nonzero digit of a multiple of p , and p-1 is a unit. Thus all characters are of the form

\displaystyle \chi(x)=\chi_0(x\bmod p)e_{p^N}(c\Lambda_{p,N}(x)),

with c\bmod p^{N-1} , and for N\ge2 primitivity is equivalent to p\nmid c .

Write a=(p-1)c , and take x_0=-a . The first-order coefficient of the phase is 1+a/x , and the expansion at the stationary point is

\displaystyle F(x_0(1+u))-F(x_0)=a(L(u)-u)=-\frac{a}{2}u^2+\frac{a}{3}u^3-\cdots.

For p\ge5 the square-root argument applies without change, since j-2-v_p(j)\ge1 for j\ge3 . Equivalently, splitting the digits in the middle gives, with Q_{p,1}(A)=\sum_{s\bmod p}e_p(As^2) ,

\displaystyle \begin{aligned} G_{2k}(\chi)&=p^k\chi(x_0)e_{p^{2k}}(x_0),\ G_{2k+1}(\chi)&=p^k\chi(x_0)e_{p^{2k+1}}(x_0)Q_{p,1}(-a/2). \end{aligned}

The standard quadratic Gauss sum evaluation is Q_{p,1}(A)=(A/p)\sqrt p for p\equiv1\pmod4 , and Q_{p,1}(A)=i(A/p)\sqrt p for p\equiv3\pmod4 . 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 p=3 worth noting. The cubic term u^3/3 is divisible by only 3^2 when u 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 N=2k+1 with k\ge2 , because then jk-v_3(j)\ge2k+1 for j\ge3 . At N=3 , one must keep the cubic term. Here a=2c , and after putting u=3s the surviving phase, modulo 3, is

\displaystyle -cs^2+2cs^3\equiv-c(s-1)^2+c\pmod3.

Hence in that case the formula is G_3(\chi)=3\chi(x_0)e_{27}(x_0)e_3(c)Q_{3,1}(-c) . 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 p-1 takes a unit into the subgroup congruent to 1 modulo p ; 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 h/x . Orthogonality of the additive characters then turns the exponential-sum problem into the congruence 1+(p-1)c/x=0 .

At its solution the linear variation vanishes. For p\ge5 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 p , in the odd case, is the contribution of one quadratic sum modulo p .

It is important to distinguish this calculation from the problem of Gauss sums over a finite field \mathbb F_{p^f} . The ring \mathbb Z/p^N\mathbb Z has nonzero multiples of p , and the subgroup of units congruent to 1 modulo p has order p^{N-1} . It is that subgroup which the logarithm turns into an additive group. In a finite field of order p^f , the multiplicative group has order p^f-1 , prime to p . Stickelberger’s theorem for finite-field Gauss sums relates their divisibility by a prime above p to the base-p 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.

Leave a Reply