# 第一类斯特林数

**第一类斯特林数**（Stirling numbers of the first kind）是下降阶乘展开为 \( x \) 的幂时出现的整数系数 \( s(n,k) \)；从组合意义上看，\( |s(n,k)| \) 计数的是 \( \{1,2,\dots,n\} \) 的排列中恰好分解为 \( k \) 个循环的排列数。带符号的 \( s(n,k) \) 带有符号 \( (-1)^{n-k} \)，而不带符号的版本通常写作 \( \left[{n \atop k}\right] \)，称为斯特林循环数，直接计数排列的个数。<sup>[1](https://dlmf.nist.gov/26.8)</sup><sup> • </sup><sup>[2](https://dlmf.nist.gov/26.13)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | \( s(n,k) = (-1)^{n-k} \) 乘以 \( \{1,2,\dots,n\} \) 的恰有 \( k \) 个循环的排列数；\( s(n,n)=1 \)<sup>[1](https://dlmf.nist.gov/26.8)</sup> |
| 无符号形式 | \( \left[{n \atop k}\right] = |s(n,k)| \)，即斯特林循环数<sup>[2](https://dlmf.nist.gov/26.13)</sup> |
| 生成多项式 | \( \sum_{k=0}^{n} s(n,k)\,x^k = (x-n+1)_n \)，其中 \( (a)_n \) 为波赫哈默尔符号<sup>[1](https://dlmf.nist.gov/26.8)</sup> |
| 递推关系 | \( s(n,k) = s(n-1,k-1) - (n-1)\,s(n-1,k) \)<sup>[1](https://dlmf.nist.gov/26.8)</sup> |
| 边界值 | \( s(n,1) = (-1)^{n-1}(n-1)! \)；\( s(n,2) = (-1)^n (n-1)!\,(1+\tfrac12+\cdots+\tfrac{1}{n-1}) \)；\( -s(n,n-1) = \binom{n}{2} \)<sup>[1](https://dlmf.nist.gov/26.8)</sup> |
| 行和 | 当 \( n>1 \) 时 \( \sum_{k=1}^{n} s(n,k) = 0 \)；\( \sum_{k=1}^{n} (-1)^{n-k} s(n,k) = n! \)<sup>[1](https://dlmf.nist.gov/26.8)</sup> |
| 起源 | 以詹姆斯·斯特林（James Stirling）命名，其《微分方法》（*Methodus Differentialis*，1730）列出了阶乘与幂之间相互转换的系数表<sup>[3](https://www.cambridge.org/core/journals/proceedings-of-the-edinburgh-mathematical-society/article/stirling-numbers-and-polynomials/EDE9521EA5639E159282DD11AB394D69)</sup> |

## 定义与组合意义

\( n \) 个元素的每个排列都唯一地分解为互不相交的循环，即反复施加该排列所得的轨道。诸如 \( [ABC] \) 的循环与 \( [BCA] \)、\( [CAB] \) 视为相同，因为它们只相差循环旋转，但与 \( [CBA] \) 不同；循环在列表中的次序无关紧要。<sup>[4](https://encyclopediaofmath.org/wiki/Stirling_numbers)</sup> 不带符号的第一类斯特林数计数的是把 \( n \) 个带标号对象排成 \( k \) 个这样的循环的方式数。例如，四个对象可以排成两个循环，共有十一种方式。<sup>[4](https://encyclopediaofmath.org/wiki/Stirling_numbers)</sup>

带符号的约定附加因子 \( (-1)^{n-k} \)，因此当 \( n-k \) 为偶数时 \( s(n,k) \) 为正，为奇数时为负。DLMF 正是这样定义 \( s(n,k) \) 的，而配套的循环记号 \( \left[{n \atop k}\right] \) 满足 \( \left[{n \atop k}\right] = |s(n,k)| \)。<sup>[1](https://dlmf.nist.gov/26.8)</sup><sup> • </sup><sup>[2](https://dlmf.nist.gov/26.13)</sup> 记号从未完全统一：使用中的其他符号包括 \( S_n^{(k)} \)（阿布拉莫维茨与斯特根，福特）、\( S_n^k \)（乔丹、莫泽与怀曼）以及 \( (-1)^{n-k}\left[{n \atop k}\right] \)（克努特、格雷厄姆等）。<sup>[5](https://dlmf.nist.gov/26.1)</sup> MathWorld 在带符号约定下列出了 \( s(n,m) \)（里奥丹、罗曼），并指出无符号版本 \( S_1(n,m)=|s(n,m)| \) 也很常见。<sup>[6](https://mathworld.wolfram.com/StirlingNumberoftheFirstKind.html)</sup>

## 生成函数

带符号的数是下降阶乘的系数：<sup>[1](https://dlmf.nist.gov/26.8)</sup>

\[ \sum_{k=0}^{n} s(n,k)\,x^k = (x-n+1)_n, \]

其中 \( (a)_n = a(a+1)\cdots(a+n-1) \) 为波赫哈默尔符号。<sup>[1](https://dlmf.nist.gov/26.8)</sup> 等价地，不带符号的数是上升阶乘 \( y(y+1)\cdots(y+n-1) \) 的系数。<sup>[7](https://www-users.cse.umn.edu/~reiner/Classes/Ardila_handbook_chapter.pdf)</sup>

指数生成函数形式简洁：<sup>[1](https://dlmf.nist.gov/26.8)</sup>

\[ \sum_{n,k=0}^{\infty} s(n,k)\,\frac{x^n}{n!}\,y^k = (1+x)^y, \qquad |x|<1. \]

提取 \( y^k \) 的系数，得到概率应用中所用的单变量形式，<sup>[8](https://link.springer.com/article/10.1007/s00010-024-01073-1)</sup>

\[ \frac{\log^k(1+z)}{k!} = \sum_{n=k}^{\infty} s(n,k)\,\frac{z^n}{n!}, \qquad |z|<1. \]

## 递推与计算

带符号的数满足<sup>[1](https://dlmf.nist.gov/26.8)</sup>

\[ s(n,k) = s(n-1,k-1) - (n-1)\,s(n-1,k). \]

写成无符号形式即为 \( s(n,m) = s(n-1,m-1) + (n-1)\,s(n-1,m) \)，有直接的组合解读：要把 \( n \) 个元素的排列排成 \( m \) 个循环，最大元素要么是固定点，从而在其余 \( n-1 \) 个元素中留下 \( m-1 \) 个循环；要么被插入到有 \( m \) 个循环的排列的 \( n-1 \) 个位置之一。<sup>[9](https://www.jjj.de/pub/arndt-rand-perm-thesis.pdf)</sup> 无符号三角的前几行为 1；1, 1；2, 3, 1；6, 11, 6, 1；24, 50, 35, 10, 1。<sup>[9](https://www.jjj.de/pub/arndt-rand-perm-thesis.pdf)</sup>

更多恒等式把这些数在行与列之间联系起来，例如 \( s(n+1,k+1) = n!\sum_{j=k}^{n} \frac{(-1)^{n-j}}{j!}\,s(j,k) \)，以及一个有限差分公式把 \( \frac{1}{k!}\frac{d^k}{dx^k}f(x) \) 表示为以 \( s(n,k) \) 加权的 \( f \) 的前向差分之和。<sup>[1](https://dlmf.nist.gov/26.8)</sup> 阿布拉莫维茨与斯特根 1964 年的手册列出了 \( n \) 至 25 的 \( s(n,k) \) 表，戈德堡等人（1976）将表扩展到 \( n=40 \)。<sup>[10](https://dlmf.nist.gov/26.21)</sup>

## 与第二类及伯努利数的关系

第二类斯特林数 \( S(n,k) \) 计数把 \( \{1,\dots,n\} \) 划分为恰好 \( k \) 个非空子集的方式，而这两个数组作为幂与下降阶乘之间基变换的矩阵互为逆：\( x^n = \sum_k S(n,k)(x)_k \) 与 \( (x)_n = \sum_k s(n,k)x^k \) 并存。<sup>[1](https://dlmf.nist.gov/26.8)</sup><sup> • </sup><sup>[8](https://link.springer.com/article/10.1007/s00010-024-01073-1)</sup> 第一类数也出现在伯努利数 \( B_n \) 的公式中，例如 \( B_n = \sum_{k=0}^{n} (-1)^k \frac{k!\,S(n,k)}{k+1} \)。<sup>[11](http://dlmf.nist.gov/24.15)</sup>

## 渐近性与概率

当 \( n \) 很大时，这些数大致按阶乘增长，并且有精确的渐近展开。莫泽与怀曼于 1958 年在《伦敦数学会杂志》上发表了第一类斯特林数的渐近展开，<sup>[12](https://londmathsoc.onlinelibrary.wiley.com/doi/abs/10.1112/jlms/s1-33.2.133)</sup> 而 CWI 的 N. M. 特梅后来给出了关于第二参数 \( m \) 一致有效的渐近估计，一次覆盖整行。<sup>[13](https://ir.cwi.nl/pub/2304/2304D.pdf)</sup>

这些数还描述随机排列的循环结构。若 \( C \) 是均匀随机抽取的 \( \{1,\dots,n\} \) 的排列的循环总数，则 \( \mathbf{E}\,C = 1 + \tfrac12 + \cdots + \tfrac1n = \log n + O(1) \)，且任意固定长度 \( k \) 的循环数在 \( n \to \infty \) 时依分布收敛于强度为 \( 1/k \) 的泊松分布。<sup>[14](https://terrytao.wordpress.com/2011/11/23/the-number-of-cycles-in-a-random-permutation/)</sup> \( C \) 的分布正是其点质量与无符号斯特林数成正比的分布，这就是为什么在概率论中这些数被称为第一类斯特林分布。<sup>[15](https://probability.knu.ua/msta6/presentations/Marynych-slides-msta6-2025.pdf)</sup>

## 历史

詹姆斯·斯特林（James Stirling，1692–1770）是苏格兰数学家，于 1730 年出版了《微分方法》，这是一部关于级数求和与插值的论著。在阶乘与幂之间相互转换时，他列出了相关系数，并证明其表格的各列也给出了逆表达式的系数；正幂与负幂的系数如今为纪念他而分别称为第一类与第二类斯特林数。<sup>[16](https://mathshistory.st-andrews.ac.uk/DSB/Stirling.pdf)</sup> “第一类斯特林数”这一名称由尼尔森教授沿用蒂勒的叫法引入，因为斯特林是第一位提请人们注意其用途的著者，并给出了其初值的小表。<sup>[3](https://www.cambridge.org/core/journals/proceedings-of-the-edinburgh-mathematical-society/article/stirling-numbers-and-polynomials/EDE9521EA5639E159282DD11AB394D69)</sup>

## References

1. [DLMF §26.8 Set Partitions: Stirling Numbers, NIST Digital Library of Mathematical Functions](https://dlmf.nist.gov/26.8)
2. [DLMF §26.13 Permutations: Cycle Notation, NIST](https://dlmf.nist.gov/26.13)
3. [The Stirling Numbers and Polynomials, Proceedings of the Edinburgh Mathematical Society (Cambridge Core)](https://www.cambridge.org/core/journals/proceedings-of-the-edinburgh-mathematical-society/article/stirling-numbers-and-polynomials/EDE9521EA5639E159282DD11AB394D69)
4. [Stirling numbers, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Stirling_numbers)
5. [DLMF §26.1 Special Notation, NIST](https://dlmf.nist.gov/26.1)
6. [Stirling Number of the First Kind, Wolfram MathWorld](https://mathworld.wolfram.com/StirlingNumberoftheFirstKind.html)
7. [F. Ardila, Algebraic and geometric methods in enumerative combinatorics (handbook chapter)](https://www-users.cse.umn.edu/~reiner/Classes/Ardila_handbook_chapter.pdf)
8. [Probabilistic Stirling numbers and applications, Aequationes mathematicae (Springer, 2024)](https://link.springer.com/article/10.1007/s00010-024-01073-1)
9. [J. Arndt, Algorithms for Random Permutations](https://www.jjj.de/pub/arndt-rand-perm-thesis.pdf)
10. [DLMF §26.21 Tables, NIST](https://dlmf.nist.gov/26.21)
11. [DLMF §24.15 Related Sequences of Numbers, NIST](http://dlmf.nist.gov/24.15)
12. [L. Moser and M. Wyman (1958), Asymptotic Development of the Stirling Numbers of the First Kind, Journal of the London Mathematical Society s1-33, 133–146](https://londmathsoc.onlinelibrary.wiley.com/doi/abs/10.1112/jlms/s1-33.2.133)
13. [N. M. Temme, Asymptotic Estimates of Stirling Numbers, CWI](https://ir.cwi.nl/pub/2304/2304D.pdf)
14. [T. Tao (2011), The number of cycles in a random permutation, What's new](https://terrytao.wordpress.com/2011/11/23/the-number-of-cycles-in-a-random-permutation/)
15. [A. Marynych, r-Stirling numbers and Ewens permutations (slides, MSTA-6, 2025)](https://probability.knu.ua/msta6/presentations/Marynych-slides-msta6-2025.pdf)
16. [P. J. Wallis, James Stirling, Dictionary of Scientific Biography (MacTutor mirror)](https://mathshistory.st-andrews.ac.uk/DSB/Stirling.pdf)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Combinatorics › Enumerative combinatorics › Counting techniques and recurrences › Stirling numbers

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/stirling-numbers-of-the-first-kind

English original: https://www.edgepedia.org/stirling-numbers-of-the-first-kind
