Ramanujan’s sum

Jordan Bell
April 7, 2014

1 Definition

Let q and l be positive integers. Define

cq(l)=gcd(h,q)=11jqe-2πihl/q=gcd(h,q)=11hqe2πihl/q=gcd(h,q)=11hqcos2πhlq.

cq(l) is called Ramanujan’s sum.

2 Fourier transform on /q and the principal Dirichlet character modulo q

For F:/q, the Fourier transform F^:/q of F is defined by

F^(k)=1qj/qF(j)e-2πijk/q,k/q.

Define χ:/q by χ(j)=1 if gcd(j,q)=1 and χ(j)=0 if gcd(j,q)>1. χ is called the principal Dirichlet character modulo q. The Fourier transform of χ is

χ^(k)=1qj/qχ(j)e-2πijk/q=1qgcd(j,q)=11jqe-2πijk/q.

Therefore we can write Ramanujan’s sum cq(l) as cq(l)=qχ^(l), thus cq=qχ^.

The above gives us an expression for cq(l) as a multiple of the Fourier transform of the principal Dirichlet character modulo q. cq:/q, and we can write the Fourier transform of cq as

cq^(k) = 1qj/qcq(j)e-2πijk/q
= j/qχ^(j)e-2πijk/q.

3 Dirichlet series

Here I am following Titchmarsh in §1.5 of his The theory of the Riemann zeta-function, second ed. Let μ be the Möbius function. The Möbius inversion formula states that if

g(q)=d|qf(d)

then

f(q)=d|qμ(qd)g(d).

(d|q is a sum over the positive divisors of q.)

Define

ηq(k)=j/qe-2πijk/q.

We have (this is not supposed to be obvious)

ηq(k)=d|qcd(k).

Therefore by the Möbius inversion formula we have

cq(k)=d|qμ(qd)ηd(k).

(Hence |cq(k)|d|kd=σ1(k), where σa(k)=d|kda.)

If q|k then ηq(k)=q, and if qk then ηq(k)=0. (To show the second statement: multiply the sum by e-2πik/q, and check that this product is equal to the original sum. Since we multplied the sum by a number that is not 1, the sum must be equal to 0.) Thus we can express the Möbius function using Ramanujan’s sum as μ(q)=cq(1).

Because ηd(k)=d if k|d and ηd(k)=0 if kd, we have

cq(k)=d|q,d|kμ(qd)d=dr=q,d|kμ(r)d.

So

cq(k)qs=dr=q,d|k1qsμ(r)d=dr=q,d|k1dsrsμ(r)d=dr=q,d|k1rsμ(r)d1-s.

Therefore

q=1cq(k)qs=q=1dr=q,d|k1rsμ(r)d1-s=r=1d|k1rsμ(r)d1-s=r=11rsμ(r)d|kd1-s.

Then

q=1cq(k)qs=σ1-s(k)r=11rsμ(r)=σ1-s(k)1ζ(s);

here we used that

1ζ(s)=n=1μ(n)ns.

On the other hand, if rather than sum over q we sum over k, then we obtain

k=1cq(k)ks = k=11ksd|q,d|kμ(qd)d
= d|qm=11(md)sμ(qd)d
= d|qm=11ms1dsμ(qd)d
= m=11msd|q1dsμ(qd)d
= ζ(s)d|qμ(qd)d1-s.