Article · Wikipedia archive · Last revised Jun 5, 2026

Ramanujan tau function

The Ramanujan tau function, studied by Ramanujan, is the function  :\mathbb {N} \to \mathbb {Z} } defined by the following identity:

Last revised
Jun 5, 2026
Read time
≈ 10 min
Length
2,365 w
Citations
18
Source
Values of | τ ( n ) | {\displaystyle |\tau (n)|} for n < 16 , 000 {\displaystyle n<16,000} with a logarithmic scale. The blue line picks only the values of n {\displaystyle n} that are multiples of 121. source ↗

The Ramanujan tau function, studied by Ramanujan (1916), is the function τ : N Z {\displaystyle \tau :\mathbb {N} \to \mathbb {Z} } defined by the following identity:

n 1 τ ( n ) q n = q n 1 ( 1 q n ) 24 = q ϕ ( q ) 24 = η ( z ) 24 = Δ ( z ) , {\displaystyle \sum _{n\geq 1}\tau (n)q^{n}=q\prod _{n\geq 1}\left(1-q^{n}\right)^{24}=q\phi (q)^{24}=\eta (z)^{24}=\Delta (z),}

where q = e 2 π i z {\textstyle q=e^{2\pi iz}} with I m ( z ) > 0 {\textstyle \mathrm {Im} (z)>0} , ϕ {\textstyle \phi } is the Euler function, η {\textstyle \eta } is the Dedekind eta function, and the function Δ ( z ) {\textstyle \Delta (z)} is the modular discriminant.

Values

The first few values of the tau function are given in the following table (sequence A000594 in the OEIS):

n {\displaystyle n} 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
τ ( n ) {\displaystyle \tau (n)} 1 −24 252 −1472 4830 −6048 −16744 84480 −113643 −115920 534612 −370944 −577738 401856 1217160 987136

Calculating this function on an odd square number (i.e. a centered octagonal number) yields an odd number, whereas for any other number the function yields an even number.1

Ramanujan's L-function

Because the modular discriminant Δ ( z ) {\textstyle \Delta (z)} is a holomorphic cusp form of weight 12, Ramanujan's L {\displaystyle L} -function, defined by

L ( s ) = n 1 τ ( n ) n s {\displaystyle L(s)=\sum _{n\geq 1}{\frac {\tau (n)}{n^{s}}}} ,

for R e ( s ) > 7 {\displaystyle \mathrm {Re} (s)>7} , can be analytically continued for all complex numbers s {\displaystyle s} via the functional equation

L ( s ) Γ ( s ) ( 2 π ) s = L ( 12 s ) Γ ( 12 s ) ( 2 π ) 12 s , s Z 0 , 12 s Z 0 , {\displaystyle {\frac {L(s)\Gamma (s)}{(2\pi )^{s}}}={\frac {L(12-s)\Gamma (12-s)}{(2\pi )^{12-s}}},\quad s\notin \mathbb {Z} _{0}^{-},\,12-s\notin \mathbb {Z} _{0}^{-},}

thus making L ( s ) {\textstyle L(s)} an entire function. Ramanujan's L {\displaystyle L} -function satisfy the Euler product

L ( s ) = p prime 1 1 τ ( p ) p s + p 11 2 s , R e ( s ) > 7. {\displaystyle L(s)=\prod _{p\,{\text{prime}}}{\frac {1}{1-\tau (p)p^{-s}+p^{11-2s}}},\quad \mathrm {Re} (s)>7.}

Ramanujan conjectured that all nontrivial zeros of L {\displaystyle L} have real part equal to 6 {\displaystyle 6} .

Main properties

