# 五边形数定理

五边形数定理是莱昂哈德·欧拉（Leonhard Euler）的一个恒等式，它断言无穷乘积 \( \prod_{m=1}^{\infty}(1 - x^{m}) \) 可展开为级数

该恒等式断言，关于 m 的无穷乘积 (1 − x^m) 等于一个双向无穷和，其中连续的幂次 x^(k(3k−1)/2) 带有交替符号，给出展开式 1 − x − x^2 + x^5 + x^7 − x^12 − x^15 + x^22 + x^26 − ⋯。

其中指数为广义五边形数，符号按 ++−−++−− 循环。<sup>[1](https://mathworld.wolfram.com/PentagonalNumberTheorem.html)</sup> 它是 q 级数理论的奠基性成果之一，也是分拆函数经典递推式的来源。<sup>[2](https://arxiv.org/abs/math/0510054)</sup>

| 关键事实 | 细节 |
|---|---|
| 陈述 | \( \prod_{m=1}^{\infty}(1 - x^{m}) = \sum_{k \in \mathbb{Z}} (-1)^{k} x^{k(3k-1)/2} \)<sup>[1](https://mathworld.wolfram.com/PentagonalNumberTheorem.html)</sup> |
| 指数 | 广义五边形数 \( g_{k} = k(3k-1)/2 \)：0, 1, 2, 5, 7, 12, 15, 22, 26, …<sup>[3](https://oeis.org/A001318)</sup> |
| 首次发表 | 欧拉，《Observationes analyticae variae de combinationibus》，1741 年提交，1751 年发表<sup>[4](https://scholarlycommons.pacific.edu/euler-works/542/)</sup> |
| 首个证明 | 由欧拉在 1750 年 6 月 9 日致哥德巴赫（Goldbach）的信中给出<sup>[2](https://arxiv.org/abs/math/0510054)</sup> |
| 分拆递推 | \( p(n) = p(n-1) + p(n-2) - p(n-5) - p(n-7) + \cdots \)，对不超过 n 的广义五边形数求和<sup>[5](https://isa-afp.org/entries/Pentagonal_Number_Theorem.html)</sup> |
| 组合证明 | 富兰克林（Franklin）1881 年关于互异分拆的对合，恰在广义五边形数处失效<sup>[6](https://resources.wolframcloud.com/FunctionRepository/resources/FranklinBijection/)</sup> |
| 现代推广 | 欧拉的递推是五边形数递推无穷族中 ν = 0 的情形（凯文·戈麦斯、小野健、哈桑·萨阿德、阿吉特·辛格，2024）<sup>[7](https://arxiv.org/abs/2411.16968)</sup> |

## 五边形数

五边形数是正整数 \( n \) 对应的值 \( n(3n-1)/2 \)；它们计数的是将若干个正五边形叠加、各边等距取点时点阵中的点数。若允许 \( n \) 取负值，便得到广义五边形数 \( n(3n \pm 1)/2 \)，它们由两个序列交错而成，开头为 0, 1, 2, 5, 7, 12, 15, 22, 26, 35, 40, …<sup>[2](https://arxiv.org/abs/math/0510054)</sup><sup> • </sup><sup>[3](https://oeis.org/A001318)</sup> 在定理中，每个非零整数 \( k \) 贡献一项，因此指数以相邻成对的形式 \( k(3k-1)/2 \) 与 \( k(3k+1)/2 \) 出现，且符号相同。<sup>[1](https://mathworld.wolfram.com/PentagonalNumberTheorem.html)</sup>

从分析上看，右端的级数在 \( |x| < 1 \) 时绝对收敛。康拉德·克诺普（Konrad Knopp）是一位以级数与函数研究著称的数学家，他于 1913 年证明：由该乘积在 \( |x| < 1 \) 上定义的函数不能解析延拓到单位圆之外，因此这个恒等式真正陈述的是收敛边界上的性质。<sup>[2](https://arxiv.org/abs/math/0510054)</sup>

## 欧拉的发现与证明

欧拉是在研究分拆的生成函数时遇到这个展开式的。他通信中最早提到此事的是丹尼尔·伯努利（Daniel Bernoulli）1741 年 1 月 28 日的一封信，信中回答了欧拉提出的问题，其中包括将乘积 \( (1 - 1/n)(1 - 1/n^{2})(1 - 1/n^{3}) \cdots \) 展开为级数 \( 1 - 1/n - 1/n^{2} + 1/n^{5} + 1/n^{7} - \cdots \)；伯努利通过连乘许多因子确认了它，但看不出如何处理素指数项。欧拉很可能是在 1740 年 9 月 15 日的上一封信中提出这个问题的。<sup>[2](https://arxiv.org/abs/math/0510054)</sup>

欧拉关于此主题的第一篇论文《Observationes analyticae variae de combinationibus》（1741 年 4 月 6 日提交圣彼得堡科学院，1751 年发表）引入了分拆函数的生成函数 \( \prod (1 - n^{x})^{-1} = 1 + n + 2n^{2} + 3n^{3} + 5n^{4} + \cdots \)，并记录了下述观察：其倒数乘积仅在形如 \( (3x^{2} \pm x)/2 \) 的指数处有非零系数，奇数 \( x \) 时系数为 −1，偶数 \( x \) 时为 +1。欧拉表示他未能完全严格地证明这一点。<sup>[2](https://arxiv.org/abs/math/0510054)</sup>

这个定理对欧拉之所以重要，是因为它支撑了他为除数函数（即一个数所有除数之和，包括该数本身）找到的一个递推式。他在 1747 年 4 月 1 日致克里斯蒂安·哥德巴赫（Christian Goldbach）的信中宣布了这个递推式，但其证明依赖于尚未证明的五边形数定理。<sup>[8](https://citeseerx.ist.psu.edu/document?doi=43640cbd7b99683ac594aa01733cca23ecee42e5&repid=rep1&type=pdf)</sup> 1750 年 6 月 9 日，欧拉写信给哥德巴赫，给出了五边形数定理本身的证明；大约同一时期，他又在笔记中构造了另一个证明。<sup>[2](https://arxiv.org/abs/math/0510054)</sup><sup> • </sup><sup>[9](https://pure.psu.edu/en/publications/eulers-pentagonal-number-theorem-and-the-rogers-fine-identity/)</sup> 该证明通过对无穷乘积的展开式作归纳进行：展开 \( \prod (1 - a_{n}) \) 并合并同类项后，每一步都会留下级数 \( \sum (-1)^{n} x^{n(3n-1)/2} \) 的两项。<sup>[10](https://arxiv.org/abs/math/0507201)</sup>

欧拉的论文 E243《Observatio de summis divisorum》陈述了该定理而未加证明，并在假定其成立的前提下导出了除数递推式；配套论文 E244《Demonstratio theorematis circa ordinem in summis divisorum observatum》（1760）证明了该定理，并重复了递推式的证明。<sup>[10](https://arxiv.org/abs/math/0507201)</sup> 集大成的处理是 E542《De mirabilis proprietatibus numerorum pentagonalium》（《论五边形数的奇妙性质》），写于 1775 年，1775 年 8 月 14 日提交圣彼得堡科学院，1783 年发表，即欧拉去世之年。<sup>[4](https://scholarlycommons.pacific.edu/euler-works/542/)</sup><sup> • </sup><sup>[1](https://mathworld.wolfram.com/PentagonalNumberTheorem.html)</sup>

## 富兰克林的组合证明

乘积 \( (1 - x)(1 - x^{2})(1 - x^{3}) \cdots \) 是互异分拆的生成函数，每个分拆按 \( (-1)^{k} \) 加权，其中 \( k \) 是其部分数。因此该定理说的是：将 \( n \) 分拆为偶数个互异部分的方法数，比分为奇数个互异部分的方法数多 1，当 \( n \) 为广义五边形数时；否则二者相等。<sup>[11](https://web.stanford.edu/~lindrew/18.212.pdf)</sup>

1881 年，当时在巴黎工作的美国数学家法比安·富兰克林（Fabian Franklin）用一个对合——即自身为逆的映射——对几乎所有这类分拆证明了这一点：在费勒斯图（Ferrers diagram，即分拆以点行排成的图示）中，将点在最短行与最长对角线之间移动，这会使部分数改变 1，从而翻转奇偶性。该映射将 \( n \) 的每个互异分拆与一个奇偶性相反的分拆配对，唯一例外是 \( n \) 为广义五边形数的情形：此时恰有一个分拆，形如 \( (2m-1, 2m-2, \ldots, m) \) 或其对应形式，无法移动；这些未配对的分拆在五边形指数处产生系数 \( \pm 1 \)。<sup>[6](https://resources.wolframcloud.com/FunctionRepository/resources/FranklinBijection/)</sup><sup> • </sup><sup>[11](https://web.stanford.edu/~lindrew/18.212.pdf)</sup> 这个双射是一个对合，并使例外分拆保持不动。<sup>[6](https://resources.wolframcloud.com/FunctionRepository/resources/FranklinBijection/)</sup>

此后又出现了其他风格的证明：美国组合学家、分拆史家乔治·E·安德鲁斯（George E. Andrews）于 1983 年推广了欧拉本人的证明；维也纳大学的陈肖恩（Shane Chern）于 2025 年在《洛林组合学讨论班》（Séminaire Lotharingien de Combinatoire）上发表了一个基于洗牌模型的概率证明。<sup>[2](https://arxiv.org/abs/math/0510054)</sup><sup> • </sup><sup>[12](https://ucrisportal.univie.ac.at/en/publications/a-probabilistic-proof-of-eulers-pentagonal-number-theorem/)</sup>

## 与雅可比三乘积的关系

该定理是 1829 年雅可比三乘积恒等式的特例，

\[ \prod_{n=1}^{\infty}(1 - q^{2n})(1 + q^{2n-1}z^{2})(1 + q^{2n-1}z^{-2}) = \sum_{n=-\infty}^{\infty} q^{n^{2}} z^{2n}, \]

对 \( q \) 与 \( z \) 作适当代换即可由它推出欧拉的恒等式。<sup>[2](https://arxiv.org/abs/math/0510054)</sup> 从三乘积出发对五边形数定理所作的一个形式化证明，已在“形式化证明档案”（Archive of Formal Proofs，即机器检验的 Isabelle 证明库）中完成。<sup>[5](https://isa-afp.org/entries/Pentagonal_Number_Theorem.html)</sup> 反过来，欧拉的定理比三乘积早数十年，在历史上是这一族中第一个重大恒等式。<sup>[2](https://arxiv.org/abs/math/0510054)</sup>

## 对分拆函数与除数函数的推论

由于乘积 \( \prod (1 - x^{m}) \) 是分拆生成函数 \( \sum_{n \geq 0} p(n) x^{n} \) 的倒数，将两个级数相乘并令乘积等于 1，便得到欧拉的递推式

\[ p(n) = p(n-1) + p(n-2) - p(n-5) - p(n-7) + p(n-12) + p(n-15) - \cdots, \]

其中自变量按广义五边形数 1, 2, 5, 7, 12, 15, 22, … 递减，符号遵循 (+, +, −, −, +, +, −, −, …) 的模式。<sup>[5](https://isa-afp.org/entries/Pentagonal_Number_Theorem.html)</sup><sup> • </sup><sup>[13](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> 由于不超过 \( n \) 的五边形数只有约 \( \sqrt{n} \) 个，每个值 \( p(n) \) 是约 \( 2\sqrt{n} \) 个先前值之和，因此 \( p(0), \ldots, p(n) \) 可在约 \( n^{2 + o(1)} \) 的时间内同时算出；该递推式也是竞赛编程中避免多项式的对数与指数运算的实现方案的基础。<sup>[5](https://isa-afp.org/entries/Pentagonal_Number_Theorem.html)</sup><sup> • </sup><sup>[14](https://codeforces.com/blog/entry/104312?locale=en)</sup> 同样的推理还给出 \( p(n) \) 的一个上界。<sup>[5](https://isa-afp.org/entries/Pentagonal_Number_Theorem.html)</sup>

欧拉最初的应用是除数函数 \( \sigma(n) \)，他为它找到了一个具有相同五边形位移的递推式，1747 年首次向哥德巴赫宣布，待五边形数定理得到证明后，在 E244 中给出了严格证明。<sup>[8](https://citeseerx.ist.psu.edu/document?doi=43640cbd7b99683ac594aa01733cca23ecee42e5&repid=rep1&type=pdf)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/math/0507201)</sup>

## 模形式与后续工作

定理的乘积一侧，在相差一个因子 \( q^{1/24} \) 的意义下，正是戴德金 eta 函数 \( \eta(\tau) = q^{1/24} \prod_{n=1}^{\infty}(1 - q^{n}) \) 的 q 展开，其中 \( q = e^{2\pi i \tau} \)。对指数配方后可把级数改写为 \( \sum_{n \geq 1} \chi_{12}(n) q^{(n^{2}-1)/24} \)，其中 \( \chi_{12} \) 是一个狄利克雷特征，于是该定理把 eta 函数表示为一个 theta 级数，而这一表示正是其模性的基础。<sup>[15](https://math.vanderbilt.edu/rolenl/ModularFormsLecture17.pdf)</sup> eta 函数的变换法则涉及一个二十四次单位根和 \( \tau \) 的平方根，这些特征在把五边形级数看作 theta 函数之前显得出人意料。<sup>[16](https://pages.uoregon.edu/koch/ModularForms.pdf)</sup>

这个递推式本身仍在不断催生新的数学。2024 年，当时在范德堡大学（Vanderbilt University）及其他机构工作的数论学家凯文·戈麦斯（Kevin Gomez）、小野健（Ken Ono）、哈桑·萨阿德（Hasan Saad）与阿吉特·辛格（Ajit Singh）证明：欧拉的递推是五边形数递推无穷族中 \( \nu = 0 \) 的情形，该族中每一项由 \( n \) 与 \( k \) 的多项式加权，并出现一个除数函数；\( \nu = 6 \) 的情形给出了拉马努金 tau 函数的一个分拆论公式。<sup>[7](https://arxiv.org/abs/2411.16968)</sup> 该定理的截断版本还为相关 q 级数产生了非负性结果。<sup>[17](https://www.sciencedirect.com/science/article/pii/S0097316514001368)</sup>

## References

1. [Pentagonal Number Theorem, Wolfram MathWorld](https://mathworld.wolfram.com/PentagonalNumberTheorem.html)
2. [Jordan Bell (2005). Euler and the pentagonal number theorem. arXiv:math/0510054.](https://arxiv.org/abs/math/0510054)
3. [A001318: Generalized pentagonal numbers, OEIS](https://oeis.org/A001318)
4. [Leonhard Euler, "De mirabilis proprietatibus numerorum pentagonalium" (E542), Euler Archive, University of the Pacific](https://scholarlycommons.pacific.edu/euler-works/542/)
5. [The Partition Function and the Pentagonal Number Theorem, Archive of Formal Proofs](https://isa-afp.org/entries/Pentagonal_Number_Theorem.html)
6. [FranklinBijection, Wolfram Function Repository](https://resources.wolframcloud.com/FunctionRepository/resources/FranklinBijection/)
7. [Kevin Gomez, Ken Ono, Hasan Saad, Ajit Singh (2024). Pentagonal number recurrence relations for p(n). arXiv:2411.16968.](https://arxiv.org/abs/2411.16968)
8. [Euler and the Pentagonal Number Theorem (excerpt on the divisor recurrence), CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=43640cbd7b99683ac594aa01733cca23ecee42e5&repid=rep1&type=pdf)
9. [Euler's Pentagonal Number Theorem and the Rogers-Fine Identity, Penn State](https://pure.psu.edu/en/publications/eulers-pentagonal-number-theorem-and-the-rogers-fine-identity/)
10. [Leonhard Euler, trans. Jordan Bell (2005). A demonstration of a theorem on the order observed in the sums of divisors (E244). arXiv:math/0507201.](https://arxiv.org/abs/math/0507201)
11. [18.212 Algebraic Combinatorics notes, Stanford (Franklin's proof)](https://web.stanford.edu/~lindrew/18.212.pdf)
12. [Shane Chern (2025). A probabilistic proof of Euler's pentagonal number theorem. Séminaire Lotharingien de Combinatoire 92, B92c.](https://ucrisportal.univie.ac.at/en/publications/a-probabilistic-proof-of-eulers-pentagonal-number-theorem/)
13. [Partition Function P, Wolfram MathWorld](https://mathworld.wolfram.com/PartitionFunctionP.html)
14. [Partitions and pentagonal number theorem, Codeforces](https://codeforces.com/blog/entry/104312?locale=en)
15. [Larry Rolen, Modular Forms Lecture 17, Vanderbilt University](https://math.vanderbilt.edu/rolenl/ModularFormsLecture17.pdf)
16. [The Pentagonal Number Theorem and Modular Forms, University of Oregon](https://pages.uoregon.edu/koch/ModularForms.pdf)
17. [A truncated Jacobi triple product theorem, Journal of Combinatorial Theory, Series A](https://www.sciencedirect.com/science/article/pii/S0097316514001368)

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

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Combinatorics › Algebraic and analytic combinatorics › Integer partitions and partition theory

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pentagonal-number-theorem

English original: https://www.edgepedia.org/pentagonal-number-theorem
