# 分拆数

分拆数构成序列 p(n)，它计数的是把非负整数 n 写成正整数之和的方式数，且不计各项的次序；p(0) = 1 计的是空分拆。<sup>[1](https://oeis.org/wiki/Partition_function)</sup> 例如，5 有七个分拆：5、4+1、3+2、3+1+1、2+2+1、2+1+1+1 和 1+1+1+1+1。该序列以 1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 42, ... 开头，收录于 OEIS A000041。<sup>[2](https://oeis.org/A000041)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | p(n) 计数把 n 分成正整数之和的分拆数，不计次序；p(0) = 1（空分拆）<sup>[1](https://oeis.org/wiki/Partition_function)</sup> |
| 生成函数 | \( \sum_{n \ge 0} p(n) x^n = \prod_{k=1}^{\infty} \frac{1}{1 - x^k} \)，即欧拉函数的倒数<sup>[1](https://oeis.org/wiki/Partition_function)</sup> |
| 渐近 | 哈代与拉马努金（1918）：\( p(n) \sim \frac{1}{4n\sqrt{3}} e^{\pi\sqrt{2n/3}} \)，乌斯宾斯基于 1920 年独立得到<sup>[1](https://oeis.org/wiki/Partition_function)</sup> |
| 精确公式 | 拉德马赫关于 p(n) 的收敛无穷级数，发表于 1938 年，其首项即给出该渐近<sup>[3](https://londmathsoc.onlinelibrary.wiley.com/doi/10.1112/plms/s2-43.4.241)</sup><sup> • </sup><sup>[4](https://isa-afp.org/entries/Rademacher_Series.html)</sup> |
| 样本值 | p(200) = 3972999029388，麦克马洪用手算花了数月；p(500) = 2300165032574323995027<sup>[5](https://citeseerx.ist.psu.edu/document?doi=02ccf07dedfc18e749ec882e62099f4476db4d7e&repid=rep1&type=pdf)</sup> |
| 同余式 | 拉马努金发现了 p(n) 的众多同余式，包括恒等式 \( \sum_{k=0}^{\infty} p(5k+4) q^k = 5 \frac{(q^5)_\infty^5}{(q)_\infty^6} \)<sup>[6](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> |
| 群论计数 | p(n) 同时也是对称群 S<sub>n</sub> 的共轭类数，以及不可约表示数<sup>[2](https://oeis.org/A000041)</sup> |

## 定义与基本结构

n 的一个分拆，就是把 n 写成若干正整数之和而不计次序的写法，因此 3+1+1 与 1+3+1 是同一个分拆。分拆函数 p(n) 计数这些对象，并约定空和给出 p(0) = 1。<sup>[1](https://oeis.org/wiki/Partition_function)</sup> 等价地，p(n) 是非负整数解 b + 2c + 3d + 4e + ... = n 的个数，其中每个系数记录该大小的部分出现了多少次。<sup>[2](https://oeis.org/A000041)</sup>

**共轭。** 把分拆的费勒斯图按行读或按列读，可以看出：n 的恰含 m 个部分的分拆数，等于 n 的最大部分为 m 的分拆数；而部分数不超过 m 的分拆，与各部分均不超过 m 的分拆等数。<sup>[6](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> 同一种行列互换，也是大随机分拆的极限形状几何的基础。<sup>[7](https://eprints.whiterose.ac.uk/id/eprint/215004/8/Boltzmann%20distribution%20on%20%E2%80%9Cshort%E2%80%9D%20integer%20partitions%20with%20power%20parts%20Limit%20laws%20and%20sampling.pdf)</sup>

## 生成函数与递推式

分拆数的生成函数是欧拉函数的倒数：

\[ \sum_{n=0}^{\infty} p(n) x^n = \prod_{k=1}^{\infty} \frac{1}{1 - x^k}. \]

每个因子 \( 1/(1 - x^k) \) 贡献的是“部分 k 出现多少个”的选择，因此展开这个无穷乘积，就为每个分拆产生一项。<sup>[1](https://oeis.org/wiki/Partition_function)</sup>

欧拉的五边形数定理把这个乘积变成递推式。\( \prod (1 - x^k) \) 展开式中的指数是广义五边形数 0, 1, 2, 5, 7, 12, 15, 22, 26, 35, ...，符号交替，而分拆数由下式给出

\[ P(n) = \sum_{k=1}^{n} (-1)^{k+1} \left[ P\!\left(n - \tfrac{1}{2}k(3k-1)\right) + P\!\left(n - \tfrac{1}{2}k(3k+1)\right) \right]. \]

麦克马洪得到了等价的递推式 P(n) − P(n−1) − P(n−2) + P(n−5) + P(n−7) − P(n−12) − P(n−15) + ... = 0，其中对不超过 n 的广义五边形数求和，符号为 \( (-1)^{\lfloor (k+1)/2 \rfloor} \)。<sup>[6](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> 一个相关的递推式用到除数函数：\( P(n) = \frac{1}{n} \sum_{k=0}^{n-1} \sigma_1(n-k) P(k) \)。<sup>[6](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup>

## 渐近与精确公式

p(n) 的增长是子指数的，但很快。哈代与拉马努金于 1918 年得到渐近公式

\[ p(n) \sim \frac{1}{4n\sqrt{3}} \, e^{\pi \sqrt{2n/3}}, \]

而 J. V. 乌斯宾斯基于 1920 年独立得到了同一结果。<sup>[1](https://oeis.org/wiki/Partition_function)</sup> 他们的分析用的是为这个问题而发明的圆法，处理对象是戴德金η函数 \( \eta(q) = e^{\pi i z/12} \prod_{n \ge 1} (1 - e^{2\pi i n z}) \)。<sup>[5](https://citeseerx.ist.psu.edu/document?doi=02ccf07dedfc18e749ec882e62099f4476db4d7e&repid=rep1&type=pdf)</sup>

**拉德马赫级数。** 宾夕法尼亚大学的数学家汉斯·拉德马赫把这个渐近式精细化为一个精确的、绝对收敛的级数，于 1938 年发表在《伦敦数学学会会刊》上。<sup>[3](https://londmathsoc.onlinelibrary.wiley.com/doi/10.1112/plms/s2-43.4.241)</sup> 在其形式

\[ p(n) = \frac{1}{\pi\sqrt{2}} \sum_{k \ge 1} A_k(n) \sqrt{k}\, f(n,k), \]

中，\( A_k(n) \) 是涉及一个戴德金和、在单位根上取的和，\( f(n,k) \) 则含有 \( \sinh\!\left[ \frac{\pi}{k} \sqrt{\frac{2}{3}\left(n - \tfrac{1}{24}\right)} \right] \)，而首项恰好重现了哈代–拉马努金渐近。<sup>[4](https://isa-afp.org/entries/Rademacher_Series.html)</sup> 值得注意的是，拉德马赫的围道论证涉及法里数列与福特圆。<sup>[6](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> 该级数也是已知最高效的、计算单个给定 n 所对应的 p(n) 值的算法的依据。<sup>[4](https://isa-afp.org/entries/Rademacher_Series.html)</sup>

这些数本身增长得足够快，以至于手算一度是件苦差事：p(200) = 3972999029388 让麦克马洪花了数月工夫，而现代的计算机代数系统由级数展开可瞬间得到它；p(500) = 2300165032574323995027 也难不了多少。<sup>[5](https://citeseerx.ist.psu.edu/document?doi=02ccf07dedfc18e749ec882e62099f4476db4d7e&repid=rep1&type=pdf)</sup>

## 同余式

斯里尼瓦萨·拉马努金陈述了分拆函数的一些非同寻常的同余式，后来的工作给出了证明；MathWorld 记录了他的恒等式 \( \sum_{k=0}^{\infty} p(5k+4) q^k = 5 (q^5)_\infty^5 / (q)_\infty^6 \)，它最早由达林与莫德尔在 1920 年代初证明。<sup>[6](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> 宾夕法尼亚州立大学埃文·皮尤数学讲席教授乔治·E·安德鲁斯综述了这类同余式如何推广到多重分拆：沿着阿特金的工作，对于 \( P_\kappa(n) \)——即 n 的 k 分量多重分拆数——存在无穷族同余式，而这一计数函数已被证明在李代数的研究中很有用。<sup>[8](https://pure.psu.edu/en/publications/a-survey-of-multipartitions-congruences-and-identities/)</sup>

## 数学与物理各领域的联系

**表示论。** 同一个序列计数对称群 S<sub>n</sub> 的共轭类，因而也计数其不可约表示，这使 p(n) 成为有限群表示论中的一个基本量。<sup>[2](https://oeis.org/A000041)</sup>

**素数判定。** 2024 年，美国海军学院的威廉·克雷格、科隆大学的扬-威廉·范·伊特松和弗吉尼亚大学的小野健在《美国国家科学院院刊》上证明：素数集正是若干由分拆函数构成的显式方程的解集。例如，整数 n ≥ 2 为素数当且仅当

\[ (3n^3 - 13n^2 + 18n - 8) M_1(n) + (12n^2 - 120n + 212) M_2(n) - 960 M_3(n) = 0, \]

其中 \( M_a(n) \) 是麦克马洪分拆函数；而对于广义麦克马洪式函数，这样的整系数素数判定方程有无穷多个。<sup>[9](https://doi.org/10.1073/pnas.2409417121)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/2405.06451)</sup>

**统计力学。** 整数分拆为“总能量在不可分辨粒子间的随机分配”提供了模型：无限制分拆对应玻色–爱因斯坦统计下的玻色子，而严格分拆（不允许重复部分）对应费米–狄拉克统计与泡利不相容原理下的费米子。这一类比给出了玻色–爱因斯坦凝聚的组合图景：在绝对零度附近，粒子过多地聚集在最低能级上。<sup>[7](https://eprints.whiterose.ac.uk/id/eprint/215004/8/Boltzmann%20distribution%20on%20%E2%80%9Cshort%E2%80%9D%20integer%20partitions%20with%20power%20parts%20Limit%20laws%20and%20sampling.pdf)</sup> 统计力学技巧也能重现线性分拆与平面分拆的已知渐近。<sup>[11](https://arxiv.org/abs/1603.01049)</sup>

## 历史

莱布尼茨似乎是最早考虑把整数分拆为和式的数学家，但第一批深刻的发现出自欧拉，包括生成函数与五边形数定理。西尔维斯特是下一位主要贡献者，其后是费边·富兰克林；现代的渐近理论与精确理论则来自 G. H. 哈代、珀西·麦克马洪、斯里尼瓦萨·拉马努金和汉斯·拉德马赫。<sup>[12](https://academic.oup.com/book/11334/chapter-abstract/159965445)</sup>

## References

1. [Partition function, OeisWiki](https://oeis.org/wiki/Partition_function)
2. [A000041: Number of partitions of n, OEIS](https://oeis.org/A000041)
3. [Hans Rademacher (1938). On the Partition Function p(n). Proceedings of the London Mathematical Society s2-43, 241–254.](https://londmathsoc.onlinelibrary.wiley.com/doi/10.1112/plms/s2-43.4.241)
4. [Rademacher's Series for the Partition Function, Archive of Formal Proofs](https://isa-afp.org/entries/Rademacher_Series.html)
5. [Mathematics by Experiment, Section 5.1: Partition functions, CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=02ccf07dedfc18e749ec882e62099f4476db4d7e&repid=rep1&type=pdf)
6. [Partition Function P, Wolfram MathWorld](https://mathworld.wolfram.com/PartitionFunctionP.html)
7. [J.C. Peyen et al. (2024). Boltzmann distribution on "short" integer partitions with power parts. Advances in Applied Mathematics 159, 102739.](https://eprints.whiterose.ac.uk/id/eprint/215004/8/Boltzmann%20distribution%20on%20%E2%80%9Cshort%E2%80%9D%20integer%20partitions%20with%20power%20parts%20Limit%20laws%20and%20sampling.pdf)
8. [George E. Andrews (2008). A Survey of Multipartitions: Congruences and Identities. Surveys in Number Theory, Developments in Mathematics 17, 1–19.](https://pure.psu.edu/en/publications/a-survey-of-multipartitions-congruences-and-identities/)
9. [William Craig, Jan-Willem van Ittersum, Ken Ono (2024). Integer partitions detect the primes. PNAS 121(39): e2409417121.](https://doi.org/10.1073/pnas.2409417121)
10. [Craig, van Ittersum, Ono (2024). Integer partitions detect the primes. arXiv:2405.06451.](https://arxiv.org/abs/2405.06451)
11. [Andrij Rovenchak (2016). Statistical mechanics approach in the counting of integer partitions. Banach Center Publ. 109, 155–166.](https://arxiv.org/abs/1603.01049)
12. [Chapter 9, Partitions. Combinatorics: Ancient and Modern, Oxford Academic.](https://academic.oup.com/book/11334/chapter-abstract/159965445)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Integer sequences and partitions › Partitions

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/partition-numbers

English original: https://www.edgepedia.org/partition-numbers