Ramanujan (1916) observed, but did not prove, the following two properties of τ ( n ) {\displaystyle \tau (n)} :

  • τ ( m n ) = τ ( m ) τ ( n ) {\displaystyle \tau (mn)=\tau (m)\tau (n)} if m {\displaystyle m} and n {\displaystyle n} are coprime (meaning that τ ( n ) {\displaystyle \tau (n)} is a multiplicative function)
  • τ ( p r + 1 ) = τ ( p ) τ ( p r ) p 11 τ ( p r 1 ) {\displaystyle \tau (p^{r+1})=\tau (p)\tau (p^{r})-p^{11}\tau (p^{r-1})} for p {\displaystyle p} prime and r > 0 {\displaystyle r>0} .

The two properties are equivalent to both the Euler product for Ramanujan's L {\displaystyle L} -function and the Hecke relation τ ( m ) τ ( n ) = d | ( m , n ) d 11 τ ( m n d 2 ) , m , n 1. {\displaystyle \mathop {\tau } (m)\mathop {\tau } (n)=\sum _{d|(m,n)}d^{11}\mathop {\tau } \left({\frac {mn}{d^{2}}}\right),\quad m,n\geq 1.} They were proved by Mordell (1917). Ramanujan also conjectured the third property | τ ( p ) | 2 p 11 2 {\displaystyle |\tau (p)|\leq 2p^{\frac {11}{2}}} for primes p {\displaystyle p} , which is called the Ramanujan conjecture. Assuming the first properties, Ramanujan noted that his conjecture is equivalent to the inequality | τ ( n ) | d ( n ) n 11 2 {\textstyle |\tau (n)|\leq d(n)n^{\frac {11}{2}}} , for all n 1 {\displaystyle n\geq 1} , where d ( n ) {\displaystyle d(n)} is the number-of-divisor function. The latter bound implies that both the Ramanujan L {\displaystyle L} -function and its Euler product converge for R e ( s ) > 13 2 {\displaystyle \mathrm {Re} (s)>{\frac {13}{2}}} . This conjecture was proved by Deligne in 1974 as a consequence of his proof of the Weil conjectures (specifically, he deduced it by applying them to a Kuga-Sato variety).

Congruences for the tau function

For k Z {\displaystyle k\in \mathbb {Z} } and n N {\displaystyle n\in \mathbb {N} } , the divisor function σ k ( n ) {\displaystyle \sigma _{k}(n)} is the sum of the k {\displaystyle k} th powers of the divisors of n {\displaystyle n} . The tau function satisfies several congruence relations; many of them can be expressed in terms of σ k ( n ) {\displaystyle \sigma _{k}(n)} . Here are some:2

  1. τ ( n ) σ 11 ( n ) ( mod 2 11 )  for  n 1 ( mod 8 ) {\displaystyle \tau (n)\equiv \sigma _{11}(n){\pmod {2^{11}}}{\text{ for }}n\equiv 1{\pmod {8}}} 3
  2. τ ( n ) 1217 σ 11 ( n ) ( mod 2 13 )  for  n 3 ( mod 8 ) {\displaystyle \tau (n)\equiv 1217\sigma _{11}(n){\pmod {2^{13}}}{\text{ for }}n\equiv 3{\pmod {8}}} 3
  3. τ ( n ) 1537 σ 11 ( n ) ( mod 2 12 )  for  n 5 ( mod 8 ) {\displaystyle \tau (n)\equiv 1537\sigma _{11}(n){\pmod {2^{12}}}{\text{ for }}n\equiv 5{\pmod {8}}} 3
  4. τ ( n ) 705 σ 11 ( n ) ( mod 2 14 )  for  n 7 ( mod 8 ) {\displaystyle \tau (n)\equiv 705\sigma _{11}(n){\pmod {2^{14}}}{\text{ for }}n\equiv 7{\pmod {8}}} 3
  5. τ ( n ) n 610 σ 1231 ( n ) ( mod 3 6 )  for  n 1 ( mod 3 ) {\displaystyle \tau (n)\equiv n^{-610}\sigma _{1231}(n){\pmod {3^{6}}}{\text{ for }}n\equiv 1{\pmod {3}}} 4
  6. τ ( n ) n 610 σ 1231 ( n ) ( mod 3 7 )  for  n 2 ( mod 3 ) {\displaystyle \tau (n)\equiv n^{-610}\sigma _{1231}(n){\pmod {3^{7}}}{\text{ for }}n\equiv 2{\pmod {3}}} 4
  7. τ ( n ) n 30 σ 71 ( n ) ( mod 5 3 )  for  n 0 ( mod 5 ) {\displaystyle \tau (n)\equiv n^{-30}\sigma _{71}(n){\pmod {5^{3}}}{\text{ for }}n\not \equiv 0{\pmod {5}}} 5
  8. τ ( n ) n σ 9 ( n ) ( mod 7 ) {\displaystyle \tau (n)\equiv n\sigma _{9}(n){\pmod {7}}} 6
  9. τ ( n ) n σ 9 ( n ) ( mod 7 2 )  for  n 3 , 5 , 6 ( mod 7 ) {\displaystyle \tau (n)\equiv n\sigma _{9}(n){\pmod {7^{2}}}{\text{ for }}n\equiv 3,5,6{\pmod {7}}} 6
  10. τ ( n ) σ 11 ( n ) ( mod 691 ) . {\displaystyle \tau (n)\equiv \sigma _{11}(n){\pmod {691}}.} 7

