Ramanujan's sum
Template:Short description Script error: No such module "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
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, is read "a divides b" and means that there is an integer c such that Similarly, is read "a does not divide b". The summation symbol
means that d goes through all the positive divisors of m, e.g.
is the greatest common divisor,
is the Möbius function, and
is the Riemann zeta function.
Formulas for cq(n)
Trigonometry
These formulas come from the definition, Euler's formula and elementary trigonometric identities.
and so on (OEIS: A000012, OEIS: A033999, OEIS: A099837, OEIS: A176742,.., OEIS: A100051,...). cq(n) is always an integer.
Kluyver
Let Then ζqScript error: No such module "Check for unknown parameters". is a root of the equation xq − 1 = 0Script error: No such module "Check for unknown parameters".. Each of its powers,
is also a root. Therefore, since there are q of them, they are all of the roots. The numbers where 1 ≤ n ≤ q are called the q-th roots of unity. ζqScript error: No such module "Check for unknown parameters". is called a primitive q-th root of unity because the smallest value of n that makes is q. The other primitive q-th roots of unity are the numbers 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 ζqScript error: No such module "Check for unknown parameters". are precisely the primitive roots for all the divisors of q.
Example. Let q = 12. Then
- and are the primitive twelfth roots of unity,
- and are the primitive sixth roots of unity,
- and are the primitive fourth roots of unity,
- and are the primitive third roots of unity,
- is the primitive second root of unity, and
- is the primitive first root of unity.
Therefore, if
is the sum of the n-th powers of all the roots, primitive and imprimitive,
and by Möbius inversion,
It follows from the identity xq − 1 = (x − 1)(xq−1 + xq−2 + ... + x + 1) that
and this leads to the formula
published by Kluyver in 1906.[4]
This shows that cq(n) is always an integer. Compare it with the formula
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.
From the definition (or Kluyver's formula) it is straightforward to prove that, if p is a prime number,
and if pk is a prime power where k > 1,
This result and the multiplicative property can be used to prove
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,
For a fixed value of q the absolute value of the sequence is bounded by φ(q), and for a fixed value of n the absolute value of the sequence is bounded by n.
If q > 1
Let m1, m2 > 0, m = lcm(m1, m2). Then[9] Ramanujan's sums satisfy an orthogonality property:
Let n, k > 0. Then[10]
known as the Brauer - Rademacher identity.
If n > 0 and a is any integer, we also have[11]
due to Cohen.
Table
| 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 f
- REDIRECT Template:Hair space
Template:Redirect category shell(n)Script error: No such module "Check for unknown parameters". is an arithmetic function (i.e. a complex-valued function of the integers or natural numbers), then a convergent infinite series of the form:
or of the form:
where the ak ∈ CScript error: No such module "Check for unknown parameters"., is called a Ramanujan expansion[12] of f
- REDIRECT Template:Hair space
Template:Redirect category shell(n)Script error: No such module "Check for unknown parameters"..
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
converges to 0, and the results for r(n)Script error: No such module "Check for unknown parameters". and r′(n)Script error: No such module "Check for unknown parameters". 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:
is a generating function for the sequence cq(1)Script error: No such module "Check for unknown parameters"., cq(2)Script error: No such module "Check for unknown parameters"., ... where qScript error: No such module "Check for unknown parameters". is kept constant, and
is a generating function for the sequence c1(n)Script error: No such module "Check for unknown parameters"., c2(n)Script error: No such module "Check for unknown parameters"., ... where nScript error: No such module "Check for unknown parameters". is kept constant.
There is also the double Dirichlet series
The polynomial with Ramanujan sum's as coefficients can be expressed with cyclotomic polynomial[17]
σk(n)
σk(n)Script error: No such module "Check for unknown parameters". is the divisor function (i.e. the sum of the kScript error: No such module "Check for unknown parameters".-th powers of the divisors of Template:Mvar, including 1 and Template:Mvar). σ0(n)Script error: No such module "Check for unknown parameters"., the number of divisors of Template:Mvar, is usually written d(n)Script error: No such module "Check for unknown parameters". and σ1(n)Script error: No such module "Check for unknown parameters"., the sum of the divisors of Template:Mvar, is usually written σ(n)Script error: No such module "Check for unknown parameters"..
If s > 0Script error: No such module "Check for unknown parameters".,
Setting s = 1Script error: No such module "Check for unknown parameters". gives
If the Riemann hypothesis is true, and
d(n)
d(n) = σ0(n)Script error: No such module "Check for unknown parameters". is the number of divisors of nScript error: No such module "Check for unknown parameters"., including 1 and nScript error: No such module "Check for unknown parameters". itself.
where γ = 0.5772...Script error: No such module "Check for unknown parameters". is the Euler–Mascheroni constant.
φ(n)
Euler's totient function φ(n)Script error: No such module "Check for unknown parameters". is the number of positive integers less than Template:Mvar and coprime to Template:Mvar. Ramanujan defines a generalization of it, if
is the prime factorization of nScript error: No such module "Check for unknown parameters"., and sScript error: No such module "Check for unknown parameters". is a complex number, let
so that φ1(n) = φ(n)Script error: No such module "Check for unknown parameters". is Euler's function.[18]
He proves that
and uses this to show that
Letting s = 1Script error: No such module "Check for unknown parameters".,
Note that the constant is the inverse[19] of the one in the formula for σ(n)Script error: No such module "Check for unknown parameters"..
Λ(n)
Von Mangoldt's function Λ(n) = 0Script error: No such module "Check for unknown parameters". unless n = pkScript error: No such module "Check for unknown parameters". is a power of a prime number, in which case it is the natural logarithm log pScript error: No such module "Check for unknown parameters"..
Zero
For all n > 0Script error: No such module "Check for unknown parameters".,
This is equivalent to the prime number theorem.[20][21]
r2s(n) (sums of squares)
r2s(n)Script error: No such module "Check for unknown parameters". is the number of ways of representing nScript error: No such module "Check for unknown parameters". as the sum of 2sScript error: No such module "Check for unknown parameters". squares, counting different orders and signs as different (e.g., r2(13) = 8Script error: No such module "Check for unknown parameters"., as 13 = (±2)2 + (±3)2 = (±3)2 + (±2)2Script error: No such module "Check for unknown parameters"..)
Ramanujan defines a function δ2s(n)Script error: No such module "Check for unknown parameters". and references a paper[22] in which he proved that r2s(n) = δ2s(n)Script error: No such module "Check for unknown parameters". for s = 1, 2, 3, and 4Script error: No such module "Check for unknown parameters".. For s > 4Script error: No such module "Check for unknown parameters". he shows that δ2s(n)Script error: No such module "Check for unknown parameters". is a good approximation to r2s(n)Script error: No such module "Check for unknown parameters"..
s = 1Script error: No such module "Check for unknown parameters". has a special formula:
In the following formulas the signs repeat with a period of 4.
and therefore,
r′2s(n) (sums of triangles)
is the number of ways nScript error: No such module "Check for unknown parameters". can be represented as the sum of 2sScript error: No such module "Check for unknown parameters". triangular numbers (i.e. the numbers 1, 3 = 1 + 2, 6 = 1 + 2 + 3, 10 = 1 + 2 + 3 + 4, 15, ...; the nScript error: No such module "Check for unknown parameters".-th triangular number is given by the formula nTemplate:SfracScript error: No such module "Check for unknown parameters"..)
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 such that for s = 1, 2, 3, and 4Script error: No such module "Check for unknown parameters"., and that for s > 4Script error: No such module "Check for unknown parameters"., is a good approximation to
Again, s = 1Script error: No such module "Check for unknown parameters". requires a special formula:
If sScript error: No such module "Check for unknown parameters". is a multiple of 4,
Therefore,
Sums
Let
Then for s > 1Script error: No such module "Check for unknown parameters".,
See also
Notes
<templatestyles src="Reflist/styles.css" />
- ↑ Ramanujan, On Certain Trigonometric Sums ...
(Papers, p. 179). In a footnote cites pp. 360–370 of the Dirichlet–Dedekind Script error: No such module "Lang"., 4th ed.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.
- ↑ Nathanson, ch. 8.
- ↑ Hardy & Wright, Thms 65, 66
- ↑ G. H. Hardy, P. V. Seshu Aiyar, & B. M. Wilson, notes to On certain trigonometrical sums ..., Ramanujan, Papers, p. 343
- ↑ Schwarz & Spilken (1994) p.16
- ↑ B. Berndt, commentary to On certain trigonometrical sums..., Ramanujan, Papers, p. 371
- ↑ Knopfmacher, p. 196
- ↑ Hardy & Wright, p. 243
- ↑ Tóth, external links, eq. 6
- ↑ Tóth, external links, eq. 17.
- ↑ Tóth, external links, eq. 8.
- ↑ B. Berndt, commentary to On certain trigonometrical sums..., Ramanujan, Papers, pp. 369–371
- ↑ Ramanujan, On certain trigonometrical sums...
(Papers, p. 179)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
- ↑ The theory of formal Dirichlet series is discussed in Hardy & Wright, § 17.6 and in Knopfmacher.
- ↑ Knopfmacher, ch. 7, discusses Ramanujan expansions as a type of Fourier expansion in an inner product space which has the cqScript error: No such module "Check for unknown parameters". as an orthogonal basis.
- ↑ Ramanujan, On Certain Arithmetical Functions
- ↑ Nicol, p. 1
- ↑ This is Jordan's totient function, Js(n)Script error: No such module "Check for unknown parameters"..
- ↑ Cf. Hardy & Wright, Thm. 329, which states that
- ↑ Hardy, Ramanujan, p. 141
- ↑ B. Berndt, commentary to On certain trigonometrical sums..., Ramanujan, Papers, p. 371
- ↑ Ramanujan, On Certain Arithmetical Functions
Script error: No such module "Check for unknown parameters".
References
- Script error: No such module "citation/CS1".
- Template:Hardy and Wright
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1"..
- Script error: No such module "Citation/CS1".
- Script error: No such module "Citation/CS1". (pp. 179–199 of his Collected Papers)
- Script error: No such module "Citation/CS1". (pp. 136–163 of his Collected Papers)
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
External links
- Script error: No such module "Citation/CS1".