# 分拆（数论）

在数论中，非负整数 \( n \) 的一个分拆，是若干个正整数构成的无序集合，其和为 \( n \)，而 \( p(n) \) 表示此类分拆的总数。<sup>[1](https://dlmf.nist.gov/26.2)</sup> 例如，\( p(5)=7 \)，这七个分拆分别是 \( 5 \)、\( 4+1 \)、\( 3+2 \)、\( 3+1+1 \)、\( 2+2+1 \)、\( 2+1+1+1 \) 和 \( 1+1+1+1+1 \)。<sup>[2](https://dlmf.nist.gov/27.14)</sup> 分拆数依次为 1、1、2、3、5、7、11、15、22、30、42、56、77、101、135、176、231、297、385、490、627、792。<sup>[3](https://oeis.org/A000041/internal)</sup> 按惯例，分拆从最大的加数写到最小的加数。<sup>[4](https://mathworld.wolfram.com/Partition.html)</sup> 这一主题位于组合数学与数论的交汇处：其核心函数 \( p(n) \) 拥有精确的收敛级数、深刻的同余性质，以及大约 \( e^{\pi\sqrt{2n/3}} \) 的增长率。<sup>[2](https://dlmf.nist.gov/27.14)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 和为 \( n \) 的若干个正整数构成的无序集合；\( \{1,1,1,2,4,4\} \) 是 13 的一个分拆，共六个部分。<sup>[1](https://dlmf.nist.gov/26.2)</sup> |
| 增长 | \( p(n) \sim e^{K\sqrt{n}}/(4n\sqrt{3}) \)，其中 \( K=\pi\sqrt{2/3} \)（哈代与拉马努金，1918 年）。<sup>[2](https://dlmf.nist.gov/27.14)</sup> |
| 样本值 | \( p(10)=42 \)，\( p(100)=190569292 \)，\( p(200)=3972999029388 \)。<sup>[2](https://dlmf.nist.gov/27.14)</sup> |
| 精确公式 | 拉德马赫（1937 年）给出了 \( p(n) \) 的一个收敛无穷级数，其首项即哈代–拉马努金渐近式。<sup>[5](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> |
| 高效计算 | 欧拉的五边形数递推可在 \( O(N^{3/2}) \) 时间内计算出 \( n \le N \) 的完整 \( p(n) \) 表。<sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup> |
| 同余 | 对所有 \( n \)，有 \( p(5n+4)\equiv 0 \pmod 5 \)、\( p(7n+5)\equiv 0 \pmod 7 \)、\( p(11n+6)\equiv 0 \pmod{11} \)（拉马努金）。<sup>[2](https://dlmf.nist.gov/27.14)</sup> |
| 表示论 | \( p(n) \) 等于对称群 \( S_n \) 的共轭类数，也等于其不可约表示数。<sup>[3](https://oeis.org/A000041/internal)</sup> |
| 计算纪录 | \( p(10^{20}) \) 有 11,140,086,260 位数字；使用 130 GB 内存，耗时 110 小时算出。<sup>[7](https://fredrikj.net/blog/2014/03/new-partition-function-record/)</sup> |

## 定义与基本例子

大小为 \( n \) 的整数分拆可以写成一个弱递减的正整数序列，其和为 \( n \)；等价地说，它是一个加数顺序无关的组合。<sup>[8](https://enumeration.ca/extensions/partitions/)</sup> 这一区别在数值上很重要：数字 4 有八个组合（4；3+1；1+3；2+2；2+1+1；1+2+1；1+1+2；1+1+1+1），但只有五个分拆；凯莱于 1876 年证明了关于组合的第一个非平凡定理。<sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup> 另一个不同的概念是集合 \( S \) 的划分，即若干个两两不相交的非空集合构成的无序集合，其并为 \( S \)。<sup>[1](https://dlmf.nist.gov/26.2)</sup> 集合划分由贝尔数计数：\( B_0=B_1=1 \)、\( B_2=2 \)、\( B_3=5 \)、\( B_4=15 \)、\( B_5=52 \)；将一个 \( n \) 元集合恰好划分为 \( m \) 类的数目由第二类斯特林数 \( S(n,m) \) 给出。贝尔数不应与数论中的分拆数 \( p(n) \) 混淆。<sup>[9](https://kmhalpern.com/wp-content/uploads/2025/01/part.pdf)</sup>

**图示与共轭。** 一个分拆可以编码为弱递减序列 \( \lambda \)，也可以编码为费勒斯图，其中第 \( i \) 行含 \( \lambda_i \) 个点；全部分拆的生成函数为 \( \Phi(z)=\prod_{k\ge 1} 1/(1-z^k) \)。<sup>[8](https://enumeration.ca/extensions/partitions/)</sup> 共轭分拆 \( \lambda' \) 定义为：\( \lambda'_j \) 等于满足 \( \lambda_i \ge j \) 的下标 \( i \) 的个数；共轭给出了“至多 \( k \) 个部分的分拆”与“每个部分至多为 \( k \) 的分拆”之间的双射。<sup>[8](https://enumeration.ca/extensions/partitions/)</sup> 受限计数遵循同样的模式：各部分互不相同的分拆满足 \( Q_n \sim e^{\pi\sqrt{n/3}}/(4\cdot 3^{1/4} n^{3/4}) \)，其指数增长率小于无限制情形的 \( e^{\pi\sqrt{2n/3}} \)。<sup>[10](https://link.springer.com/article/10.1007/s44007-024-00134-w)</sup>

## 生成函数与经典恒等式

对分拆的严肃研究始于欧拉，他在 1742 年给出了展开式 \( 1-x-x^2+x^5+x^7-x^{12}-x^{15}+\cdots \)。<sup>[11](https://nvlpubs.nist.gov/nistpubs/jres/74B/jresv74Bn1p1_A1b.pdf)</sup> 这就是五边形数定理：欧拉通过经验发现 \( \prod_{n\ge 1}(1-q^n) \) 等于 \( \sum_{n=-\infty}^{\infty} (-1)^n q^{n(3n-1)/2} \)，而在这一经验发现多年之后，他自己给出了证明。<sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup> 该定理给出递推式

\[ p(N) - p(N-1) - p(N-2) + p(N-5) + p(N-7) - \cdots = 0, \quad N > 0, \]

等价地，\( p(n)=p(n-1)+p(n-2)-p(n-5)-p(n-7)+\cdots \)，其中偏移量为五边形数 \( \omega(m)=(3m^2+m)/2 \)。<sup>[2](https://dlmf.nist.gov/27.14)</sup><sup> • </sup><sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup> 该递推可在 \( O(N^{3/2}) \) 时间内计算出 \( n \le N \) 的完整 \( p(n) \) 表，且此类算法中尚未发现更高效者；戈麦斯、萨阿德与辛格证明，它是分拆数所满足的一个无穷递推关系族中的第一个情形。<sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup><sup> • </sup><sup>[12](https://arxiv.org/html/2506.06101v2)</sup> 安德鲁斯称，欧拉引入生成函数是整个分拆史上最重要的创新。<sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup>

罗杰斯–拉马努金恒等式最早由罗杰斯于 1894 年发现，约 1913 年由拉马努金重新发现，是经典的限制分拆恒等式：将 \( n \) 分拆为彼此相差至少 2 的加数，与分拆为形如 \( 5m+1 \) 和 \( 5m+4 \) 的部分，两者数目相等；将 \( n \) 分拆为大于 1 且彼此相差至少 2 的部分，与分拆为形如 \( 5m+2 \) 和 \( 5m+3 \) 的部分，两者数目也相等。<sup>[11](https://nvlpubs.nist.gov/nistpubs/jres/74B/jresv74Bn1p1_A1b.pdf)</sup><sup> • </sup><sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup>

## 渐近式与精确公式

哈代与拉马努金观察到，分拆理论中有趣的函数表现为表示某些椭圆模函数的幂级数的系数，其中 \( p(n) \) 是 \( x^n \) 的系数。<sup>[13](https://ramanujan.sirinudi.org/Volumes/published/ram36.pdf)</sup> 利用圆法与模函数，他们于 1918 年得到了渐近解

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

乌斯彭斯基于 1920 年独立发现了这一结果。<sup>[2](https://dlmf.nist.gov/27.14)</sup><sup> • </sup><sup>[5](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup> “圆法”之名来自这样一个事实：随着展开的推进，其中各项依次由生成函数的奇点产生，这些奇点按单位圆上有理点的某种特定次序取用。<sup>[14](https://tensen.net/research/static/logos/number-theory/partitions-restricted/PIMSLectures.pdf)</sup> 为了说明公式与计算的一致程度，哈代与拉马努金请麦克马洪少校编制了一张从 \( n=1 \) 到 \( n=200 \) 的 \( p(n) \) 表。<sup>[15](https://www.ias.ac.in/public/Volumes/pmsc/089/03/0133-0157.pdf)</sup> 1942 年，埃尔德什证明该公式可用初等方法导出。<sup>[5](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup>

**拉德马赫的收敛级数。** 1937 年，拉德马赫发表了《分拆函数 \( p(n) \) 的一个收敛级数》，细节见《论分拆函数 \( p(n) \)》。<sup>[16](https://math.colgate.edu/~integers/v88/v88.pdf)</sup> 他的精确级数以哈代–拉马努金公式为首项；其围道涉及法里序列与福特圆，解析上的改动是将 \( e^{C\lambda_n/q} \) 替换为 \( 2\sinh(C\lambda_n/q) \)。<sup>[5](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup><sup> • </sup><sup>[16](https://math.colgate.edu/~integers/v88/v88.pdf)</sup> 其显著特点是，拉德马赫明确给出了任意有限项之后的误差上界。<sup>[16](https://math.colgate.edu/~integers/v88/v88.pdf)</sup> 因此该展开不仅是渐近级数，更是一个有限、精确的公式：求和前 \( c\sqrt{n} \) 项并四舍五入，即得 \( p(n) \) 的精确值。<sup>[14](https://tensen.net/research/static/logos/number-theory/partitions-restricted/PIMSLectures.pdf)</sup> 对于 \( p(200) \)，各项依次为 \( +3{,}972{,}998{,}993{,}185.896 \)、\( +36{,}282.978 \)、\( -87.584 \)、\( +5.147 \)、\( +1.424 \)、\( +0.071 \)、\( +0.000 \)、\( +0.044 \)，总和为 \( 3{,}972{,}999{,}029{,}387.975 \)，四舍五入即得精确值；8 项之后，结果与正确答案的误差在 0.025 以内。<sup>[14](https://tensen.net/research/static/logos/number-theory/partitions-restricted/PIMSLectures.pdf)</sup><sup> • </sup><sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup>

**一个代数公式。** 布鲁尼耶与小野（2011 年）发现了分拆函数的一个代数公式，将其表示为若干代数数的有限和。<sup>[5](https://mathworld.wolfram.com/PartitionFunctionP.html)</sup>

## 同余与算术性质

在研究麦克马洪的表时，拉马努金观察到 \( p(n) \) 对模 5、7、11 及其幂的若干同余性质，并提出了一个一般猜想。<sup>[15](https://www.ias.ac.in/public/Volumes/pmsc/089/03/0133-0157.pdf)</sup><sup> • </sup><sup>[17](https://ramanujan.sirinudi.org/Volumes/published/ram25.pdf)</sup> 约 1919 年，他证明了 \( p(5m+4)\equiv 0 \pmod 5 \)、\( p(25m+24)\equiv 0 \pmod{25} \)、\( p(7m+5)\equiv 0 \pmod 7 \)、\( p(49m+47)\equiv 0 \pmod{49} \)，并陈述了 \( p(11m+6)\equiv 0 \pmod{11} \)。<sup>[11](https://nvlpubs.nist.gov/nistpubs/jres/74B/jresv74Bn1p1_A1b.pdf)</sup> 拉马努金猜想了这样的同余的若干无穷族，在剔除错误者之后，这些猜想由沃森和阿特金证明；阿特金通过证明关于 11 的幂的猜想，基本解决了这一问题，完整定理是：若 \( 24n-1 \equiv 0 \pmod{5^a 7^b 11^c} \)，则 \( p(n) \equiv 0 \) 模该模数。<sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup><sup> • </sup><sup>[11](https://nvlpubs.nist.gov/nistpubs/jres/74B/jresv74Bn1p1_A1b.pdf)</sup> 莱默利用哈代–拉马努金–拉德马赫公式验证了拉马努金的猜想 \( p(599)\equiv 0 \pmod{5^3} \) 和 \( p(721)\equiv 0 \pmod{11^2} \)。<sup>[18](https://www3.risc.jku.at/publications/download/risc_4597/S1461157012001088a.pdf)</sup>

**秩与曲柄。** 分拆 \( \pi \vdash n \) 的秩为 \( \max(\pi) - \ell(\pi) \)，其中 \( \ell(\pi) \) 是部分数；戴森引入它，以组合方式解释模 5 和模 7 的同余，他还猜想了一个他称为“曲柄”的统计量，后由安德鲁斯与加文找到，它解释了模 11 的同余。<sup>[19](https://arxiv.org/abs/2403.04909)</sup>

**超越原模数。** 小野（2000 年）证明：对每个素数 \( q>3 \)，都存在整数 \( a \) 和 \( b \)，使得对所有 \( n \) 有 \( p(an+b)\equiv 0 \pmod q \)；例如 \( p(157525693n+111247)\equiv 0 \pmod{13} \)。<sup>[2](https://dlmf.nist.gov/27.14)</sup>

## 数字一览

分拆数增长很快：\( p(10)=42 \)、\( p(20)=627 \)、\( p(30)=5604 \)、\( p(40)=37338 \)、\( p(50)=204226 \)、\( p(100)=190569292 \)，以及 \( p(200)=3972999029388 \)。<sup>[1](https://dlmf.nist.gov/26.2)</sup><sup> • </sup><sup>[2](https://dlmf.nist.gov/27.14)</sup> 渐近式 \( e^{\pi\sqrt{2n/3}}/(4n\sqrt{3}) \) 刻画了这一增长。<sup>[2](https://dlmf.nist.gov/27.14)</sup>

**大规模计算 \( p(n) \)。** 弗雷德里克·约翰松表明，哈代–拉马努金–拉德马赫公式可实现为以软最优复杂度 \( O(n^{1/2+o(1)}) \) 计算 \( p(n) \) 的算法，相比此前发表的软件提速超过 500 倍。<sup>[18](https://www3.risc.jku.at/publications/download/risc_4597/S1461157012001088a.pdf)</sup> 拉德马赫的误差界意味着 \( O(n^{1/2}) \) 项即已足够，因为余项可被压到 \( 1/2 \) 以下，再对和四舍五入；该算法接近最优，因为其位复杂度比 \( p(n) \) 的二进制位数大不了多少。<sup>[18](https://www3.risc.jku.at/publications/download/risc_4597/S1461157012001088a.pdf)</sup> 该实现是 FLINT 库的一部分，依 GNU 通用公共许可证发布，它利用紧精度估计和指数和的符号因式分解来求级数的截断。<sup>[18](https://www3.risc.jku.at/publications/download/risc_4597/S1461157012001088a.pdf)</sup><sup> • </sup><sup>[20](https://flintlib.org/doc/partitions.html)</sup> 它被用来计算 \( p(10^{19}) \)，并为分拆函数确定了 220 多亿个新的同余，扩展了韦弗编制的包含 76,065 个同余的表。<sup>[18](https://www3.risc.jku.at/publications/download/risc_4597/S1461157012001088a.pdf)</sup>

纪录性的计算 \( p(10^{20}) \) 有 11,140,086,260 位数字，使用 130 GB 内存、耗时 110 小时算出；该算法 \( O(n^{0.5+\varepsilon}) \) 的时间与空间复杂度是软最优的，因为 \( p(n) \) 有 \( \Theta(n^{0.5}) \) 个二进制位。<sup>[7](https://fredrikj.net/blog/2014/03/new-partition-function-record/)</sup> 前一个纪录值是 \( p(10^{19}) \approx 5.65 \times 10^{3{,}522{,}804{,}577} \)，有 3,522,804,578 位数字，十进制展开以 5646928403… 开头。<sup>[21](https://fredrikj.net/math/part.pdf)</sup>

## 与其他领域的联系

分拆为对称群的表示论提供了索引：\( p(n) \) 是 \( S_n \) 中共轭类的数目，也是其不可约表示的数目。<sup>[3](https://oeis.org/A000041/internal)</sup> 图示工具来自牧师阿尔弗雷德·杨，他在二十世纪之交围绕不变量理论的一系列论文中引入了分拆及其变体，即今之所谓杨表，用于后来被称为对称群表示论的领域。<sup>[6](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)</sup>

2024 年《美国国家科学院院刊》上的一篇论文表明，素数是一些研究得很透彻的分拆函数中无穷多个特殊“丢番图方程”的解；用作者的话说，整数分拆以无穷多种自然方式检测素数。<sup>[22](https://www.pnas.org/doi/10.1073/pnas.2409417121)</sup>

## 近期进展

近期工作从几个方向拓宽了经典理论。2024 年《数学》期刊上的一篇论文为两族一般的分拆函数提出了统一的渐近框架，解决了发布在 OEIS 上的若干猜想，所用工具为梅林变换、留数分析与鞍点法。<sup>[10](https://link.springer.com/article/10.1007/s44007-024-00134-w)</sup> 2024 年《拉马努金杂志》上的一篇文章给出了超分拆函数模 \( m \)（对 \( m=3,5,7,11 \)）的同余的显式无穷族，以及 \( m=13,17,19 \) 的有限族，使特雷尼尔早先的存在性结果变得有效。<sup>[23](https://link.springer.com/article/10.1007/s11139-024-00953-z)</sup> 另一方面，2025 年的一篇论文证明：除平凡情形外，使得存在 \( \beta \) 满足对所有 \( n \) 有 \( p(\ell Q n+\beta)\equiv 0 \pmod{\ell} \) 的素数 \( Q \) 之集合密度为零，因此半素数等差数列上的同余十分稀少。<sup>[24](https://link.springer.com/article/10.1007/s11139-025-01245-w)</sup> 2025 年的一篇 arXiv 论文通过权为 \( \ell-1 \) 的尖形式对应的狄利克雷级数的 \( \ell \)-分歧值的赫克迹，给出了拉马努金同余的一个新证明，并指出权 4、6、10 中不存在非平凡尖形式。<sup>[12](https://arxiv.org/html/2506.06101v2)</sup> 同样在 2025 年，一项工作重新审视了汉斯拉杰·古普塔 1975 年的技巧，推广了他关于部分取自有限集 \( G \) 的分拆的 \( p(n,G) \) 定理，将生成函数方法与多面体几何联系起来，并用之证明了一无穷族分拆同余存在组合见证，即所谓“曲柄”。<sup>[25](https://www.worldscientific.com/doi/10.1142/S1793042125500320)</sup>

## References

1. [DLMF §26.2 Basic Definitions, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/26.2)
2. [DLMF §27.14 Unrestricted Partitions, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/27.14)
3. [OEIS A000041: the partition numbers](https://oeis.org/A000041/internal)
4. [Partition, Wolfram MathWorld](https://mathworld.wolfram.com/Partition.html)
5. [Partition Function P, Wolfram MathWorld](https://mathworld.wolfram.com/PartitionFunctionP.html)
6. [George E. Andrews, "Partitions" (survey chapter)](https://personal.science.psu.edu/lxv1/alg/antheory/preprint/andrews/chapter.pdf)
7. [Fredrik Johansson (2014), "New partition function record: p(10^20) computed"](https://fredrikj.net/blog/2014/03/new-partition-function-record/)
8. [Integer Partitions, An Invitation to Enumeration](https://enumeration.ca/extensions/partitions/)
9. [Partitions of Sets (combinatorics textbook chapter)](https://kmhalpern.com/wp-content/uploads/2025/01/part.pdf)
10. [A Unified Treatment of Families of Partition Functions, La Matematica (2024)](https://link.springer.com/article/10.1007/s44007-024-00134-w)
11. [Partitions — a survey, NIST Journal of Research, Section 74B](https://nvlpubs.nist.gov/nistpubs/jres/74B/jresv74Bn1p1_A1b.pdf)
12. [Ramanujan's partition generating functions modulo ℓ, arXiv (2025)](https://arxiv.org/html/2506.06101v2)
13. [G. H. Hardy and S. Ramanujan, "Asymptotic formulæ in combinatory analysis" (1918)](https://ramanujan.sirinudi.org/Volumes/published/ram36.pdf)
14. [Lectures on Integer Partitions, PIMS](https://tensen.net/research/static/logos/number-theory/partitions-restricted/PIMSLectures.pdf)
15. [Ramanujan and the congruence properties of partitions, Proceedings of the Mathematical Sciences (Indian Academy of Sciences)](https://www.ias.ac.in/public/Volumes/pmsc/089/03/0133-0157.pdf)
16. [Integers journal article on Rademacher's formula (v88)](https://math.colgate.edu/~integers/v88/v88.pdf)
17. [S. Ramanujan, "Some properties of p(n), the number of partitions of n"](https://ramanujan.sirinudi.org/Volumes/published/ram25.pdf)
18. [Fredrik Johansson, "Efficient implementation of the Hardy–Ramanujan–Rademacher formula", LMS J. Comput. Math.](https://www3.risc.jku.at/publications/download/risc_4597/S1461157012001088a.pdf)
19. [Hecke Relations for Eta Multipliers and Congruences of Higher-Order Smallest Parts Functions, arXiv (2024)](https://arxiv.org/abs/2403.04909)
20. [partitions.h — computation of the partition function, FLINT documentation](https://flintlib.org/doc/partitions.html)
21. [Partitions in the quintillions, Johansson supplementary computation tables](https://fredrikj.net/math/part.pdf)
22. [Integer partitions detect the primes, PNAS (2024)](https://www.pnas.org/doi/10.1073/pnas.2409417121)
23. [Explicit families of congruences for the overpartition function, The Ramanujan Journal (2024)](https://link.springer.com/article/10.1007/s11139-024-00953-z)
24. [Scarcity of partition congruences on semiprime progressions, The Ramanujan Journal (2025)](https://link.springer.com/article/10.1007/s11139-025-01245-w)
25. [Hansraj Gupta's 'A technique in partitions' revisited, International Journal of Number Theory (2025)](https://www.worldscientific.com/doi/10.1142/S1793042125500320)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; 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/partition-number-theory

English original: https://www.edgepedia.org/partition-number-theory