For p 23 {\displaystyle p\neq 23} prime, we have28

  1. τ ( p ) 0 ( mod 23 )  if  ( p 23 ) = 1 {\displaystyle \tau (p)\equiv 0{\pmod {23}}{\text{ if }}\left({\frac {p}{23}}\right)=-1}
  2. τ ( p ) σ 11 ( p ) ( mod 23 2 )  if  p  is of the form  a 2 + 23 b 2 {\displaystyle \tau (p)\equiv \sigma _{11}(p){\pmod {23^{2}}}{\text{ if }}p{\text{ is of the form }}a^{2}+23b^{2}} 9
  3. τ ( p ) 1 ( mod 23 )  otherwise . {\displaystyle \tau (p)\equiv -1{\pmod {23}}{\text{ otherwise}}.}

Explicit formulas

In 1972, Ian G. Macdonald proved an explicit formula for the Ramanujan tau function10 τ ( n ) = 1 1 ! 2 ! 3 ! 4 ! x 1 + x 2 + x 3 + x 4 + x 5 = 0 x 1 2 + x 2 2 + x 3 2 + x 4 2 + x 5 2 = 10 n x i i ( mod 5 ) , i = 1 , , 5 1 i < j 5 ( x i x j ) . {\displaystyle \tau (n)={\frac {1}{1!\,2!\,3!\,4!}}\sum _{\begin{smallmatrix}x_{1}+x_{2}+x_{3}+x_{4}+x_{5}=0\\x_{1}^{2}+x_{2}^{2}+x_{3}^{2}+x_{4}^{2}+x_{5}^{2}=10n\\x_{i}\equiv i{\pmod {5}},\;i=1,\dots ,5\end{smallmatrix}}\prod _{1\leq i<j\leq 5}(x_{i}-x_{j}).} In 1975 Douglas Niebur proved the formula11

τ ( n ) = n 4 σ ( n ) 24 i = 1 n 1 i 2 ( 35 i 2 52 i n + 18 n 2 ) σ ( i ) σ ( n i ) , {\displaystyle \tau (n)=n^{4}\sigma (n)-24\sum _{i=1}^{n-1}i^{2}(35i^{2}-52in+18n^{2})\sigma (i)\sigma (n-i),}

where σ ( n ) {\displaystyle \sigma (n)} is the sum-of-divisor function.

Conjectures on the tau function

Suppose that f {\displaystyle f} is a weight- k {\displaystyle k} integer newform and the Fourier coefficients a ( n ) {\displaystyle a(n)} are integers. Consider the problem:

Given that f {\displaystyle f} does not have complex multiplication, do almost all primes p {\displaystyle p} have the property that a ( p ) 0 ( mod p ) {\displaystyle a(p)\not \equiv 0{\pmod {p}}}  ?

