Reduced residues modulo a prime
ProvedVino.filter_coprime_primeanalytic-number-theorycircle-methodnumber-theoryramanujan-sums
If is prime, the reduced residues below are exactly the nonzero residues:
This is what lets a complete exponential sum modulo be converted into a Ramanujan sum by removing a single term.
Preamble
import Definitions.Def_Vino_ramanujan import Mathlib.Data.Nat.Totient open Finset
Formal statement
namespace Vino
theorem filter_coprime_prime {p : ℕ} (hp : p.Prime) :
(Finset.range p).filter (fun a => Nat.Coprime a p) = (Finset.range p).erase 0 := by sorry
end VinoSource
R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge Tracts in Mathematics 125, Cambridge University Press, 1997, Section 2.6 and Chapter 3; G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008, Section 16.6 (Ramanujan's sum c_q(n)).