# 亲和数

亲和数是两个不同的自然数，其中每一个都等于另一个的真因数之和，即等于另一个数的因数之和但除去该数本身。<sup>[1](https://arxiv.org/abs/2601.07444)</sup> 最小的一对是220和284：220的真因数之和为284，而284的真因数之和为220。<sup>[2](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)</sup> 古典阿拉伯文献将这样一对数中的两个成员称为相互“爱慕”的数，因为每一个都是另一个的各部分之和。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 若两个不同正整数的真因数之和分别等于对方，则它们构成一对亲和数。<sup>[1](https://arxiv.org/abs/2601.07444)</sup> |
| 最小的一对 | 220和284。<sup>[2](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)</sup> |
| 最古老的法则 | 塔比特·伊本·库拉（Thābit ibn Qurra）在公元九世纪陈述并证明了一条生成亲和数的法则。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup> |
| 重新发现 | 该法则于1636年被费马（Fermat）、1638年被笛卡尔（Descartes）分别重新发现，并由欧拉（Euler）加以推广。<sup>[4](https://mathworld.wolfram.com/ThabitibnQurraRule.html)</sup> |
| 欧拉的目录 | 欧拉的《论亲和数》（*De numeris amicabilibus*，1747年）给出了前30对亲和数，其中一些是用他的方法找到的。<sup>[5](https://scholarlycommons.pacific.edu/euler-works/100/)</sup> |
| 相关概念 | 社交数构成长度大于二的循环，例如循环12496、14288、15472、14536、14264。<sup>[6](https://oeis.org/A034326/a034326.pdf?b%27%27=)</sup> |

## 定义与记号

对于自然数 \( n \)，其因数之和记作 \( \sigma(n) \)。当 \( n \) 分解为素数幂 \( n = a^{\alpha} \, b^{\beta} \, c^{\gamma} \) 时，因数函数 \( \sigma(n) \) 可由该分解式计算得出。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup> 真因数之和，有时称为真因数和，为 \( \sigma(n) - n \)。若不同正整数对 \( (m, n) \) 中 \( m \) 的真因数和为 \( n \)，且 \( n \) 的真因数和为 \( m \)，则称该对数为亲和数。<sup>[1](https://arxiv.org/abs/2601.07444)</sup> 完全数是类似的单数情形，即一个数等于其自身真因数之和。<sup>[2](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)</sup>

## 塔比特·伊本·库拉的法则

已知最古老的生成一族亲和数的法则归功于塔比特·伊本·库拉，他是九世纪巴格达“智慧宫”的数学家，曾翻译希腊语和叙利亚语著作，如欧几里得和阿波罗尼奥斯的作品。<sup>[7](https://planetmath.org/aformulaforamicablepairs)</sup> 他在一篇论文中陈述并证明了该法则，其阿拉伯语标题为 *Fī istikhrāj al-aʿdād al-mutaḥābba bi-suhūlat al-maslak ilā dhālik*，意为“论以简便途径求出亲和数”。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup>

按照MathWorld给出的形式，当某些固定形式的辅助数为素数时，该法则生成一对亲和数 \( (2^{n} \cdot h \cdot t, \; 2^{n} \cdot s) \)；其中某个辅助数有时被称为塔比特·伊本·库拉数。<sup>[4](https://mathworld.wolfram.com/ThabitibnQurraRule.html)</sup> 素性条件相当严格，因此该法则仅对特定的 \( n \) 值产生亲和数。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup>

关于塔比特的生卒年，各文献说法不一：一种记载为836年至901年，<sup>[7](https://planetmath.org/aformulaforamicablepairs)</sup> 而一份数学史课程讲义则记为826年至901年。<sup>[8](https://faculty.etsu.edu/gardnerr/3040/Notes-Eves6/Eves6-3-3.pdf)</sup> 两者都同意其工作属于九世纪。

1983年，波斯数学史家阿布尔加塞姆·戈尔巴尼（Abulghasem Ghorbani）在一篇文章中用现代符号给出了该法则及其证明所需的全部预备知识，依据的是他此前对该论文以及卡马尔·丁·法里西（Kamāl al-Dīn Fārisī）工作的研究。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup> 1989年，索尼娅·布伦特耶斯（Sonja Brentjes）和扬·P·霍根迪克（Jan P. Hogendijk）在《数学史》（*Historia Mathematica*）上发表了一项研究，考察了阿拉伯语文本，以探究塔比特可能是如何发现其法则的。<sup>[9](https://www.sciencedirect.com/science/article/pii/0315086089900840)</sup>

## 重新发现与欧拉的推广

塔比特的公式在欧洲数学中失传，后由皮埃尔·德·费马于1636年、勒内·笛卡尔于1638年分别独立重新发现，有时该公式也被归于他们名下。<sup>[4](https://mathworld.wolfram.com/ThabitibnQurraRule.html)</sup><sup> • </sup><sup>[8](https://faculty.etsu.edu/gardnerr/3040/Notes-Eves6/Eves6-3-3.pdf)</sup> 笛卡尔花时间寻找并找到了此前在欧洲未知的一对亲和数。<sup>[10](https://arxiv.org/abs/math/0409196)</sup>

**欧拉的贡献。** 莱昂哈德·欧拉在十八世纪推广了塔比特的法则。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup> 他1747年用拉丁文撰写、发表于《新博学学报》（*Nova acta eruditorum*）的论文《论亲和数》（*De numeris amicabilibus*）描述了欧洲数学家在该课题上所做的工作，并展示了如何寻找亲和数对；文中列出了前30对亲和数，其中一些（但并非全部）是用他的方法找到的。<sup>[5](https://scholarlycommons.pacific.edu/euler-works/100/)</sup> 欧拉在论文开篇指出，随着数学分析的成功，数论遭到了忽视。<sup>[10](https://arxiv.org/abs/math/0409196)</sup> 对于欧拉的推广，如同塔比特的原初法则一样，目前仅知另外两种情形能满足其条件。<sup>[3](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)</sup>

塔比特的法则和欧拉1747年的推广法则此后均在Lean 4证明助手中获得了完整的形式化证明，这是亲和数理论机器验证形式化工作的一部分。<sup>[1](https://arxiv.org/abs/2601.07444)</sup>

## 计算与尚未解决的结构问题

要找到超出经典法则所产生范围的亲和数，需要进行穷举搜索。检验一对数时，可以计算候选数的真因数和，再检查该结果的真因数和是否回到原数；高效的实现通过利用因数分解和仅用奇数作试除因子来减少工作量。<sup>[11](https://stackoverflow.com/questions/51653513/optimisation-suggestions-for-the-amicable-numbers-algorithm)</sup> 现代搜索程序实现了在指定范围内寻找所有亲和数对的快速算法，包括处理含有普通筛法范围所遗漏的极大素因子的数对的技术。<sup>[12](https://github.com/SChernykh/Amicable)</sup> 一种已发表的搜索方法计算完整的因数分解及因数和，并在单次算法运行中报告数千对亲和数。<sup>[13](https://citeseerx.ist.psu.edu/document?doi=f287f6aef807772542a31bef29804d70afbededd&repid=rep1&type=pdf)</sup>

该理论仍存在开放的结构性问题。1917年，格梅林（Gmelin）提出了互素亲和数对不存在的猜想；后来，M·阿尔秋霍夫（M. Artjuhov，1975年）和W·博尔霍（W. Borho，1974年）证明了：一旦固定正整数 \( K \)，满足 \( \omega(MN) = K \) 的互素亲和数对 \( (M, N) \) 的数量是有限的，其中 \( \omega \) 表示不同素因子的个数。后来的工作将上界改进为

\[ MN < \frac{\pi^{2}}{6} \cdot 2^{4^{K} - 2 \cdot 2^{K}} \]

并将其推广到若干类一般的亲和元组。<sup>[14](https://arxiv.org/abs/1711.06847)</sup>

## 推广

有两个方向扩展了数对的概念。社交数将亲和数对推广为长度大于二的循环，其中每个数的真因数和为循环中的下一个成员；OEIS对该课题的综述记录了一个五元循环：12496、14288、15472、14536、14264，再回到12496。<sup>[6](https://oeis.org/A034326/a034326.pdf?b%27%27=)</sup> 亲和元组将这一思想扩展到多于两个数的序列，普通的亲和数对即长度为二的情形。<sup>[14](https://arxiv.org/abs/1711.06847)</sup> 近期工作还提出了亲和数的新推广，将其作为独立的研究课题。<sup>[15](https://arxiv.org/abs/2408.07387)</sup>

## References

1. [Formalization of Amicable Numbers Theory (Lean 4), arXiv](https://arxiv.org/abs/2601.07444)
2. [Prime numbers, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)
3. [Thābit ibn Qurra's Rule for Finding Amicable Numbers, Abulghasem Ghorbani (1983), Mathematical Culture and Thought, journal of the Iranian Mathematical Society](https://mathswell.com/people-and-mathematics/articles/thabit-amicable.html)
4. [Thābit ibn Qurra Rule, Wolfram MathWorld](https://mathworld.wolfram.com/ThabitibnQurraRule.html)
5. [De numeris amicabilibus (E100), Leonhard Euler, 1747, University of Pacific Euler archive](https://scholarlycommons.pacific.edu/euler-works/100/)
6. [Perfect, Amicable and Sociable Numbers, OEIS](https://oeis.org/A034326/a034326.pdf?b%27%27=)
7. [A formula for amicable pairs, PlanetMath](https://planetmath.org/aformulaforamicablepairs)
8. [Pythagorean Arithmetic, Eves, An Introduction to the History of Mathematics, course notes, East Tennessee State University](https://faculty.etsu.edu/gardnerr/3040/Notes-Eves6/Eves6-3-3.pdf)
9. [Notes on Thābit ibn Qurra and his rule for amicable numbers, S. Brentjes and J. P. Hogendijk, Historia Mathematica 16 (1989) 373–378](https://www.sciencedirect.com/science/article/pii/0315086089900840)
10. [On amicable numbers (Euler translation with commentary), arXiv](https://arxiv.org/abs/math/0409196)
11. [Optimisation suggestions for the amicable numbers algorithm, Stack Overflow](https://stackoverflow.com/questions/51653513/optimisation-suggestions-for-the-amicable-numbers-algorithm)
12. [SChernykh/Amicable: fast algorithm for finding all amicable pairs in a range, GitHub](https://github.com/SChernykh/Amicable)
13. [Computation of amicable pairs, Mathematics of Computation](https://citeseerx.ist.psu.edu/document?doi=f287f6aef807772542a31bef29804d70afbededd&repid=rep1&type=pdf)
14. [On amicable tuples, arXiv](https://arxiv.org/abs/1711.06847)
15. [Generalizations of amicable numbers, arXiv](https://arxiv.org/abs/2408.07387)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: 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/amicable-numbers

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