Indeed, most primes should have this property, and hence they are called ordinary. Despite the big advances by Deligne and Serre on Galois representations, which determine a ( n ) ( mod p ) {\displaystyle a(n){\pmod {p}}} for n {\displaystyle n} coprime to p {\displaystyle p} , it is unclear how to compute a ( p ) ( mod p ) {\displaystyle a(p){\pmod {p}}} . The only theorem in this regard is Elkies' famous result for modular elliptic curves, which guarantees that there are infinitely many primes p {\displaystyle p} such that a ( p ) = 0 {\displaystyle a(p)=0} , which thus are congruent to 0 modulo p {\displaystyle p} . There are no known examples of non-CM f {\displaystyle f} with weight greater than 2 for which a ( p ) 0 ( mod p ) {\displaystyle a(p)\not \equiv 0{\pmod {p}}} for infinitely many primes p {\displaystyle p} (although it should be true for almost all p {\displaystyle p} . There are also no known examples with a ( p ) 0 ( mod p ) {\displaystyle a(p)\equiv 0{\pmod {p}}} for infinitely many p {\displaystyle p} . Some researchers had begun to doubt whether a ( p ) 0 ( mod p ) {\displaystyle a(p)\equiv 0{\pmod {p}}} for infinitely many p {\displaystyle p} . As evidence, many provided Ramanujan's τ ( p ) {\displaystyle \tau (p)} (case of weight 12). The only solutions up to 10 10 {\displaystyle 10^{10}} to the equation τ ( p ) 0 ( mod p ) {\displaystyle \tau (p)\equiv 0{\pmod {p}}} are 2, 3, 5, 7, 2411, and 7758337633 (sequence A007659 in the OEIS).12

Lehmer (1947) conjectured that τ ( n ) 0 {\displaystyle \tau (n)\neq 0} for all n {\displaystyle n} , an assertion sometimes known as Lehmer's conjecture. Lehmer verified the conjecture for n {\displaystyle n} up to 214928639999 (Apostol 1997, p. 22). The following table summarizes progress on finding successively larger values of N {\displaystyle N} for which this condition holds for all n N {\displaystyle n\leq N} .

N {\displaystyle N} reference
3316799 Lehmer (1947)
214928639999 Lehmer (1949)
1000000000000000 Serre (1973, p. 98), Serre (1985)
1213229187071998 Jennings (1993)
22689242781695999 Jordan and Kelly (1999)
22798241520242687999 Bosman (2007)
982149821766199295999 Zeng and Yin (2013)
816212624008487344127999 Derickx, van Hoeij, and Zeng (2013)
Notes

Notes

  1. Sloane, N. J. A. (ed.). "Sequence A016754 (Odd squares: (2n-1)^2. Also centered octagonal numbers.)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  2. Page 4 of Swinnerton-Dyer 1973
  3. Due to Kolberg 1962
  4. Due to Ashworth 1968
  5. Due to Lahivi
  6. Due to D. H. Lehmer
  7. Due to Ramanujan 1916
  8. Due to Wilton 1930
  9. Due to J.-P. Serre 1968, Section 4.5
  10. Dyson, Freeman J. (1972). "Missed opportunities". Bulletin of the American Mathematical Society. 78 (5): 635–652. doi:10.1090/S0002-9904-1972-12971-9. ISSN 1088-9485.
  11. Niebur, Douglas (September 1975). "A formula for Ramanujan's τ {\displaystyle \tau } -function". Illinois Journal of Mathematics. 19 (3): 448–449. doi:10.1215/ijm/1256050746. ISSN 0019-2082.
  12. N. Lygeros and O. Rozier (2010). "A new solution for the equation τ ( p ) 0 ( mod p ) {\displaystyle \tau (p)\equiv 0{\pmod {p}}} " (PDF). Journal of Integer Sequences. 13: Article 10.7.4.
References

References