Ramanujan's sum

From testwiki
Revision as of 06:59, 16 February 2025 by imported>Hdt80bro (Ramanujan expansions: Fixed grammar)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Distinguish

In number theory, Ramanujan's sum, usually denoted cq(n), is a function of two positive integer variables q and n defined by the formula

cq(n)=1aq(a,q)=1e2πiaqn,

where (a, q) = 1 means that a only takes on values coprime to q.

Srinivasa Ramanujan mentioned the sums in a 1918 paper.[1] In addition to the expansions discussed in this article, Ramanujan's sums are used in the proof of Vinogradov's theorem that every sufficiently large odd number is the sum of three primes.[2]

Notation

For integers a and b, ab is read "a divides b" and means that there is an integer c such that ba=c. Similarly, ab is read "a does not divide b". The summation symbol

dmf(d)

means that d goes through all the positive divisors of m, e.g.

d12f(d)=f(1)+f(2)+f(3)+f(4)+f(6)+f(12).

(a,b) is the greatest common divisor,

ϕ(n) is Euler's totient function,

μ(n) is the Möbius function, and

ζ(s) is the Riemann zeta function.

Formulas for cq(n)

Trigonometry

These formulas come from the definition, Euler's formula eix=cosx+isinx, and elementary trigonometric identities.

c1(n)=1c2(n)=cosnπc3(n)=2cos23nπc4(n)=2cos12nπc5(n)=2cos25nπ+2cos45nπc6(n)=2cos13nπc7(n)=2cos27nπ+2cos47nπ+2cos67nπc8(n)=2cos14nπ+2cos34nπc9(n)=2cos29nπ+2cos49nπ+2cos89nπc10(n)=2cos15nπ+2cos35nπ

and so on (Template:OEIS2C, Template:OEIS2C, Template:OEIS2C, Template:OEIS2C,.., Template:OEIS2C,...). cq(n) is always an integer.

Kluyver

Let ζq=e2πiq. Then Template:Math is a root of the equation Template:Math. Each of its powers,

ζq,ζq2,,ζqq1,ζqq=ζq0=1

is also a root. Therefore, since there are q of them, they are all of the roots. The numbers ζqn where 1 ≤ nq are called the q-th roots of unity. Template:Math is called a primitive q-th root of unity because the smallest value of n that makes ζqn=1 is q. The other primitive q-th roots of unity are the numbers ζqa where (a, q) = 1. Therefore, there are φ(q) primitive q-th roots of unity.

Thus, the Ramanujan sum cq(n) is the sum of the n-th powers of the primitive q-th roots of unity.

It is a fact[3] that the powers of Template:Math are precisely the primitive roots for all the divisors of q.

Example. Let q = 12. Then

ζ12,ζ125,ζ127, and ζ1211 are the primitive twelfth roots of unity,
ζ122 and ζ1210 are the primitive sixth roots of unity,
ζ123=i and ζ129=i are the primitive fourth roots of unity,
ζ124 and ζ128 are the primitive third roots of unity,
ζ126=1 is the primitive second root of unity, and
ζ1212=1 is the primitive first root of unity.

Therefore, if

ηq(n)=k=1qζqkn

is the sum of the n-th powers of all the roots, primitive and imprimitive,

ηq(n)=dqcd(n),

and by Möbius inversion,

cq(n)=dqμ(qd)ηd(n).

It follows from the identity xq − 1 = (x − 1)(xq−1 + xq−2 + ... + x + 1) that

