Ramanujan sum
For positive integers and , the complex number
is referred to as a Ramanujan sum, or a Ramanujan trigonometric sum.Since , an equivalent
definition is
where is some reduced residue system mod , meaning anysubset of containing exactly one element of eachinvertible
residue class
mod .
Using a symmetry argument
about roots of unity
, one can show
Applying Möbius inversion, we get
which shows that is a real number, and indeed an integer.In particular . More generally,
Using the Chinese remainder theorem, it is not hard to show thatfor any fixed , the function is multiplicative:
If is invertible mod , then the mapping is a permutation of the invertible residue classes mod . Therefore
Remarks: Trigonometric sums often makeconvenient apparatus in number theory, since anyfunction on a quotient ring of definesa periodic function on itself, and conversely. Foranother example, see Landsberg-Schaar relation.
Some writers use different notation from ours, reversing the rolesof and in the expression .
The name “Ramanujan sum” was introduced by Hardy.