# 生成函数变换

生成函数变换是指将一个生成函数、或其所编码的系数序列，系统地转换为另一个的任何操作。本主题涵盖幂级数上的初等代数运算（缩放、平移、微分与乘积）、序列到序列的变换（如二项式变换与斯特林变换）、在常生成函数与指数生成函数之间转换的积分公式，以及诸如Riordan阵列这样能一次性组织整个变换族的矩阵框架。

| 关键事实 | 详情 |
|---|---|
| 被变换的对象 | 常生成函数 \( F(x) = \sum_{n \ge 0} f(n) x^{n} \) 与指数生成函数 \( F(x) = \sum_{n \ge 0} f(n) x^{n}/n! \) 是序列 \( f(n) \) 的两种标准编码<sup>[1](https://math.mit.edu/~rstan/ec/ec1.pdf)</sup> |
| 初等运算 | 将 \( x \) 替换为其倍数会缩放系数，乘以 \( x \) 的幂会平移下标，微分将第 \( n \) 个系数乘以其下标，两个级数相乘则构成其系数序列的柯西乘积<sup>[2](https://guraltsev.github.io/combinatorics-fall2026/lecture-notes/unit-2-generating-functions/03-ordinary-generating-functions-advanced.html)</sup> |
| 常生成函数–指数生成函数转换 | 拉普拉斯变换为指数生成函数到常生成函数的转换提供了积分公式；反方向即常生成函数到指数生成函数则需要更精细的积分，其证明经由倒数伽马函数的汉克尔环围道以及哈达玛乘积表示给出<sup>[3](https://arxiv.org/abs/1809.03933)</sup> |
| 二项式变换 | 一种经典的序列变换，通过二项式系数和将 \( (a_n) \) 变为 \( (b_n) \)；若 \( a_n \) 的指数生成函数为 \( f(x) \)，则变换后序列的指数生成函数由与指数函数复合得到<sup>[4](https://mathworld.wolfram.com/BinomialTransform.html)</sup><sup> • </sup><sup>[5](https://cjhb.site/Files.php/Books/Discrete%20Mathematics/%28Discrete%20Mathematics%20and%20Its%20Applications%29%20Istv%C3%A1n%20Mez%C5%91%20-%20Combinatorics%20and%20Number%20Theory%20of%20Counting%20Sequences-CRC%20Press%20%282020%29.pdf)</sup> |
| 斯特林变换 | 存在计算斯特林变换及其逆的算法，将通常的变换推广到满足两项递推的一类序列<sup>[6](https://arxiv.org/abs/1212.0957)</sup> |
| Riordan阵列 | 由一对生成函数 \( (g, f) \) 定义的无限下三角矩阵，其第 \( k \) 列的生成函数为 \( g f^{k} \)；Riordan阵列基本定理将阵列作用于幂级数转化为矩阵–向量乘法<sup>[7](https://ecajournal.haifa.ac.il/Volume2024/ECA2024_S2B1.pdf)</sup> |
| 概率形式 | 对于取值于非负整数的离散随机变量，概率生成函数 \( G_X(s) = \mathrm{E}(s^{X}) \) 是研究独立随机变量之和、更新论、随机游走与分支过程所用的变换<sup>[8](https://www.maths.dur.ac.uk/users/ostap.hryniv/teaching/Probability2/Probability2-notes.html)</sup><sup> • </sup><sup>[9](https://academic.oup.com/book/52807/chapter-abstract/421884091)</sup> |

## 被变换的是什么

生成函数通过幂级数 \( F(x) = \sum_{n \ge 0} f(n) x^{n}/B(n) \) 表示函数 \( f : \mathbb{N} \to \mathbb{C} \)，其中 \( B(n) \) 为固定的归一化因子；常生成函数取 \( B(n) = 1 \)，指数生成函数取 \( B(n) = n! \)<sup>[1](https://math.mit.edu/~rstan/ec/ec1.pdf)</sup>。在组合数学中，这些级数通常被当作形式幂级数处理，按代数规则操作而不诉诸收敛性，指数与对数的通常函数恒等式与微分恒等式在这一框架下依然成立<sup>[10](https://www.math.colostate.edu/~hulpke/lectures/m501/notes.html)</sup>。

变换的意义在于：级数上的代数运算对应于被计数对象上的操作。级数相加对应于被计数集合的不交并，相乘对应于独立选择，复合则对应于将一种结构代入另一种结构<sup>[2](https://guraltsev.github.io/combinatorics-fall2026/lecture-notes/unit-2-generating-functions/03-ordinary-generating-functions-advanced.html)</sup>。由于这些对应关系是精确的，一个计数问题可以被翻译为代数问题，在代数层面求解，再通过系数提取翻译回来。

## 单个级数上的初等运算

对生成函数施加固定的代数运算，会系统地变换其系数序列<sup>[2](https://guraltsev.github.io/combinatorics-fall2026/lecture-notes/unit-2-generating-functions/03-ordinary-generating-functions-advanced.html)</sup>：

1. **自变量缩放。** 将 \( x \) 替换为 \( c x \)，第 \( n \) 个系数乘以 \( c^{n} \)。
2. **下标平移。** 乘以 \( x \) 的幂，序列各项沿下标轴平移，在需要处补零。
3. **下标乘法。** 微分后再乘以 \( x \)，每个系数乘以其下标；重复该操作则乘以更高次的下标幂。
4. **累加求和。** 乘以 \( 1/(1-x) \)，将序列替换为其逐项部分和。
5. **柯西乘积。** 两个级数相乘，得到其系数序列的卷积。

这些运算可以组合。例如，筛法经典上是一系列对二项式系数交错和的操弄，在生成函数的语言中则归结为单一的替换规则 \( N(x) = E(x+1) \)，未知量由此直接读出<sup>[11](https://www.math.cmu.edu/users/af1p/Teaching/Combinatorics/Slides/Notes/gfology.pdf)</sup>。

## 序列变换：二项式与斯特林

**二项式变换。** 二项式变换将序列 \( a_0, a_1, a_2, \ldots \) 变为新序列 \( b_0, b_1, b_2, \ldots \)，后者由带交错符号的二项式系数和定义<sup>[4](https://mathworld.wolfram.com/BinomialTransform.html)</sup>。用生成函数的话说，若 \( a_n \) 的指数生成函数为 \( f(x) \)，则该变换通过与指数函数复合来实现，这一关系在计数序列理论中已有记载<sup>[5](https://cjhb.site/Files.php/Books/Discrete%20Mathematics/%28Discrete%20Mathematics%20and%20Its%20Applications%29%20Istv%C3%A1n%20Mez%C5%91%20-%20Combinatorics%20and%20Number%20Theory%20of%20Counting%20Sequences-CRC%20Press%20%282020%29.pdf)</sup>。此类变换贯穿于Riordan阵列的文献之中；卡塔兰变换及相关整数序列上的变换即被列为早期应用<sup>[12](https://www.researchgate.net/publication/228562578_A_bibliography_on_Riordan_arrays)</sup>。

**斯特林变换。** 第一类与第二类斯特林数各有其生成函数，变换正是利用这一点。对第二类 \( S(n,k) \)，固定 \( k \) 时关于 \( n \) 的常生成函数为

\[ \sum_{n=0}^{\infty} S(n,k)\, x^{n} = \frac{x^{k}}{(1-x)(1-2x)\cdots(1-kx)}, \]

而二元指数生成函数为 \( \sum_{n,k} S(n,k)\, x^{n} y^{k}/n! = \exp\bigl(y(\mathrm{e}^{x}-1)\bigr) \)<sup>[13](https://dlmf.nist.gov/26.8)</sup>。序列的斯特林变换及其逆可以算法化地计算，该理论还可推广为一个覆盖满足两项递推的序列的一般恒等式<sup>[6](https://arxiv.org/abs/1212.0957)</sup>。

## 常形式与指数形式之间的转换

序列的两种标准编码不能通过初等代数互换，需要专门的积分公式来桥接。拉普拉斯变换给出了将指数生成函数转换为常生成函数的积分公式。反方向即常生成函数到指数生成函数更为困难：研究生成函数变换的数学家马克西·D.施密特（Maxie D. Schmidt）证明了常生成函数到指数生成函数变换积分的两种变体，一种来自倒数伽马函数的汉克尔环围道表示，另一种来自两个生成函数的哈达玛乘积（逐系数乘积）积分表示的傅里叶级数展开<sup>[3](https://arxiv.org/abs/1809.03933)</sup>。同一纲领还产生了与多重对数函数、狄利克雷级数和欧拉和相关的变换，并应用于整数 \( k \ge 2 \) 处 zeta 函数常数 \( \zeta(k) \) 的极限行为<sup>[14](https://arxiv.org/abs/1610.09666)</sup>。

## Riordan阵列作为系统框架

许多序列变换都可纳入单一的矩阵形式。Riordan阵列是由两个生成函数 \( g \) 与 \( f \) 确定的无限下三角矩阵，其第 \( k \) 列的生成函数与 \( g f^{k} \) 相关<sup>[7](https://ecajournal.haifa.ac.il/Volume2024/ECA2024_S2B1.pdf)</sup>。佛罗伦萨大学数学教授伦佐·斯普鲁尼奥利（Renzo Sprugnoli）于1994年证明，这一概念可以构造性地用于求许多组合和的生成函数，由此可得涉及二项式系数与斯特林数的和的封闭形式或渐近值<sup>[15](https://www.sciencedirect.com/science/article/pii/0012365X9200570H)</sup>。

Riordan群本身于1991年首次被描述，以《组合恒等式》（*Combinatorial Identities*）的作者约翰·里奥丹（John Riordan）命名；其群结构为恒等式的反演提供了系统方法，而恒等式反演正是该书的一大主题<sup>[7](https://ecajournal.haifa.ac.il/Volume2024/ECA2024_S2B1.pdf)</sup>。Riordan阵列基本定理规定了阵列作用于幂级数的运算，并对应为矩阵作用于向量，为组合恒等式、多项式序列、格路计数与线性递推提供了描述性与分析性工具<sup>[16](https://www.mdpi.com/2227-7390/13/2/242)</sup>。行和与交错和生成函数刻画了这些阵列及其子群，并可推广到加权、期望值生成函数<sup>[17](https://www.sciencedirect.com/science/article/pii/S0024379516302105)</sup>。后来的推广包括指数型、双型、几乎Riordan型与交织型阵列，其应用延伸到可积格模型（如六顶点模型与二十顶点模型）中出现的序列<sup>[16](https://www.mdpi.com/2227-7390/13/2/242)</sup>。

## 概率中的变换方法

概率论以分布系数使用同一套工具。对于取值于 \( \{0,1,2,\ldots\} \) 的离散随机变量 \( X \)，概率生成函数为

\[ G_X(s) = \mathrm{E}\bigl(s^{X}\bigr) = \sum_{k=0}^{\infty} s^{k}\, \mathrm{P}(X=k), \]

即 \( X \) 的概率质量函数的生成函数<sup>[8](https://www.maths.dur.ac.uk/users/ostap.hryniv/teaching/Probability2/Probability2-notes.html)</sup>。由此可以计算 \( X \) 的概率分布、期望与方差<sup>[18](https://encyclopediaofmath.org/wiki/Generating_function)</sup>。更一般的随机变量由矩生成函数与特征函数处理，这些变换特别适用于独立随机变量之和，应用于更新论、随机游走与分支过程；反演定理从特征函数恢复分布，连续性定理则支撑极限的研究，包括大数定律与中心极限定理<sup>[9](https://academic.oup.com/book/52807/chapter-abstract/421884091)</sup>。

## 渐近变换

另一类变换从生成函数的解析行为中提取系数的渐近信息。在解析组合学中，生成函数奇点的位置决定其系数序列的指数增长，而奇点分析将主奇点 \( \sigma \) 附近的局部展开逐项转化为系数的渐近形式：按函数 \( (1 - z/\sigma)^{-\alpha} \) 展开，对应系数为 \( C \cdot n^{\alpha-1}/(\Gamma(\alpha)\, \sigma^{n}) \) 阶<sup>[19](https://algo.inria.fr/flajolet/Publications/Flajolet07.pdf)</sup>。该方法适用于多种解析类型的函数，并推广到信息论中出现的含对数与分数次幂的二项式和<sup>[20](https://www.sciencedirect.com/science/article/pii/S0304397598002205)</sup>。

## 历史

生成函数于十八世纪被引入，以方便计数问题中的计算。莱昂哈德·欧拉（Leonhard Euler）为此目的发展了生成函数，而亚伯拉罕·棣莫弗（Abraham de Moivre，1667–1754）独立于欧拉发现了这一技术；棣莫弗的工作首次展示了该概念在应用概率中的用处<sup>[21](https://www.cambridge.org/core/books/abs/understanding-probability/generating-functions/328A730739B05E8F23201FA62BD0AEB8)</sup>。历史归属尚无定论：通常认为该方法可追溯至欧拉与拉普拉斯，尽管包括 H. A. Seal 在内的一些概率史家指出，棣莫弗才是第一个应用它的人<sup>[22](https://www.probabilityandfinance.com/sheynin/036_liap.pdf)</sup>。在1748年关于将正整数分拆为加数的工作中，欧拉奠定了生成函数方法的开端，使其成为计算组合构型的基本技术之一<sup>[23](https://encyclopediaofmath.org/wiki/Combinatorial_analysis)</sup>。组合数学史家 P. P. 佩尔米亚科夫（P. P. Permjakov）将该方法的起源追溯至枚举组合问题求解方法的积累与发展，而在很长时期内，枚举组合问题几乎构成了组合数学的全部内容<sup>[22](https://www.probabilityandfinance.com/sheynin/036_liap.pdf)</sup>。

## References

1. [Richard P. Stanley, *Enumerative Combinatorics*, Volume 1, section 3.18 (ordinary and exponential generating functions), MIT.](https://math.mit.edu/~rstan/ec/ec1.pdf)
2. [Ordinary generating functions: constructions and coefficient extraction, Combinatorics lecture notes (Fall 2026).](https://guraltsev.github.io/combinatorics-fall2026/lecture-notes/unit-2-generating-functions/03-ordinary-generating-functions-advanced.html)
3. [Maxie D. Schmidt (2018). A Short Note on Integral Transformations and Conversion Formulas for Sequence Generating Functions. arXiv:1809.03933.](https://arxiv.org/abs/1809.03933)
4. [Binomial Transform, Wolfram MathWorld.](https://mathworld.wolfram.com/BinomialTransform.html)
5. [István Mező (2020). *Combinatorics and Number Theory of Counting Sequences*, CRC Press.](https://cjhb.site/Files.php/Books/Discrete%20Mathematics/%28Discrete%20Mathematics%20and%20Its%20Applications%29%20Istv%C3%A1n%20Mez%C5%91%20-%20Combinatorics%20and%20Number%20Theory%20of%20Counting%20Sequences-CRC%20Press%20%282020%29.pdf)
6. [Generalized Stirling transform. arXiv:1212.0957.](https://arxiv.org/abs/1212.0957)
7. [Dennis E. Davenport, Shakuan K. Frankson, Louis W. Shapiro, and Leon C. Woodson (2024). An Invitation to the Riordan Group. *Enumerative Combinatorics and Applications* 4:3.](https://ecajournal.haifa.ac.il/Volume2024/ECA2024_S2B1.pdf)
8. [Probability II lecture notes, Department of Mathematics, Durham University.](https://www.maths.dur.ac.uk/users/ostap.hryniv/teaching/Probability2/Probability2-notes.html)
9. [Geoffrey R. Grimmett and David R. Stirzaker (2001). Generating functions and their applications, Chapter 5 of *Probability and Random Processes*, Oxford University Press.](https://academic.oup.com/book/52807/chapter-abstract/421884091)
10. [Alexander Hulpke, Combinatorics lecture notes, Colorado State University.](https://www.math.colostate.edu/~hulpke/lectures/m501/notes.html)
11. [Herbert S. Wilf, *generatingfunctionology* (course edition), Carnegie Mellon University.](https://www.math.cmu.edu/users/af1p/Teaching/Combinatorics/Slides/Notes/gfology.pdf)
12. [Renzo Sprugnoli (2016). A bibliography on Riordan arrays.](https://www.researchgate.net/publication/228562578_A_bibliography_on_Riordan_arrays)
13. [DLMF §26.8: Set Partitions: Stirling Numbers, NIST Digital Library of Mathematical Functions.](https://dlmf.nist.gov/26.8)
14. [Maxie D. Schmidt (2016). Generating Function Transformations Related to Polylogarithm Functions and the k-Order Harmonic Numbers. arXiv:1610.09666.](https://arxiv.org/abs/1610.09666)
15. [Renzo Sprugnoli (1994). Riordan arrays and combinatorial sums. *Discrete Mathematics* 132(1–3), 267–290.](https://www.sciencedirect.com/science/article/pii/0012365X9200570H)
16. [Paul Barry (2025). Extensions of Riordan Arrays and Their Applications. *Mathematics* 13(2), 242.](https://www.mdpi.com/2227-7390/13/2/242)
17. [Tian-Xiao He and Louis W. Shapiro (2016). Row sums and alternating sums of Riordan arrays. *Linear Algebra and its Applications* 507, 77–95.](https://www.sciencedirect.com/science/article/pii/S0024379516302105)
18. [Generating function, Encyclopedia of Mathematics.](https://encyclopediaofmath.org/wiki/Generating_function)
19. [Philippe Flajolet (2007). Analytic Combinatorics: complex asymptotics and generating functions, INRIA.](https://algo.inria.fr/flajolet/Publications/Flajolet07.pdf)
20. [Singularity analysis and asymptotics of Bernoulli sums. *Theoretical Computer Science* 215(1–2), 371–381 (1999).](https://www.sciencedirect.com/science/article/pii/S0304397598002205)
21. [Generating functions, Chapter 14 of Henk Tijms, *Understanding Probability*, Cambridge University Press.](https://www.cambridge.org/core/books/abs/understanding-probability/generating-functions/328A730739B05E8F23201FA62BD0AEB8)
22. [P. P. Permjakov (1980). From the History of the Combinatorial Analysis: On the Development of the Method of Generating Functions until the Mid-19th Century, reproduced in Studies in the History of Statistics and Probability.](https://www.probabilityandfinance.com/sheynin/036_liap.pdf)
23. [Combinatorial analysis, Encyclopedia of Mathematics.](https://encyclopediaofmath.org/wiki/Combinatorial_analysis)

---
*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 › Enumerative combinatorics › Generating functions and symbolic methods › Generating function transformations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/generating-function-transformation

English original: https://www.edgepedia.org/generating-function-transformation
