# Character sum

In mathematics, a character sum is a sum

${\displaystyle \Sigma \chi (n)\,}$

of values of a Dirichlet character χ modulo N, taken over a given range of values of n. Such sums are basic in a number of questions, for example in the distribution of quadratic residues, and in particular in the classical question of finding an upper bound for the least quadratic non-residue modulo N. Character sums are often closely linked to exponential sums by the Gauss sums (this is like a finite Mellin transform).

Assume χ is a nonprincipal Dirichlet character to the modulus N.

## Sums over ranges

The sum taken over all residue classes mod N is then zero. This means that the cases of interest will be sums ${\displaystyle \Sigma }$ over relatively short ranges, of length R < N say,

${\displaystyle M\leq n

A fundamental improvement on the trivial estimate ${\displaystyle \Sigma =O(N)}$ is the Pólya–Vinogradov inequality (George Pólya, I. M. Vinogradov, independently in 1918), stating in big O notation that

${\displaystyle \Sigma =O({\sqrt {N}}\log N).}$

Assuming the generalized Riemann hypothesis, Hugh Montgomery and R. C. Vaughan have shown[1] that there is the further improvement

${\displaystyle \Sigma =O({\sqrt {N}}\log \log N).}$

## Summing polynomials

Another significant type of character sum is that formed by

${\displaystyle \Sigma \chi (F(n))\,}$

for some function F, generally a polynomial. A classical result is the case of a quadratic, for example,

${\displaystyle F(n)=n(n+1)\,}$

and χ a Legendre symbol. Here the sum can be evaluated (as −1), a result that is connected to the local zeta-function of a conic section.

More generally, such sums for the Jacobi symbol relate to local zeta-functions of elliptic curves and hyperelliptic curves; this means that by means of André Weil's results, for N = p a prime number, there are non-trivial bounds

${\displaystyle O({\sqrt {p}}).}$

The constant implicit in the notation is linear in the genus of the curve in question, and so (Legendre symbol or hyperelliptic case) can be taken as the degree of F. (More general results, for other values of N, can be obtained starting from there.)

Weil's results also led to the Burgess bound,[2] applying to give non-trivial results beyond Pólya–Vinogradov, for R a power of N greater than 1/4.

Assume the modulus N is a prime.

{\displaystyle {\begin{aligned}\Sigma &\ll p^{1/2}\log p,\\[6pt]\Sigma &\ll 2R^{1/2}p^{3/16}\log p,\\[6pt]\Sigma &\ll rR^{1-1/r}p^{(r+1)/4r^{2}}(\log p)^{1/2r}\end{aligned}}}

for any integer r ≥ 3.[3]

## Notes

1. ^ Montgomery and Vaughan (1977)
2. ^ Burgess (1957)
3. ^ Montgomery and Vaughan (2007), p.315