# 伯努利数

伯努利数是一列有理数 \( B_0, B_1, B_2, \ldots \)，定义为指数生成函数 \( \frac{t}{\mathrm{e}^{t}-1} = \sum_{n=0}^{\infty} B_n \frac{t^n}{n!} \) 中的系数。它们由雅各布·伯努利（Jacob Bernoulli）在研究与整数幂和有关的问题时引入，如今遍布于分析与数论之中，出现在欧拉–麦克劳林求和公式里，出现在黎曼ζ函数在偶整数处的取值中，也出现在分圆域的算术里。<sup>[1](http://dlmf.nist.gov/24.2)</sup><sup> • </sup><sup>[2](https://dlmf.nist.gov/24.17)</sup>

| 关键事实 | 详情 |
|---|---|
| 生成函数 | \( \frac{t}{\mathrm{e}^{t}-1} = \sum_{n=0}^{\infty} B_n \frac{t^n}{n!} \)<sup>[1](http://dlmf.nist.gov/24.2)</sup> |
| 最初的取值 | \( B_0=1 \)，\( B_1=-\tfrac{1}{2} \)，\( B_2=\tfrac{1}{6} \)，\( B_4=-\tfrac{1}{30} \)，\( B_6=\tfrac{1}{42} \)，\( B_8=-\tfrac{1}{30} \)，\( B_{10}=\tfrac{5}{66} \)，\( B_{12}=-\tfrac{691}{2730} \)<sup>[1](http://dlmf.nist.gov/24.2)</sup> |
| 奇数项为零 | 对 \( n \ge 1 \)，\( B_{2n+1}=0 \)<sup>[1](http://dlmf.nist.gov/24.2)</sup> |
| 分母 | 由冯·施陶特–克劳森定理，\( B_{2n} \) 的分母是所有满足 \( p-1 \) 整除 \( 2n \) 的素数 \( p \) 之积<sup>[3](https://dlmf.nist.gov/24.10)</sup> |
| ζ值 | \( \zeta(2n) = \frac{(2\pi)^{2n}}{2(2n)!}\left|B_{2n}\right| \) 以及 \( \zeta(-n) = -\frac{B_{n+1}}{n+1} \)<sup>[4](http://dlmf.nist.gov/25.6)</sup> |
| 增长 | \( (-1)^{n+1} B_{2n} \sim 4\sqrt{\pi n}\left(\frac{n}{\pi \mathrm{e}}\right)^{2n} \)，因此这些数增长得超指数般快<sup>[5](https://dlmf.nist.gov/24.11)</sup> |
| 计算记录 | 戴维·哈维（David Harvey）2008年的多模算法计算了 \( B_{10^8} \)，2025年的一篇综述仍称这一记录保持至今<sup>[6](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITP.2025.35)</sup> |

## 定义与最初的取值

生成函数 \( \frac{t}{\mathrm{e}^{t}-1} \) 在 \( t=0 \) 处展开为幂级数，其系数除以阶乘，即为伯努利数。展开可得 \( B_0 = 1 \)，\( B_1 = -\tfrac{1}{2} \)，\( B_2 = \tfrac{1}{6} \)，\( B_3 = 0 \)，\( B_4 = -\tfrac{1}{30} \)，依此类推。\( B_1 \) 之外的所有奇数下标伯努利数均为零：对 \( n \ge 1 \)，\( B_{2n+1} = 0 \)。<sup>[1](http://dlmf.nist.gov/24.2)</sup> 有些作者采用相反的符号约定 \( B_1 = +\tfrac{1}{2} \)，这只改变那一个值。<sup>[7](https://www.ams.org/bull/2007-44-04/S0273-0979-07-01175-5/S0273-0979-07-01175-5.pdf)</sup>

这些数是伯努利多项式的常数项，后者定义为 \( B_n(x) = \sum_{k=0}^{n} \binom{n}{k} B_k x^{n-k} \)，于是 \( B_n = B_n(0) \)。例如 \( B_1(x) = x - \tfrac{1}{2} \)，\( B_2(x) = x^2 - x + \tfrac{1}{6} \)。<sup>[1](http://dlmf.nist.gov/24.2)</sup> 这些多项式——而不仅是这些数——承载了许多应用：它们出现在统计物理中，出现在关于卡西米尔力的讨论中，也出现在对夸克–胶子等离子体的研究中。<sup>[8](http://dlmf.nist.gov/24.18)</sup>

## 幂和与早期历史

这一数列背后的原始问题是求 \( 1^k + 2^k + \cdots + n^k \) 的值。纽伦堡的算术教师约翰·法乌尔哈伯（Johann Faulhaber）在《代数学院》（*Academia Algebrae*，1631）中发表了此类幂和的公式，其中包括直到十七次幂的奇次幂和的封闭表达式；他并未发现伯努利数，而用 \( B_{p+1-i} \) 表示幂和的一般封闭公式是后来才出现的。<sup>[9](https://mathworld.wolfram.com/FaulhabersFormula.html)</sup>

雅各布·伯努利（1655–1705）自1687年起任巴塞尔大学数学教授，他在《猜度术》（*Ars Conjectandi*）中处理了指数级数，如今以他命名的那些数就出现在其中。该书于1713年在巴塞尔出版，即他去世八年后，伯努利在书中提到了法乌尔哈伯的工作。<sup>[10](https://mathshistory.st-andrews.ac.uk//Biographies/Faulhaber/)</sup><sup> • </sup><sup>[11](https://mathshistory.st-andrews.ac.uk/Biographies//Bernoulli_Jacob/)</sup> 伯努利本人只计算到 \( B_{10} = 5/66 \)。<sup>[6](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITP.2025.35)</sup> “伯努利数”这一名称由莱昂哈德·欧拉（Leonhard Euler）在1769年一篇论文的标题中引入，而更短的现代形式则归功于亚伯拉罕·德·莫伊弗尔（Abraham de Moivre）。<sup>[12](https://mathshistory.st-andrews.ac.uk//Miller/mathword/b/)</sup><sup> • </sup><sup>[10](https://mathshistory.st-andrews.ac.uk//Biographies/Faulhaber/)</sup> 欧拉在1730年代关于求和的工作里计算了伯努利数与伯努利多项式，并通过如今称为欧拉–麦克劳林公式的东西应用它们。<sup>[13](https://www.ams.org/bull/2013-50-04/S0273-0979-2013-01423-X/S0273-0979-2013-01423-X.pdf)</sup>

## 求和、欧拉–麦克劳林公式与ζ函数

欧拉–麦克劳林求和公式把一个有限和表示为一个积分加上由伯努利数构成的修正项：

\[ \sum_{j=a}^{n} f(j) = \int_{a}^{n} f(x)\,dx + \tfrac{1}{2}f(a) + \tfrac{1}{2}f(n) + \sum_{s=1}^{m-1} \frac{B_{2s}}{(2s)!}\bigl(f^{(2s-1)}(n)-f^{(2s-1)}(a)\bigr) + \cdots \]

这是一个渐近展开，也是这一数列在实际中最常见的出场方式之一。<sup>[14](http://dlmf.nist.gov/2.10)</sup>

与黎曼ζ函数的联系在整数处是精确的。对正偶整数自变量，

\[ \zeta(2n) = \frac{(2\pi)^{2n}}{2(2n)!}\left|B_{2n}\right|, \]

于是 \( \zeta(2) = \pi^2/6 \)，\( \zeta(4) = \pi^4/90 \)，\( \zeta(6) = \pi^6/945 \)。在负整数处，\( \zeta(-n) = -B_{n+1}/(n+1) \)，由此特别可得 \( \zeta(-2n) = 0 \)，并重现 \( \zeta(0) = -1/2 \)。<sup>[4](http://dlmf.nist.gov/25.6)</sup> 因此偶数的ζ值都是 \( \pi \) 的幂的有理倍数，而有理因子正由伯努利数提供。

## 算术性质

**冯·施陶特–克劳森定理。** 对每个 \( n \ge 1 \)，

\[ B_{2n} + \sum_{(p-1)\mid 2n} \frac{1}{p} = \text{整数}, \]

其中求和遍历满足 \( p-1 \) 整除 \( 2n \) 的素数 \( p \)。因此，\( B_{2n} \) 化为最简分数后的分母恰好就是这些素数之积，一个仅由整除性决定的无平方因子的乘积。<sup>[3](https://dlmf.nist.gov/24.10)</sup> 例如 \( B_{12} = -691/2730 \) 的分母是 \( 2 \cdot 3 \cdot 5 \cdot 7 \cdot 13 \)，即满足 \( p-1 \mid 12 \) 的素数 \( p \)。<sup>[1](http://dlmf.nist.gov/24.2)</sup>

**库默尔同余与不规则素数。** 库默尔同余把下标模某个素数的幂同余的伯努利数联系起来：对素数 \( p \) 与偶的 \( k, k' \)，若 \( k \equiv k' \pmod{\varphi(p^e)} \) 且满足适当的大小条件，则 \( \frac{B_k}{k} \equiv \frac{B_{k'}}{k'} \pmod{p^e} \)。<sup>[15](https://devel.isa-afp.org/entries/Kummer_Congruence.html)</sup> 若素数 \( p \) 整除某个 \( B_{2n} \) 的分子且 \( 2n \le p-3 \)，则称 \( p \) 为不规则素数。库默尔用这些想法为一类指数（正则素数）证明了费马大定理，而不规则素数 \( p = 157 \) 是最小的不规则指数为2的素数，它同时整除 \( B_{62} \) 与 \( B_{110} \)。<sup>[16](https://www.bernoulli.org/)</sup> 伯努利数的算术也进入分圆域理论与 \( p \) 进分析。<sup>[2](https://dlmf.nist.gov/24.17)</sup>

## 计算

由于 \( |B_{2n}| \) 大致按 \( 4\sqrt{\pi n}(n/(\pi \mathrm{e}))^{2n} \) 增长，分子很快就变得极其巨大，高效计算是一个实实在在的问题。<sup>[5](https://dlmf.nist.gov/24.11)</sup> 由生成函数得到的递推关系对小下标已经够用，更快的方法则使用正切数递推或ζ函数级数。<sup>[17](https://dlmf.nist.gov/24.19)</sup>

2008年，当时从事计算数论研究的戴维·哈维描述了一种多模算法，它在许多小素数 \( p \) 模下计算 \( B_k \)，再用中国剩余定理重构出有理数，时间复杂度为 \( O(k^2 \log^{2+o(1)} k) \)。一个并行实现计算了 \( B_{10^8} \)，2025年的一篇综述仍称这一记录保持至今。<sup>[18](https://arxiv.org/abs/0807.1347)</sup><sup> • </sup><sup>[6](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITP.2025.35)</sup> 此后，埃伯尔（Eberl）与拉米希（Lammich）给出了哈维算法的机器验证 LLVM 实现，性能与原 C++ 代码相当。<sup>[6](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITP.2025.35)</sup>

## 第一个计算机程序

1843年，艾达·洛夫莱斯（Ada Lovelace）翻译了路易吉·梅纳布雷亚（Luigi Menabrea）用法文对查尔斯·巴贝奇（Charles Babbage）分析机的描述，并附加了长篇注释，其中包括注释G——一份逐步说明如何用穿孔卡片驱动该机计算一列伯努利数的描述。这张表被广泛描述为第一个发表的计算机程序，尽管历史学家指出这一标签在定义上存在问题；托马斯·J·米萨（Thomas J. Misa）2023年的一项研究确认洛夫莱斯为伯努利数创制了一种算法，同时把注释的贡献归于她与巴贝奇两人。<sup>[19](https://www.mpg.de/female-pioneers-of-science/Ada-Lovelace)</sup><sup> • </sup><sup>[20](https://arxiv.org/abs/2301.02919)</sup> 这一选择用于演示颇为恰当：伯努利数在数学中反复出现，而计算它们会用到通用机器所需要的那种循环与条件操作。<sup>[21](https://www.hsm.ox.ac.uk/imagining-ai)</sup>

## References

1. [DLMF §24.2: Definitions and Generating Functions, NIST Digital Library of Mathematical Functions](http://dlmf.nist.gov/24.2)
2. [DLMF §24.17: Mathematical Applications, NIST DLMF](https://dlmf.nist.gov/24.17)
3. [DLMF §24.10: Arithmetic Properties, NIST DLMF](https://dlmf.nist.gov/24.10)
4. [DLMF §25.6: Integer Arguments (Riemann Zeta Function), NIST DLMF](http://dlmf.nist.gov/25.6)
5. [DLMF §24.11: Asymptotic Approximations, NIST DLMF](https://dlmf.nist.gov/24.11)
6. [Manuel Eberl and Peter Lammich (2025). Verifying an Efficient Algorithm for Computing Bernoulli Numbers. ITP 2025, LIPIcs vol. 352.](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITP.2025.35)
7. [Euler and His Work on Infinite Series, Bulletin of the American Mathematical Society (2007)](https://www.ams.org/bull/2007-44-04/S0273-0979-07-01175-5/S0273-0979-07-01175-5.pdf)
8. [DLMF §24.18: Physical Applications, NIST DLMF](http://dlmf.nist.gov/24.18)
9. [Faulhaber's Formula, Wolfram MathWorld](https://mathworld.wolfram.com/FaulhabersFormula.html)
10. [Johann Faulhaber (1580–1635), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Biographies/Faulhaber/)
11. [Jacob Bernoulli (1655–1705), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies//Bernoulli_Jacob/)
12. [Earliest Known Uses of Some of the Words of Mathematics (B), MacTutor](https://mathshistory.st-andrews.ac.uk//Miller/mathword/b/)
13. [bulletin (new series) of the](https://www.ams.org/bull/2013-50-04/S0273-0979-2013-01423-X/S0273-0979-2013-01423-X.pdf)
14. [DLMF §2.10: Sums and Sequences, NIST DLMF](http://dlmf.nist.gov/2.10)
15. [Kummer's Congruence, Archive of Formal Proofs](https://devel.isa-afp.org/entries/Kummer_Congruence.html)
16. [The Bernoulli Number Page](https://www.bernoulli.org/)
17. [DLMF §24.19: Methods of Computation, NIST DLMF](https://dlmf.nist.gov/24.19)
18. [David Harvey (2008). A multimodular algorithm for computing Bernoulli numbers. arXiv:0807.1347.](https://arxiv.org/abs/0807.1347)
19. [Ada Lovelace and the first computer programme in the world, Max Planck Society](https://www.mpg.de/female-pioneers-of-science/Ada-Lovelace)
20. [Thomas J. Misa (2023). Charles Babbage, Ada Lovelace, and the Bernoulli Numbers. arXiv:2301.02919.](https://arxiv.org/abs/2301.02919)
21. [Imagining AI: Babbage & Lovelace, History of Science Museum, Oxford](https://www.hsm.ox.ac.uk/imagining-ai)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bernoulli-number

English original: https://www.edgepedia.org/bernoulli-number