ηq(n)={0qnqqn

and this leads to the formula

cq(n)=d(q,n)μ(qd)d,

published by Kluyver in 1906.[4]

This shows that cq(n) is always an integer. Compare it with the formula

ϕ(q)=dqμ(qd)d.

von Sterneck

It is easily shown from the definition that cq(n) is multiplicative when considered as a function of q for a fixed value of n:[5] i.e.

If (q,r)=1 then cq(n)cr(n)=cqr(n).

From the definition (or Kluyver's formula) it is straightforward to prove that, if p is a prime number,

cp(n)={1 if pnϕ(p) if pn,

and if pk is a prime power where k > 1,

cpk(n)={0 if pk1npk1 if pk1n and pknϕ(pk) if pkn.

This result and the multiplicative property can be used to prove

cq(n)=μ(q(q,n))ϕ(q)ϕ(q(q,n)).

This is called von Sterneck's arithmetic function.[6] The equivalence of it and Ramanujan's sum is due to Hölder.[7][8]

Other properties of cq(n)

For all positive integers q,

c1(q)=1cq(1)=μ(q)cq(q)=ϕ(q)cq(m)=cq(n)for mn(modq)

For a fixed value of q the absolute value of the sequence {cq(1),cq(2),} is bounded by φ(q), and for a fixed value of n the absolute value of the sequence {c1(n),c2(n),} is bounded by n.

If q > 1

n=aa+q1cq(n)=0.

Let m1, m2 > 0, m = lcm(m1, m2). Then[9] Ramanujan's sums satisfy an orthogonality property:

1mk=1mcm1(k)cm2(k)={ϕ(m)m1=m2=m,0otherwise

Let n, k > 0. Then[10]

gcd(d,k)=1dndμ(nd)ϕ(d)=μ(n)cn(k)ϕ(n),

known as the Brauer - Rademacher identity.

If n > 0 and a is any integer, we also have[11]

gcd(k,n)=11kncn(ka)=μ(n)cn(a),

due to Cohen.

Table

Ramanujan sum cs(n)
n
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
s 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1
3 −1 −1 2 −1 −1 2 −1 −1 2 −1 −1 2 −1 −1 2 −1 −1 2 −1 −1 2 −1 −1 2 −1 −1 2 −1 −1 2
4 0 −2 0 2 0 −2 0 2 0 −2 0 2 0 −2 0 2 0 −2 0 2 0 −2 0 2 0 −2 0 2 0 −2
5 −1 −1 −1 −1 4 −1 −1 −1 −1 4 −1 −1 −1 −1 4 −1 −1 −1 −1 4 −1 −1 −1 −1 4 −1 −1 −1 −1 4
6 1 −1 −2 −1 1 2 1 −1 −2 −1 1 2 1 −1 −2 −1 1 2 1 −1 −2 −1 1 2 1 −1 −2 −1 1 2
7 −1 −1 −1 −1 −1 −1 6 −1 −1 −1 −1 −1 −1 6 −1 −1 −1 −1 −1 −1 6 −1 −1 −1 −1 −1 −1 6 −1 −1
8 0 0 0 −4 0 0 0 4 0 0 0 −4 0 0 0 4 0 0 0 −4 0 0 0 4 0 0 0 −4 0 0
9 0 0 −3 0 0 −3 0 0 6 0 0 −3 0 0 −3 0 0 6 0 0 −3 0 0 −3 0 0 6 0 0 −3
10 1 −1 1 −1 −4 −1 1 −1 1 4 1 −1 1 −1 −4 −1 1 −1 1 4 1 −1 1 −1 −4 −1 1 −1 1 4
11 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 10 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 10 −1 −1 −1 −1 −1 −1 −1 −1
12 0 2 0 −2 0 −4 0 −2 0 2 0 4 0 2 0 −2 0 −4 0 −2 0 2 0 4 0 2 0 −2 0 −4
13 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 12 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 12 −1 −1 −1 −1
14 1 −1 1 −1 1 −1 −6 −1 1 −1 1 −1 1 6 1 −1 1 −1 1 −1 −6 −1 1 −1 1 −1 1 6 1 −1
15 1 1 −2 1 −4 −2 1 1 −2 −4 1 −2 1 1 8 1 1 −2 1 −4 −2 1 1 −2 −4 1 −2 1 1 8
16 0 0 0 0 0 0 0 −8 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 −8 0 0 0 0 0 0
17 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 16 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1
18 0 0 3 0 0 −3 0 0 −6 0 0 −3 0 0 3 0 0 6 0 0 3 0 0 −3 0 0 −6 0 0 −3
19 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 18 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1
20 0 2 0 −2 0 2 0 −2 0 −8 0 −2 0 2 0 −2 0 2 0 8 0 2 0 −2 0 2 0 −2 0 −8
21 1 1 −2 1 1 −2 −6 1 −2 1 1 −2 1 −6 −2 1 1 −2 1 1 12 1 1 −2 1 1 −2 −6 1 −2
22 1 −1 1 −1 1 −1 1 −1 1 −1 −10 −1 1 −1 1 −1 1 −1 1 −1 1 10 1 −1 1 −1 1 −1 1 −1
23 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 22 −1 −1 −1 −1 −1 −1 −1
24 0 0 0 4 0 0 0 −4 0 0 0 −8 0 0 0 −4 0 0 0 4 0 0 0 8 0 0 0 4 0 0
25 0 0 0 0 −5 0 0 0 0 −5 0 0 0 0 −5 0 0 0 0 −5 0 0 0 0 20 0 0 0 0 −5
26 1 −1 1 −1 1 −1 1 −1 1 −1 1 −1 −12 −1 1 −1 1 −1 1 −1 1 −1 1 −1 1 12 1 −1 1 −1
27 0 0 0 0 0 0 0 0 −9 0 0 0 0 0 0 0 0 −9 0 0 0 0 0 0 0 0 18 0 0 0
28 0 2 0 −2 0 2 0 −2 0 2 0 −2 0 −12 0 −2 0 2 0 −2 0 2 0 −2 0 2 0 12 0 2
29 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 28 −1
30 −1 1 2 1 4 −2 −1 1 2 −4 −1 −2 −1 1 −8 1 −1 −2 −1 −4 2 1 −1 −2 4 1 2 1 −1 8

Ramanujan expansions

If Template:Math is an arithmetic function (i.e. a complex-valued function of the integers or natural numbers), then a convergent infinite series of the form:

f(n)=q=1aqcq(n)

or of the form:

f(q)=n=1ancq(n)

where the Template:Math, is called a Ramanujan expansion[12] of Template:Math.

Ramanujan found expansions of some of the well-known functions of number theory. All of these results are proved in an "elementary" manner (i.e. only using formal manipulations of series and the simplest results about convergence).[13][14][15]

The expansion of the zero function depends on a result from the analytic theory of prime numbers, namely that the series

n=1μ(n)n

converges to 0, and the results for Template:Math and Template:Math depend on theorems in an earlier paper.[16]

All the formulas in this section are from Ramanujan's 1918 paper.

Generating functions

The generating functions of the Ramanujan sums are Dirichlet series:

ζ(s)δqμ(qδ)δ1s=n=1cq(n)ns

is a generating function for the sequence Template:Math, Template:Math, ... where Template:Math is kept constant, and

σr1(n)nr1ζ(r)=q=1cq(n)qr

is a generating function for the sequence Template:Math, Template:Math, ... where Template:Math is kept constant.

There is also the double Dirichlet series

ζ(s)ζ(r+s1)ζ(r)=q=1n=1cq(n)qrns.

The polynomial with Ramanujan sum's as coefficients can be expressed with cyclotomic polynomial[17]

n=1qcq(n)xn1=(xq1)Φq(x)Φq(x)=Φq(x)dqdqΦd(x)

σk(n)

Template:Math is the divisor function (i.e. the sum of the Template:Math-th powers of the divisors of Template:Mvar, including 1 and Template:Mvar). Template:Math, the number of divisors of Template:Mvar, is usually written Template:Math and Template:Math, the sum of the divisors of Template:Mvar, is usually written Template:Math.

If Template:Math,

σs(n)=nsζ(s+1)(c1(n)1s+1+c2(n)2s+1+c3(n)3s+1+)σs(n)=ζ(s+1)(c1(n)1s+1+c2(n)2s+1+c3(n)3s+1+)

Setting Template:Math gives

σ(n)=π26n(c1(n)1+c2(n)4+c3(n)9+).

If the Riemann hypothesis is true, and 12<s<12,

σs(n)=ζ(1s)(c1(n)11s+c2(n)21s+c3(n)31s+)=nsζ(1+s)(c1(n)11+s+c2(n)21+s+c3(n)31+s+).

d(n)

Template:Math is the number of divisors of Template:Math, including 1 and Template:Math itself.

d(n)=log11c1(n)+log22c2(n)+log33c3(n)+d(n)(2γ+logn)=log211c1(n)+log222c2(n)+log233c3(n)+

where Template:Math is the Euler–Mascheroni constant.

φ(n)

Euler's totient function Template:Math is the number of positive integers less than Template:Mvar and coprime to Template:Mvar. Ramanujan defines a generalization of it, if

n=p1a1p2a2p3a3

is the prime factorization of Template:Math, and Template:Math is a complex number, let

φs(n)=ns(1p1s)(1p2s)(1p3s),

so that Template:Math is Euler's function.[18]

He proves that

μ(n)nsφs(n)ζ(s)=ν=1μ(nν)νs

and uses this to show that

φs(n)ζ(s+1)ns=μ(1)c1(n)φs+1(1)+μ(2)c2(n)φs+1(2)+μ(3)c3(n)φs+1(3)+.

Letting Template:Math,

φ(n)=6π2n(c1(n)c2(n)221c3(n)321c5(n)521+c6(n)(221)(321)c7(n)721+c10(n)(221)(521)).

Note that the constant is the inverse[19] of the one in the formula for Template:Math.

Λ(n)

Von Mangoldt's function Template:Math unless Template:Math is a power of a prime number, in which case it is the natural logarithm Template:Math.

Λ(m)=cm(1)+12cm(2)+13cm(3)+

Zero

For all Template:Math,

0=c1(n)+12c2(n)+13c3(n)+.

This is equivalent to the prime number theorem.[20][21]

r2s(n) (sums of squares)

Template:Math is the number of ways of representing Template:Math as the sum of Template:Math squares, counting different orders and signs as different (e.g., Template:Math, as Template:Math.)

Ramanujan defines a function Template:Math and references a paper[22] in which he proved that Template:Math for Template:Math. For Template:Math he shows that Template:Math is a good approximation to Template:Math.

Template:Math has a special formula:

δ2(n)=π(c1(n)1c3(n)3+c5(n)5).

In the following formulas the signs repeat with a period of 4.

δ2s(n)=πsns1(s1)!(c1(n)1s+c4(n)2s+c3(n)3s+c8(n)4s+c5(n)5s+c12(n)6s+c7(n)7s+c16(n)8s+)s0(mod4)δ2s(n)=πsns1(s1)!(c1(n)1sc4(n)2s+c3(n)3sc8(n)4s+c5(n)5sc12(n)6s+c7(n)7sc16(n)8s+)s2(mod4)δ2s(n)=πsns1(s1)!(c1(n)1s+c4(n)2sc3(n)3s+c8(n)4s+c5(n)5s+c12(n)6sc7(n)7s+c16(n)8s+)s1(mod4) and s>1δ2s(n)=πsns1(s1)!(c1(n)1sc4(n)2sc3(n)3sc8(n)4s+c5(n)5sc12(n)6sc7(n)7sc16(n)8s+)s3(mod4)

and therefore,

r2(n)=π(c1(n)1c3(n)3+c5(n)5c7(n)7+c11(n)11c13(n)13+c15(n)15c17(n)17+)r4(n)=π2n(c1(n)1c4(n)4+c3(n)9c8(n)16+c5(n)25c12(n)36+c7(n)49c16(n)64+)r6(n)=π3n22(c1(n)1c4(n)8c3(n)27c8(n)64+c5(n)125c12(n)216c7(n)343c16(n)512+)r8(n)=π4n36(c1(n)1+c4(n)16+c3(n)81+c8(n)256+c5(n)625+c12(n)1296+c7(n)2401+c16(n)4096+)

r2s(n) (sums of triangles)

r'2s(n) is the number of ways Template:Math can be represented as the sum of Template:Math triangular numbers (i.e. the numbers 1, 3 = 1 + 2, 6 = 1 + 2 + 3, 10 = 1 + 2 + 3 + 4, 15, ...; the Template:Math-th triangular number is given by the formula Template:Math.)

The analysis here is similar to that for squares. Ramanujan refers to the same paper as he did for the squares, where he showed that there is a function δ'2s(n) such that r'2s(n)=δ'2s(n) for Template:Math, and that for Template:Math, δ'2s(n) is a good approximation to r'2s(n).

Again, Template:Math requires a special formula:

δ'2(n)=π4(c1(4n+1)1c3(4n+1)3+c5(4n+1)5c7(4n+1)7+).

If Template:Math is a multiple of 4,

δ'2s(n)=(π2)s(s1)!(n+s4)s1(c1(n+s4)1s+c3(n+s4)3s+c5(n+s4)5s+)s0(mod4)δ'2s(n)=(π2)s(s1)!(n+s4)s1(c1(2n+s2)1s+c3(2n+s2)3s+c5(2n+s2)5s+)s2(mod4)δ'2s(n)=(π2)s(s1)!(n+s4)s1(c1(4n+s)1sc3(4n+s)3s+c5(4n+s)5s)s1(mod2) and s>1

Therefore,

r'2(n)=π4(c1(4n+1)1c3(4n+1)3+c5(4n+1)5c7(4n+1)7+)r'4(n)=(π2)2(n+12)(c1(2n+1)1+c3(2n+1)9+c5(2n+1)25+)r'6(n)=(π2)32(n+34)2(c1(4n+3)1c3(4n+3)27+c5(4n+3)125)r'8(n)=(π2)46(n+1)3(c1(n+1)1+c3(n+1)81+c5(n+1)625+)

Sums

Let

Tq(n)=cq(1)+cq(2)++cq(n)Uq(n)=Tq(n)+12ϕ(q)

Then for Template:Math,

σs(1)++σs(n)=ζ(s+1)(n+T2(n)2s+1+T3(n)3s+1+T4(n)4s+1+)=ζ(s+1)(n+12+U2(n)2s+1+U3(n)3s+1+U4(n)4s+1+)12ζ(s)d(1)++d(n)=T2(n)log22T3(n)log33T4(n)log44d(1)log1++d(n)logn=T2(n)(2γlog2log22)2T3(n)(2γlog3log23)3T4(n)(2γlog4log24)4r2(1)++r2(n)=π(nT3(n)3+T5(n)5T7(n)7+)

See also

Notes

Template:Reflist

References

  1. Ramanujan, On Certain Trigonometric Sums ...

    These sums are obviously of great interest, and a few of their properties have been discussed already. But, so far as I know, they have never been considered from the point of view which I adopt in this paper; and I believe that all the results which it contains are new.

    (Papers, p. 179). In a footnote cites pp. 360–370 of the Dirichlet–Dedekind Template:Lang, 4th ed.
  2. Nathanson, ch. 8.
  3. Hardy & Wright, Thms 65, 66
  4. G. H. Hardy, P. V. Seshu Aiyar, & B. M. Wilson, notes to On certain trigonometrical sums ..., Ramanujan, Papers, p. 343
  5. Schwarz & Spilken (1994) p.16
  6. B. Berndt, commentary to On certain trigonometrical sums..., Ramanujan, Papers, p. 371
  7. Knopfmacher, p. 196
  8. Hardy & Wright, p. 243
  9. Tóth, external links, eq. 6
  10. Tóth, external links, eq. 17.
  11. Tóth, external links, eq. 8.
  12. B. Berndt, commentary to On certain trigonometrical sums..., Ramanujan, Papers, pp. 369–371
  13. Ramanujan, On certain trigonometrical sums...

    The majority of my formulae are "elementary" in the technical sense of the word — they can (that is to say) be proved by a combination of processes involving only finite algebra and simple general theorems concerning infinite series

    (Papers, p. 179)
  14. The theory of formal Dirichlet series is discussed in Hardy & Wright, § 17.6 and in Knopfmacher.
  15. Knopfmacher, ch. 7, discusses Ramanujan expansions as a type of Fourier expansion in an inner product space which has the Template:Math as an orthogonal basis.
  16. Ramanujan, On Certain Arithmetical Functions
  17. Nicol, p. 1
  18. This is Jordan's totient function, Template:Math.
  19. Cf. Hardy & Wright, Thm. 329, which states that 6π2<σ(n)ϕ(n)n2<1.
  20. Hardy, Ramanujan, p. 141
  21. B. Berndt, commentary to On certain trigonometrical sums..., Ramanujan, Papers, p. 371
  22. Ramanujan, On Certain Arithmetical Functions