# 毕达哥拉斯三元组

毕达哥拉斯三元组是一组三个正整数 (a, b, c)，满足 \( a^{2} + b^{2} = c^{2} \)，因此以 a、b、c 为边长的三角形根据毕达哥拉斯定理是一个直角三角形。最著名的例子是 (3, 4, 5)，因为 \( 3^{2} + 4^{2} = 5^{2} \)；另一个是 (5, 12, 13)。<sup>[1](https://math.hmc.edu/funfacts/pythagorean-triples/)</sup> 最大公约数为 1 的三元组称为本原三元组，以这样的边长为边的直角三角形称为本原直角三角形。<sup>[2](https://mathworld.wolfram.com/PrimitivePythagoreanTriple.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义方程 | \( a^{2} + b^{2} = c^{2} \)，其中 a、b、c 为正整数；(3, 4, 5) 和 (5, 12, 13) 是经典例子<sup>[1](https://math.hmc.edu/funfacts/pythagorean-triples/)</sup> |
| 本原三元组 | gcd(a, b, c) = 1；在任何本原三元组中，恰好一条直角边为奇数，而斜边 c 始终为奇数<sup>[2](https://mathworld.wolfram.com/PrimitivePythagoreanTriple.html)</sup><sup> • </sup><sup>[3](https://arxiv.org/abs/2102.03451)</sup> |
| 完全生成 | 每个本原三元组都可表示为 \( (m^{2}-n^{2},\ 2mn,\ m^{2}+n^{2}) \)（至多交换两条直角边），其中 \( m > n \) 为互素的奇偶相异整数；欧几里得《几何原本》第十卷命题29前的引理1记载了此类参数化<sup>[4](https://aleph0.clarku.edu/~djoyce/numbers/pyth.pdf)</sup> |
| 密度 | 莱默（Lehmer，1900）证明了周长小于 p 的本原三元组所占比例趋于 \( \ln 2 / \pi^{2} \approx 0.070230 \)<sup>[2](https://mathworld.wolfram.com/PrimitivePythagoreanTriple.html)</sup> |
| 古代证据 | 普林顿322号，一块年代在公元前1822年至1762年之间的古巴比伦泥板，列出了15行毕达哥拉斯三元组<sup>[5](https://doi.org/10.1016/j.hm.2017.08.001)</sup> |
| 实际用途 | 3-4-5法则在建筑中用于验证建筑角落的直角，也用于土地测量<sup>[6](https://app.bornostate.gov.ng/service/applications-of-pythagorean-theorem-and-pythagorean-triples)</sup> |

## 定义与基本性质

当 a 和 b 是直角三角形两条直角边的长度、c 是斜边时，自然数 a、b、c 构成毕达哥拉斯三元组，即满足 \( a^{2} + b^{2} = c^{2} \)。<sup>[7](https://nrich.maths.org/articles/pythagorean-triples-i)</sup> 随机选取两个整数很少能产生这样的三元组：\( 3^{2} + 5^{2} = 34 \)，\( 4^{2} + 7^{2} = 65 \)，而34和65都不是平方数。尽管如此，边长为整数的直角三角形有无穷多个。<sup>[8](https://www.grc.nasa.gov/WWW/K-12/Numbers/Math/Mathematical_Thinking_ppc/pythtrip.htm)</sup>

**缩放与约化。** 从任意三元组 \( (a, b, c) \) 出发，将三个数都乘以自然数 n 得到另一个三元组 \( (na, nb, nc) \)；从 (3, 4, 5) 出发取 n = 5 得到 (15, 20, 25)。反向操作有时可行：将 (10, 24, 26) 的各边减半得到本原三元组 (5, 12, 13)，而将 (3, 4, 5) 减半则得不到整数。<sup>[7](https://nrich.maths.org/articles/pythagorean-triples-i)</sup> 不是另一个三元组倍数的三元组就是本原的。<sup>[9](https://www.math.clarku.edu/~djoyce/java/elements/bookX/propX29.html)</sup>

**奇偶性。** 在本原三元组中，两条直角边 a、b 中恰好一条为奇数，而斜边 c 始终为奇数。如果两条直角边都是偶数，三元组就不是本原的；如果两条都是奇数，则 \( c^{2} \equiv 2 \pmod{4} \)，这是不可能的，因为2在模4下不是平方数。<sup>[3](https://arxiv.org/abs/2102.03451)</sup>

同一条斜边可以属于不止一个本原尺度的三角形：\( 24^{2} + 7^{2} = 25^{2} = 15^{2} + 20^{2} \)。<sup>[7](https://nrich.maths.org/articles/pythagorean-triples-i)</sup>

## 生成三元组

**欧几里得公式。** 对任意整数 \( m > n \)，以下取值

\[ a = m^{2} - n^{2}, \qquad b = 2mn, \qquad c = m^{2} + n^{2} \]

始终满足 \( a^{2} + b^{2} = c^{2} \)。取 \( m = 2, n = 1 \) 得到 (3, 4, 5)，取 \( m = 3, n = 2 \) 得到 (5, 12, 13)。<sup>[1](https://math.hmc.edu/funfacts/pythagorean-triples/)</sup> 反过来，每个本原毕达哥拉斯三元组都具有这种形式（或交换两条直角边），其中 m 和 n 为适当的互素且奇偶相异的整数，因此该公式生成所有本原三元组，再通过缩放生成所有三元组。<sup>[4](https://aleph0.clarku.edu/~djoyce/numbers/pyth.pdf)</sup> 此类参数化出现在欧几里得《几何原本》第十卷命题29前的引理1中，其中同奇偶且 n 较大的 n 和 m 生成三元组 \( nm : (n^{2} - m^{2})/2 : (n^{2} + m^{2})/2 \)。<sup>[9](https://www.math.clarku.edu/~djoyce/java/elements/bookX/propX29.html)</sup>

**更简单的子族。** 两种受限配方能产生无穷多个三元组，但并非全部。对任意自然数 k，令 \( a = 2k+1 \)、\( b = 2k^{2} + 2k \)、\( c = b + 1 \) 得到一个三元组，其中斜边比较长的直角边大1；k = 1 给出 (3, 4, 5)，k = 2 给出 (5, 12, 13)。这意味着任何奇数都可以作为一条边：对于17，取 k = 8 得到 (17, 144, 145)。类似地，对任意自然数 m，\( a = 2m \)、\( b = m^{2} - 1 \)、\( c = m^{2} + 1 \) 是一个三元组，因此任何偶数都可以作为一条边；m = 4 给出 (8, 15, 17)。<sup>[7](https://nrich.maths.org/articles/pythagorean-triples-i)</sup> 一般的双参数公式将这两种都作为特例包含在内（第一种中 p = k+1, q = k；第二种中 p = m, q = 1），并且还能产生两种受限配方都达不到的三元组，如 (20, 21, 29)。<sup>[7](https://nrich.maths.org/articles/pythagorean-triples-i)</sup>

**固定间隔的族。** 现代研究考察特殊形状的本原三元组。对固定的正整数 g，形如 \( (a, b, b+g) \) 的本原三元组存在无穷族，当且仅当 g 是奇平方数或平方数的两倍；例如，三元组 \( (a, b, b+1) \) 来自连续参数 \( r = n+1, s = n \)。<sup>[3](https://arxiv.org/abs/2102.03451)</sup>

## 存在多少个三元组

本原三元组有无穷多个，因为有无穷多对互素的 \( r > s \) 可代入欧几里得公式。<sup>[3](https://arxiv.org/abs/2102.03451)</sup> 它们的分布在精确意义上是稀疏的。美国数学家 D. N. 莱默（D. N. Lehmer）在1900年证明了，若 N(p) 为周长小于 p 的本原三元组的数量，则

\[ \lim_{p \to \infty} \frac{N(p)}{p} = \frac{\ln 2}{\pi^{2}} = 0.070230\ldots \]

因此在给定大小以内的整数中，本原三元组的数量大约只有周长单位数的7%。<sup>[2](https://mathworld.wolfram.com/PrimitivePythagoreanTriple.html)</sup> 对于直角边低于上界 n 的三元组数量（按交换两条直角边视为相同计数），渐近估计也是已知的。<sup>[10](https://www.sciencedirect.com/science/article/pii/S0377042701004964)</sup>

## 普林顿322号与巴比伦证据

关于毕达哥拉斯三元组知识的最有力古代证据是普林顿322号，一块由奥托·诺伊格鲍尔（Otto Neugebauer）和亚伯拉罕·萨克斯（Abraham Sachs）在1945年出版的《数学楔形文字文本》（*Mathematical Cuneiform Texts*）中发表的古巴比伦泥板。<sup>[11](https://www.sciencedirect.com/science/article/pii/0315086081900690)</sup> 这块泥板由考古学家兼古物商埃德加·班克斯（Edgar Banks）于1922年前后卖给出版商兼收藏家 G. A. 普林顿（G. A. Plimpton），其出处被归于拉尔萨（Larsa），一座靠近波斯湾的古代苏美尔城市；通过将字体与其他古巴比伦文本比较，时任牛津大学万灵学院数学史学家埃莉诺·罗布森（Eleanor Robson）将其年代定在公元前1822年至1762年之间，大约在汉谟拉比时代。它尺寸为12.7厘米×8.8厘米，左边缘有断裂，残留的现代胶水表明断裂是近期发生的。自1936年普林顿的收藏遗赠给哥伦比亚大学以来，它一直保存在那里。<sup>[5](https://doi.org/10.1016/j.hm.2017.08.001)</sup>

在保存下来的表格中，第二列和第三列中的每一对 (b, c)，都对应一个满足毕达哥拉斯方程的正本原毕达哥拉斯三元组 \( (a, b, c) \)。<sup>[11](https://www.sciencedirect.com/science/article/pii/0315086081900690)</sup> 所列出的三元组都很大：出现的最小的是 (45, 60, 75)，即 (3, 4, 5) 的15倍；(3, 4, 5) 和 (5, 12, 13) 根本没有出现。满足克里斯托弗·齐曼（Christopher Zeeman）提出的一组大小条件的16个三元组中，有15个出现在泥板上。<sup>[12](https://mathshistory.st-andrews.ac.uk/HistTopics/Babylonian_Pythagoras/)</sup>

**用途有争议。** 这块泥板的用途仍未确定。一种可追溯到布鲁因斯（Bruins）并得到罗布森支持的解释认为，表中条目来自倒数对 x 和 1/x，经公因子缩放直至达到互素值。<sup>[13](https://www.math.stonybrook.edu/~tony/archive/336S06/plimpton322.html)</sup> 弗里伯格（Friberg）的分析通过巴比伦三角形参数方程重建了该表，其中一个参数在一组选定的15个有理值上取值。<sup>[11](https://www.sciencedirect.com/science/article/pii/0315086081900690)</sup> 布里顿（Britton）、普鲁斯特（Proust）和施奈德（Shnider）将其解读为关于矩形边与对角线的挑战问题，而曼斯菲尔德（Mansfield）和怀尔德伯格（Wildberger）在2017年论证它是一个精确的基于比值的三角函数表，并将其与马达瓦（Madhava）的正弦表进行了比较。<sup>[14](https://old.maa.org/press/periodicals/convergence/converting-the-old-babylonian-tablet-plimpton-322-into-the-decimal-system-as-a-classroom-exercise-1)</sup><sup> • </sup><sup>[5](https://doi.org/10.1016/j.hm.2017.08.001)</sup> 古代世界研究所指出，学者们对于这块泥板是像大多数古巴比伦数学泥板一样与书吏教育有关，还是属于一个研究项目的一部分，仍然存在分歧。<sup>[15](https://isaw.nyu.edu/exhibitions/before-pythagoras/items/plimpton-322/)</sup> 无论其用途如何，这块泥板表明，一种能够生成无穷多个不同毕达哥拉斯三元组的通用方法，大约在欧几里得之前一千五百年就已经为人所知。<sup>[15](https://isaw.nyu.edu/exhibitions/before-pythagoras/items/plimpton-322/)</sup>

## 实际用途

由于边长与毕达哥拉斯三元组成比例的三角形恰好是直角三角形，这类三元组提供了一种无需仪器即可构造直角的方法。建筑工人使用3-4-5法则来验证建筑角落的直角，测量员在直接测量不切实际的地方通过布置直角三角形来间接测量距离。<sup>[6](https://app.bornostate.gov.ng/service/applications-of-pythagorean-theorem-and-pythagorean-triples)</sup> 同样的思路也扩展到航海和制图领域。<sup>[16](https://math.libretexts.org/Courses/Nova_Scotia_Community_College/MATH_1043/07%3A_Geometry/7.04%3A_The_Pythagorean_Theorem)</sup>

## References

1. [Pythagorean Triples, Harvey Mudd College Math Fun Facts](https://math.hmc.edu/funfacts/pythagorean-triples/)
2. [Primitive Pythagorean Triple, Wolfram MathWorld](https://mathworld.wolfram.com/PrimitivePythagoreanTriple.html)
3. [Andrew Schmelzer, Sunil Chetty (2021). On primitive Pythagorean triples of special forms. arXiv.](https://arxiv.org/abs/2102.03451)
4. [D. E. Joyce. Primitive Pythagorean Triples, Clark University](https://aleph0.clarku.edu/~djoyce/numbers/pyth.pdf)
5. [Mansfield, D. F. and Wildberger, N. J. (2017). Plimpton 322 is Babylonian exact sexagesimal trigonometry. Historia Mathematica.](https://doi.org/10.1016/j.hm.2017.08.001)
6. [Applications of Pythagorean Theorem and Pythagorean Triples](https://app.bornostate.gov.ng/service/applications-of-pythagorean-theorem-and-pythagorean-triples)
7. [Pythagorean Triples I, NRICH, University of Cambridge](https://nrich.maths.org/articles/pythagorean-triples-i)
8. [Pythagorean Triples, NASA Glenn Research Center](https://www.grc.nasa.gov/WWW/K-12/Numbers/Math/Mathematical_Thinking_ppc/pythtrip.htm)
9. [Euclid's Elements, Book X, Proposition 29, Clark University](https://www.math.clarku.edu/~djoyce/java/elements/bookX/propX29.html)
10. [Pythagorean triangles with legs less than n, Journal of Computational and Applied Mathematics](https://www.sciencedirect.com/science/article/pii/S0377042701004964)
11. [Jöran Friberg (1981). Methods and traditions of Babylonian mathematics: Plimpton 322, Pythagorean Triples, and the Babylonian Triangle Parameter Equations. Historia Mathematica 8(3), 277–318.](https://www.sciencedirect.com/science/article/pii/0315086081900690)
12. [Babylonian Pythagoras, MacTutor History of Mathematics, University of St Andrews](https://mathshistory.st-andrews.ac.uk/HistTopics/Babylonian_Pythagoras/)
13. [The Plimpton 322 tablet, Stony Brook Mathematics](https://www.math.stonybrook.edu/~tony/archive/336S06/plimpton322.html)
14. [Converting the Old Babylonian Tablet 'Plimpton 322' into the Decimal System as a Classroom Exercise, Mathematical Association of America](https://old.maa.org/press/periodicals/convergence/converting-the-old-babylonian-tablet-plimpton-322-into-the-decimal-system-as-a-classroom-exercise-1)
15. [Before Pythagoras: The Culture of Old Babylonian Mathematics, ISAW, New York University](https://isaw.nyu.edu/exhibitions/before-pythagoras/items/plimpton-322/)
16. [The Pythagorean Theorem, Mathematics LibreTexts](https://math.libretexts.org/Courses/Nova_Scotia_Community_College/MATH_1043/07%3A_Geometry/7.04%3A_The_Pythagorean_Theorem)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Diophantine problems and approximation › Linear and additive Diophantine equations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/pythagorean-triple

English original: https://www.edgepedia.org/pythagorean-triple
