# τ（数学）

在数论中，**τ**，记作 \( \tau(n) \)，是计算正整数 \( n \) 的正除数个数的算术函数。它也记作 \( d(n) \) 和 \( \sigma_0(n) \)，即除数函数族 \( \sigma_k(n) = \sum_{d \mid n} d^k \) 的第零个成员，因为令 \( k = 0 \) 时，除数的幂之和就变成了计数。<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/DivisorFunction.html)</sup> 这个字母来自德语词 *Teiler*，意为除数。<sup>[3](https://www.simonjensen.com/pdf/On_an_extended_divisor_product_summatory_function.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | \( \tau(n) = \sum_{d \mid n} 1 \)，即 \( n \) 的正除数个数；也写作 \( d(n) \) 或 \( \sigma_0(n) \)<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/DivisorFunction.html)</sup>  |
| 乘积公式 | 若 \( n = p_1^{a_1} \cdots p_k^{a_k} \)，则 \( \tau(n) = (a_1+1) \cdots (a_k+1) \)<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> |
| 积性 | \( \tau \) 是积性的：当 \( \gcd(m,n) = 1 \) 时，\( \tau(mn) = \tau(m)\tau(n) \)<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> |
| 平均阶 | \( \sum_{n \le x} \tau(n) = x \log x + (2\gamma - 1)x + O(\sqrt{x}) \)，由狄利克雷（Dirichlet）于1849年得到<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> |
| 增长界 | 对任意 \( \epsilon > 0 \)，\( \tau(n) = O(n^{\epsilon}) \)，然而有无穷多个 \( n \) 满足 \( \tau(n) \ge 2^{1-\epsilon} \log n / \log\log n \)<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> |
| 奇偶性 | \( \tau(n) \) 为奇数当且仅当 \( n \) 是完全平方数<sup>[2](https://mathworld.wolfram.com/DivisorFunction.html)</sup> |
| 推广 | \( \tau_k(n) \) 计算将 \( n = x_1 \cdots x_k \) 写成自然数乘积的方式数；\( \tau \) 是 \( k = 2 \) 的情形<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup><sup> • </sup><sup>[4](https://dlmf.nist.gov/27.2)</sup>  |

## 定义与基本例子

对于 \( n > 0 \)，\( \tau(n) \) 是 \( n \) 的正除数个数，包括1和 \( n \) 本身。<sup>[5](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Clark%29/01%3A_Chapters/13%3A_The_Functions_and)</sup> 数12的正除数为1、2、3、4、6和12，因此 \( \tau(12) = 6 \)。<sup>[5](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Clark%29/01%3A_Chapters/13%3A_The_Functions_and)</sup> 素数 \( p \) 只有除数1和 \( p \)，所以 \( \tau(p) = 2 \)。<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> 对 \( n = 1, 2, 3, \ldots \) 的前几个值为1、2、2、3、2、4、2、4、3、4、2、6，该序列在整数数列线上大全中编号为A000005。<sup>[6](https://oeis.org/A000005)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/DivisorFunction.html)</sup>

从几何上看，\( \tau(n) \) 等于双曲线 \( xy = n \) 上坐标为自然数的点的个数：每个除数 \( d \) 与 \( n/d \) 配对。<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> 等价地，\( \tau(n) \) 是将 \( n \) 写成乘积 \( x \cdot y \)（其中 \( 1 \le x, y \le n \)）的有序方式数。<sup>[6](https://oeis.org/A000005)</sup>

## 乘积公式与积性

除数计数直接来自素因数分解。构造 \( n = p_1^{a_1} \cdots p_k^{a_k} \) 的一个除数，意味着对每个素数 \( p_i \) 独立地选择一个从0到 \( a_i \) 的指数，每个素数有 \( a_i + 1 \) 种选择；这些选择相乘。<sup>[7](https://interactiveprimer.com/concepts/mathematics/number-theory/arithmetic-functions/the-divisor-functions)</sup> 因此

\[ \tau(n) = (a_1 + 1) \cdots (a_k + 1). \]

<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> 对于素数幂 \( p^j \)，这给出 \( \tau(p^j) = j + 1 \)。<sup>[8](https://poincare.matf.bg.ac.rs/~zarkom/Book_Math_TheoryOfNumbers_ABaker.pdf)</sup>

该函数是积性的：当 \( \gcd(m, n) = 1 \) 时，\( mn \) 的每个除数唯一地分解为 \( m \) 的一个除数与 \( n \) 的一个除数之积，所以 \( \tau(mn) = \tau(m)\tau(n) \)。<sup>[9](https://math.umd.edu/~immortal/MATH406/lecturenotes/ch7-2.pdf)</sup> 用狄利克雷卷积的术语说，\( \tau = \zeta \star \zeta \)，其中 \( \zeta(n) = 1 \) 是常函数。<sup>[10](https://math.stackexchange.com/questions/3339946/where-does-the-identity-taunm-sum-d-mid-m-n-mud-taun-d-taum)</sup>

由此可得若干恒等式。整数 \( n > 1 \) 的正除数之积等于 \( n^{\tau(n)/2} \)，因为除数围绕 \( \sqrt{n} \) 成对出现。<sup>[11](https://assets.zyrosite.com/A1aw0O5jRBiVrR9D/elementary-number-theory-by-david-m.-burton-A0xlz3P72jcpxxNB.pdf)</sup> 而 \( \tau(n) \) 为奇数当且仅当 \( n \) 是平方数，因为只有此时除数 \( \sqrt{n} \) 才与自身配对。<sup>[2](https://mathworld.wolfram.com/DivisorFunction.html)</sup>

## 增长与平均阶

除数计数波动很大。对每个 \( \epsilon > 0 \)，\( \tau(n) = O(n^{\epsilon}) \)，因此该函数的增长比 \( n \) 的任何正幂次都慢。<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> 更精确的版本说，对任意 \( \delta > 0 \)，\( \tau(n) < c\,n^{\delta} \)，其中 \( c \) 只依赖于 \( \delta \)。<sup>[8](https://poincare.matf.bg.ac.rs/~zarkom/Book_Math_TheoryOfNumbers_ABaker.pdf)</sup> 另一方面，存在无穷多个 \( n \) 使得对每个 \( \epsilon > 0 \)，

\[ \tau(n) \ge 2^{1-\epsilon} \frac{\log n}{\log\log n}, \]

<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> 沿着高合成数——即不断刷新除数计数纪录的整数——最大规模呈现为 \( \tau(N) = 2^{(1+o(1)) \log N / \log\log N} \)，这结合了维格特（Wigert）的上界与拉马努金（Ramanujan）工作中的下界。<sup>[12](https://github.com/plasma-ai/erdos/blob/main/library/divisors/kovac_2025_number_divisors_mersenne_numbers/proposition_2.md)</sup>

平均行为由19世纪德国数学家彼得·古斯塔夫·勒热纳·狄利克雷（Peter Gustav Lejeune Dirichlet）于1849年测定：<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup>

\[ \sum_{n \le x} \tau(n) = x \log x + (2\gamma - 1)x + O(\sqrt{x}), \]

其中 \( \gamma \approx 0.57721 \) 是欧拉–马歇罗尼常数。<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup><sup> • </sup><sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002550)</sup> 因此 \( \tau(n) \) 的平均阶为 \( \log n \)。这个平均值作为对典型值的描述具有误导性：并非几乎所有数都有大约 \( \log n \) 个除数。几乎所有数都有大约 \( (\log n)^{\log 2} \) 个除数，其意义是：对任意 \( \epsilon > 0 \)，对几乎所有 \( n \)，比值 \( \tau(n) / (\log n)^{\log 2} \) 最终落在 \( (\log n)^{\epsilon} \) 与 \( (\log n)^{-\epsilon} \) 之间。<sup>[8](https://poincare.matf.bg.ac.rs/~zarkom/Book_Math_TheoryOfNumbers_ABaker.pdf)</sup>

## 狄利克雷除数问题

上述求和公式中的误差项 \( \Delta(x) \) 是狄利克雷除数问题的研究对象，这是解析数论中最古老的未解决问题之一。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002550)</sup> 狄利克雷的双曲线方法给出了主项和估计 \( \Delta(x) = O(x^{1/2}) \)。<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002550)</sup><sup> • </sup><sup>[14](https://mathworld.wolfram.com/DirichletDivisorProblem.html)</sup> 哈代（Hardy）与兰道（Landau）于1916年证明指数不能压到 \( 1/4 \) 以下。<sup>[14](https://mathworld.wolfram.com/DirichletDivisorProblem.html)</sup> 后续的改进将已知的误差项上界指数从狄利克雷的 \( 1/2 \) 经沃罗诺伊（Voronoi）与谢尔宾斯基（Sierpiński）的 \( 1/3 \) 降到 \( 131/416 \approx 0.31490 \)，由M. N. 赫胥黎（M. N. Huxley）于2003年实现。<sup>[14](https://mathworld.wolfram.com/DirichletDivisorProblem.html)</sup> 广义（皮尔茨）除数问题对 \( k > 2 \) 的 \( \tau_k \) 提出同样的问题，并与黎曼ζ函数在临界带中的行为密切相关。<sup>[15](https://encyclopediaofmath.org/index.php?title=Divisor_problems)</sup><sup> • </sup><sup>[16](https://link.springer.com/article/10.1007/s11139-026-01422-5)</sup>

## 推广与出现

函数 \( \tau_k(n) \) 是 \( n = x_1 \cdots x_k \) 在自然数中解的个数，它推广了 \( \tau \)，后者是 \( k = 2 \) 的情形。<sup>[1](https://encyclopediaofmath.org/wiki/Number_of_divisors)</sup> 在DLMF的记号中，\( d(n) \) 是 \( d_k(n) \) 在 \( k = 2 \) 时的特例，后者计算考虑顺序的 \( k \) 因子分解方式数。<sup>[4](https://dlmf.nist.gov/27.2)</sup> 求和函数 \( D_k(x) = \sum_{n \le x} \tau_k(n) \) 是除数问题的研究对象。<sup>[15](https://encyclopediaofmath.org/index.php?title=Divisor_problems)</sup>

这个计数出现在意想不到的地方。多项式 \( x^n - 1 \) 在整数上的因子个数等于 \( \tau(n) \)，对 \( a^n - b^n \) 亦然。<sup>[6](https://oeis.org/A000005)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/DivisorFunction.html)</sup> 对于奇数 \( n \)，\( \tau(n) \) 也是将 \( n \) 分拆为连续整数之和的方式数。<sup>[6](https://oeis.org/A000005)</sup> 不断刷新除数个数纪录的整数是高合成数，由以数论工作著称的印度数学家斯里尼瓦萨·拉马努金（Srinivasa Ramanujan）研究；当 \( \tau(n) \) 超过所有正整数 \( m < n \) 的 \( \tau(m) \) 时，\( n \) 是高合成数。<sup>[2](https://mathworld.wolfram.com/DivisorFunction.html)</sup>

## 与拉马努金τ函数的区别

符号 \( \tau(n) \) 也用于拉马努金τ函数，这是由模判别式的傅里叶展开 \( \Delta(z) = \sum_{n=1}^{\infty} \tau(n) q^n = q \prod_{n=1}^{\infty} (1 - q^n)^{24} \) 定义的一个不同的算术函数。<sup>[17](https://mathworld.wolfram.com/TauFunction.html)</sup><sup> • </sup><sup>[18](https://www.mathsoc.jp/section/algebra/algsymp_past/algsymp04_files/ono2.pdf)</sup> 这两个函数在定义上无关，文献指出除数计数的记号可能与拉马努金的记号混淆。<sup>[3](https://www.simonjensen.com/pdf/On_an_extended_divisor_product_summatory_function.pdf)</sup> 小写希腊字母 \( \tau \) 在数学和物理中还有许多其他含义，例如τ粒子和力矩。<sup>[19](https://mathworld.wolfram.com/Tau.html)</sup>

## References

1. [Number of divisors, Encyclopedia of Mathematics (originator N.I. Klimov)](https://encyclopediaofmath.org/wiki/Number_of_divisors)
2. [Divisor Function, Wolfram MathWorld](https://mathworld.wolfram.com/DivisorFunction.html)
3. [On an extended divisor product summatory function, S. Jensen](https://www.simonjensen.com/pdf/On_an_extended_divisor_product_summatory_function.pdf)
4. [DLMF §27.2 Functions, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/27.2)
5. [The Functions σ and τ, Elementary Number Theory (Clark), Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Clark%29/01%3A_Chapters/13%3A_The_Functions_and)
6. [A000005: d(n), the number of divisors of n, OEIS](https://oeis.org/A000005)
7. [The divisor functions, Interactive Primer](https://interactiveprimer.com/concepts/mathematics/number-theory/arithmetic-functions/the-divisor-functions)
8. [Arithmetical functions — Average orders, A. Baker](https://poincare.matf.bg.ac.rs/~zarkom/Book_Math_TheoryOfNumbers_ABaker.pdf)
9. [Math 406 Section 7.2: The Sum and Number of Divisors, University of Maryland](https://math.umd.edu/~immortal/MATH406/lecturenotes/ch7-2.pdf)
10. [Where does the identity τ(nm) = Σ μ(d) τ(n/d) τ(m/d) come from?, Mathematics Stack Exchange](https://math.stackexchange.com/questions/3339946/where-does-the-identity-taunm-sum-d-mid-m-n-mud-taun-d-taum)
11. [Elementary Number Theory, D. M. Burton](https://assets.zyrosite.com/A1aw0O5jRBiVrR9D/elementary-number-theory-by-david-m.-burton-A0xlz3P72jcpxxNB.pdf)
12. [Number of divisors of Mersenne numbers, proposition 2, plasma-ai/erdos (GitHub)](https://github.com/plasma-ai/erdos/blob/main/library/divisors/kovac_2025_number_divisors_mersenne_numbers/proposition_2.md)
13. [On certain correlations into the divisor problem, Journal of Number Theory](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002550)
14. [Dirichlet Divisor Problem, Wolfram MathWorld](https://mathworld.wolfram.com/DirichletDivisorProblem.html)
15. [Divisor problems, Encyclopedia of Mathematics](https://encyclopediaofmath.org/index.php?title=Divisor_problems)
16. [On the generalised divisor problem, The Ramanujan Journal](https://link.springer.com/article/10.1007/s11139-026-01422-5)
17. [Tau Function (Ramanujan), Wolfram MathWorld](https://mathworld.wolfram.com/TauFunction.html)
18. [Ono, Δ(z) and modular forms (Mathematical Society of Japan algebra symposium material)](https://www.mathsoc.jp/section/algebra/algsymp_past/algsymp04_files/ono2.pdf)
19. [Tau, Wolfram MathWorld](https://mathworld.wolfram.com/Tau.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Elementary number theory › Arithmetic functions

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/tau-mathematics

English original: https://www.edgepedia.org/tau-mathematics
