# 完全数

完全数是一个正整数，它等于其真因数（即除该数本身以外的因数）之和。6 是完全数，因为 1 + 2 + 3 = 6；28 也是完全数，因为 1 + 2 + 4 + 7 + 14 = 28。<sup>[1](https://www.euclids-elements.org/elements/books/bookVII/definitions/defVII22/)</sup> 这个定义至少可以追溯到欧几里得（Euclid），他在《几何原本》（*Elements*）第七卷中将其列为定义 22，并在第九卷命题 36 中证明了关于这类数的第一个重要结果。<sup>[1](https://www.euclids-elements.org/elements/books/bookVII/definitions/defVII22/)</sup><sup> • </sup><sup>[2](https://math-cs.gordon.edu/ntic/ntic2020/section-perfect-nums.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 当数 n 的真因数之和等于 n 时，n 为完全数；等价地，当因数和函数满足 σ(n) = 2n 时亦然<sup>[1](https://www.euclids-elements.org/elements/books/bookVII/definitions/defVII22/)</sup><sup> • </sup><sup>[3](https://oeis.org/A000396)</sup> |
| 最初的例子 | 6、28、496 和 8128，古希腊数学家均已知道<sup>[1](https://www.euclids-elements.org/elements/books/bookVII/definitions/defVII22/)</sup> |
| 欧几里得-欧拉定理 | 偶数 n 是完全数当且仅当它具有 \( 2^{p-1}(2^p - 1) \) 的形式且 \( 2^p - 1 \) 为素数；欧几里得证明了“若”的方向，欧拉证明了逆命题<sup>[4](https://mathworld.wolfram.com/Euclid-EulerTheorem.html)</sup> |
| 奇完全数 | 一个也未发现；奥赫姆（Ochem）和拉奥（Rao）证明了任何奇完全数都超过 \( 10^{1500} \)，这一下界后来被推至 \( 10^{2200} \)<sup>[5](https://www.lirmm.fr/~ochem/opn/)</sup> |
| 奇情形的欧拉形式 | 奇完全数必具有 \( p^{e} m^{2} \) 的形式，其中 p 为素数且 \( p \equiv e \equiv 1 \pmod 4 \)<sup>[5](https://www.lirmm.fr/~ochem/opn/)</sup> |
| 已知最大者 | 由梅森素数 \( 2^{136279841} - 1 \) 构造的完全数，由 GIMPS 于 2024 年 10 月发现，有 82,048,640 位数字<sup>[6](https://www.mersenne.org/)</sup><sup> • </sup><sup>[15](https://www.mersenne.org/primes/?press=M136279841)</sup> |
| 稀少性 | 不超过 x 的完全数个数增长不快于约 \( \exp(O(\log x / \log \log x)) \)<sup>[7](https://academic.oup.com/qjmath/article/75/4/1415/7828910)</sup> |

## 欧几里得-欧拉定理

欧几里得的第九卷命题 36 指出，若和 \( 1 + 2 + 2^2 + \cdots + 2^{p-1} \) 为素数，则将该和乘以最后一项 \( 2^{p-1} \)，便得到一个完全数。<sup>[8](https://aleph0.clarku.edu/~djoyce/elements/bookIX/propIX36.html)</sup> 由于毕达哥拉斯学派知道 \( 1 + 2 + 4 + \cdots + 2^{p-1} = 2^p - 1 \)，该命题用现代记号来说就是：只要 \( 2^p - 1 \) 为素数，\( 2^{p-1}(2^p - 1) \) 便是完全数。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup>

有了因数和函数 σ 之后，证明就很简短。记 \( N = 2^{p-1}M \)，其中 \( M = 2^p - 1 \)。这两个因数互素，而 σ 是积性函数，因此

\[ \sigma(N) = \sigma(2^{p-1})\,\sigma(M) = (2^p - 1)(M + 1) = 2^p M = 2N, \]

这恰好就是完全性条件 σ(N) = 2N。<sup>[4](https://mathworld.wolfram.com/Euclid-EulerTheorem.html)</sup><sup> • </sup><sup>[2](https://math-cs.gordon.edu/ntic/ntic2020/section-perfect-nums.html)</sup>

**欧拉的逆命题。** 在欧几里得之后许多个世纪，欧拉证明了每个偶完全数都必具有这种形式，于是该定理完整地刻画了所有偶完全数。<sup>[2](https://math-cs.gordon.edu/ntic/ntic2020/section-perfect-nums.html)</sup><sup> • </sup><sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup> 论证将偶完全数写作 \( N = 2^{p-1}q \)，其中 q 为奇数；积性与 σ(N) = 2N 迫使 \( 2^p - 1 \) 整除 q，再比较因数和便迫使 q 恰好等于 \( 2^p - 1 \)，故 q 为素数。<sup>[4](https://mathworld.wolfram.com/Euclid-EulerTheorem.html)</sup> 欧拉是在其生前未发表的手稿中证明这一逆命题的；MathWorld 记载该论文于 1849 年在他身后发表。<sup>[4](https://mathworld.wolfram.com/Euclid-EulerTheorem.html)</sup>

形如 \( 2^p - 1 \) 的素数称为梅森素数（Mersenne prime），得名于 350 多年前研究这类数的法国修士马兰·梅森（Marin Mersenne）。<sup>[6](https://www.mersenne.org/)</sup> 因此，欧几里得-欧拉定理建立了一一对应：每个梅森素数 \( 2^p - 1 \) 给出偶完全数 \( 2^{p-1}(2^p - 1) \)，而每个偶完全数都由此产生。<sup>[4](https://mathworld.wolfram.com/Euclid-EulerTheorem.html)</sup> 并非每个素数指数 p 都行得通；例如 \( 2^{11} - 1 = 2047 = 23 \cdot 89 \) 就是合数。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup>

## 早期历史

最小的四个完全数 6、28、496 和 8128，古希腊人已经知道。<sup>[1](https://www.euclids-elements.org/elements/books/bookVII/definitions/defVII22/)</sup> 活跃于约公元前 500 年至公元前 300 年的毕达哥拉斯学派，出于数字神秘主义的兴趣研究了完全数与亲和数，后来尼科马库斯（Nicomachus）又根据真因数之和低于、等于还是超过该数，将数分为亏数、完全数和过剩数（丰数）三类。<sup>[10](https://mathshistory.st-andrews.ac.uk//HistTopics/Prime_numbers/)</sup><sup> • </sup><sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup>

尼科马库斯还未经证明地提出了若干论断：第 n 个完全数有 n 位数字；所有完全数都是偶数；完全数的末位数字交替为 6 和 8；欧几里得的规则生成所有完全数；以及完全数有无穷多个。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup> 后来的工作否证了第一条和第三条。1536 年，胡达尔里库斯·雷吉乌斯（Hudalrichus Regius）分解了 \( 2^{11} - 1 \)，揭示了第一个使欧几里得公式无法给出完全数的素数指数 p；1603 年，卡塔尔迪（Cataldi）找到了第六个和第七个完全数，\( 2^{16}(2^{17} - 1) = 8589869056 \) 和 \( 2^{18}(2^{19} - 1) = 137438691328 \)，表明第五个和第六个完全数都以 6 结尾，而非交替。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup> 卡塔尔迪自己也提出了错误的论断：在他断言的另外四个指数中，只有一个是对的。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup>

**欧拉的第八个。** 1732 年，欧拉证明了第八个完全数是 \( 2^{30}(2^{31} - 1) = 2305843008139952128 \)，这是 125 年来发现的第一个新的完全数。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup> 这个数在 150 多年间一直是已知最大的完全数；彼得·巴洛（Peter Barlow）在 1811 年的《数论》（*Theory of Numbers*）中写道，这将是人们所能发现的最大的完全数，这一预言后来被否证。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup> 1876 年，卢卡斯（Lucas）证明了 \( 2^{67} - 1 \) 是合数，揭示了梅森 1644 年那份著名指数表中的第一个错误，并验证了 \( 2^{127} - 1 \) 是素数；科尔（Cole）于 1903 年分解了 \( 2^{67} - 1 \)。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup> 卢卡斯检验经莱默（Lehmer）于 1930 年改进后，成为今日仍在继续的、用计算机搜索梅森素数从而搜索完全数的基础。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup>

## 奇完全数

奇完全数是否存在尚无定论，这个问题常被描述为数学中最古老的未解问题之一。<sup>[1](https://www.euclids-elements.org/elements/books/bookVII/definitions/defVII22/)</sup> 人们从未发现过奇完全数，但已知它有大量限制。欧拉证明了任何奇完全数必取 \( N = p^{e} m^{2} \) 的形式，其中 p 为素数，\( p \equiv e \equiv 1 \pmod 4 \)，且 p 不整除 m；这被称为欧拉形式。<sup>[5](https://www.lirmm.fr/~ochem/opn/)</sup><sup> • </sup><sup>[11](https://arxiv.org/abs/1801.06182)</sup>

**计算排除。** 布伦特（Brent）、科恩（Cohen）和特·里勒（te Riele）于 1991 年证明了奇完全数必超过 \( 10^{300} \)。计算数论研究者帕斯卡尔·奥赫姆（Pascal Ochem）和米夏埃尔·拉奥（Michaël Rao）在 2012 年发表于《计算数学》（*Mathematics of Computation*）的论文中将这一下界提高到 \( 10^{1500} \)；他们的计算此后又被推至 \( 10^{2200} \)。<sup>[5](https://www.lirmm.fr/~ochem/opn/)</sup><sup> • </sup><sup>[12](https://dblp.org/rec/journals/moc/OchemR12.html)</sup> 同一项工作还确立了：奇完全数按重数计至少有 101 个素因数（现为至少 115 个）；其最大的素数幂分量超过 \( 10^{62} \)；在欧拉形式中，平方部分满足 \( m > 10^{1000} \)。<sup>[5](https://www.lirmm.fr/~ochem/opn/)</sup>

有限性结果也对奇情形构成约束。迪克森（Dickson）的有限性定理指出，对任意固定的 k，恰有 k 个不同素因数的奇完全数只有有限多个，这一结果后来由波梅兰斯（Pomerance）和希思-布朗（Heath-Brown）加以改进。<sup>[7](https://academic.oup.com/qjmath/article/75/4/1415/7828910)</sup> 一个归于古希腊人的猜想认为，偶完全数有无穷多个，而奇完全数一个也没有，卡尔·波梅兰斯（Carl Pomerance）给出了支持它的概率启发式论证。<sup>[7](https://academic.oup.com/qjmath/article/75/4/1415/7828910)</sup>

## 完全数与现代梅森素数搜索

由于每个偶完全数都对应一个梅森素数，寻找新的完全数正是寻找新的梅森素数的问题。大互联网梅森素数搜索（Great Internet Mersenne Prime Search，GIMPS）是由乔治·沃尔特曼（George Woltman）于 1996 年创立的分布式计算项目，最近 18 个梅森素数都是它发现的。<sup>[6](https://www.mersenne.org/)</sup> 这一发现由卢克·杜兰特（Luke Durant）利用云端 GPU 完成，结束了普通个人电脑保持纪录长达 28 年的时期；在可能素数检验标记出候选者之后，素性由卢卡斯-莱默检验确认。<sup>[6](https://www.mersenne.org/)</sup>

搜索流程反映了问题的结构：试除法和 P-1 分解法首先剔除其梅森数含小因数的指数，然后由费马可能素数检验（自 2018 年起使用）筛出幸存者，再由卢卡斯-莱默检验验证任何可能素数。<sup>[13](https://www.mersenne.org/various/works.php)</sup><sup> • </sup><sup>[14](https://www.mersenne.org/various/math.php)</sup> 梅森素数是否有无穷多个，从而偶完全数是否有无穷多个，仍然悬而未决。<sup>[9](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)</sup>

## 它们有多稀少？

即便在与其结构相同的整数中，完全数也十分稀少。自 20 世纪中叶起，埃尔德什（Erdős）、福尔克曼（Volkmann）、卡诺尔德（Kanold）、霍恩费克（Hornfeck）和维尔辛（Wirsing）的工作量化了这种稀少性，最终得到维尔辛的界：当 \( x \to \infty \) 时，不超过 x 的完全数个数为 \( \exp(O(\log x / \log \log x)) \) 阶，这一界统一适用于 \( \ell \)-完全数，后者由 \( \sigma(n) = \ell n \)（\( \ell > 1 \) 为有理数）定义。<sup>[7](https://academic.oup.com/qjmath/article/75/4/1415/7828910)</sup> 对于 \( \ell \in \{2, 3, \ldots, 11\} \)，\( \ell \)-完全数的例子已知，而对于 \( \ell \) 的其他取值，其存在性尚无定论。<sup>[7](https://academic.oup.com/qjmath/article/75/4/1415/7828910)</sup>

已知的完全数本身增长很快：在 6、28、496 和 8128 之后是 33550336、8589869056、137438691328 和 2305843008139952128。<sup>[3](https://oeis.org/A000396)</sup> 每个偶完全数也都是三角数，因为 \( 2^{p-1}(2^p - 1) \) 是序号为 \( 2^p - 1 \) 的三角数。<sup>[3](https://oeis.org/A000396)</sup>

## References

1. [Euclid's Elements, Book VII, Definition 22](https://www.euclids-elements.org/elements/books/bookVII/definitions/defVII22/)
2. [Number Theory Interactive, Section 19.4: Perfect Numbers](https://math-cs.gordon.edu/ntic/ntic2020/section-perfect-nums.html)
3. [OEIS A000396: Perfect numbers](https://oeis.org/A000396)
4. [Euclid–Euler Theorem, Wolfram MathWorld](https://mathworld.wolfram.com/Euclid-EulerTheorem.html)
5. [Odd perfect numbers, Pascal Ochem and Michaël Rao](https://www.lirmm.fr/~ochem/opn/)
6. [Great Internet Mersenne Prime Search (GIMPS), PrimeNet](https://www.mersenne.org/)
7. [On the Within-Perfect Numbers, Quarterly Journal of Mathematics 75(4), 2024](https://academic.oup.com/qjmath/article/75/4/1415/7828910)
8. [Euclid's Elements, Book IX, Proposition 36 (Joyce edition)](https://aleph0.clarku.edu/~djoyce/elements/bookIX/propIX36.html)
9. [Perfect numbers, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Perfect_numbers/)
10. [Prime numbers, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//HistTopics/Prime_numbers/)
11. [Where do odd perfect numbers live? (arXiv:1801.06182)](https://arxiv.org/abs/1801.06182)
12. [Ochem, P., & Rao, M. (2012). Odd perfect numbers are greater than 10^1500, Mathematics of Computation](https://dblp.org/rec/journals/moc/OchemR12.html)
13. [GIMPS: How It Works, PrimeNet](https://www.mersenne.org/various/works.php)
14. [GIMPS: The Math, PrimeNet](https://www.mersenne.org/various/math.php)
15. [Mersenne Prime Discovery - 2^136279841-1 is Prime!](https://www.mersenne.org/primes/?press=M136279841)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Integer sequences and partitions › Special and named integers › Perfect, abundant, and aliquot-related numbers

Copyright 2026 Edgepedia

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

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

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