Pólya–Vinogradov inequality
= Pólya–Vinogradov inequality
{c}
{title2=$|\sum_{M<n\le M+N}\chi(n)|\ll\sqrt q\log q$}
For a primitive nonprincipal <Dirichlet character> modulo $q$, finite <Fourier inversion theorem> and the primitive Gauss magnitude give this bound uniformly in the interval. Bound the exponential sums by $C\|a/q\|^{-1}$ and sum the resulting <harmonic series>. The general Gauss identity follows from the prime-power identity by the <Chinese remainder theorem>.