# 贝祖等式

**贝祖等式**是初等数论中的一个定理，它指出：对于任意两个非零整数 \( a \) 和 \( b \)，设它们的最大公约数为 \( d \)，则存在整数 \( s \) 和 \( t \)，使得 \( d = s \cdot a + t \cdot b \)；换言之，最大公约数是 \( a \) 与 \( b \) 的一个整数线性组合。<sup>[1](https://math-sites.uncg.edu/sites/pauli/112/HTML/secbezout.html)</sup><sup> • </sup><sup>[2](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)</sup>整数 \( s \) 和 \( t \) 称为 \( a \) 和 \( b \) 的辅因子。<sup>[1](https://math-sites.uncg.edu/sites/pauli/112/HTML/secbezout.html)</sup>该结果以法国数学家艾蒂安·贝祖（Étienne Bézout，1730–1783）命名，不过这一定名存在争议，因为等价的命题已出现在克洛德·加斯帕尔·巴歇（Claude Gaspard Bachet）1624 年的趣味数学著作中。<sup>[3](https://bookdown.org/f_j_s_c_bouyer/lecture_notes/greatest-common-divisor.html)</sup><sup> • </sup><sup>[4](https://publimath.fr/aaa15065/)</sup>

| 关键事实 | 详情 |
|---|---|
| 命题 | 对整数 \( a, b \)，设最大公约数为 \( d \)，则存在整数 \( s, t \) 使得 \( d = s \cdot a + t \cdot b \)<sup>[1](https://math-sites.uncg.edu/sites/pauli/112/HTML/secbezout.html)</sup> |
| 最小性 | \( d \) 是可表示为 \( s \cdot a + t \cdot b \) 的最小正整数，且所有具有该形式的整数都是 \( d \) 的倍数<sup>[2](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)</sup> |
| 不唯一性 | 表示并不唯一；例如 \( 6 = 60 \cdot (-2) + 42 \cdot 3 \)<sup>[5](https://math-cs.gordon.edu/ntic/ntic2017/section-bezout-id.html)</sup> |
| 计算 | 扩展欧几里得算法在求出最大公约数的同时给出辅因子，使用递推式 \( s_{i+1} = s_{i-1} - q_i s_i \) 与 \( t_{i+1} = t_{i-1} - q_i t_i \)<sup>[6](https://publish.uwo.ca/~mfranc65/ENT.pdf)</sup> |
| 算例 | \( \gcd(232, 108) = 4 \)，通过回代将 \( 4 \) 写成 232 与 108 的组合<sup>[2](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)</sup> |
| 互素情形 | \( \gcd(a,b) = 1 \) 当且仅当某个组合等于 1，这一形式有时称为巴歇–贝祖定理<sup>[7](https://arxiv.org/abs/2406.15642)</sup> |
| 应用 | 模逆元、线性丢番图方程、连分数<sup>[8](https://www.cambridge.org/core/books/abs/modern-computer-algebra/applications-of-the-euclidean-algorithm/AA958AAEC487BBE4720A12B007B91078)</sup> |

## 命题与刻画

在最常用的形式中，设 \( a \) 和 \( b \) 为非零整数，\( d \) 为它们的最大公约数。则 \( d \) 可写成线性组合 \( d = s \cdot a + t \cdot b \)，其中 \( s, t \in \mathbb{Z} \)。<sup>[2](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)</sup>该等式还给出了最大公约数的另外两种刻画：\( d \) 是可写成 \( s \cdot a + t \cdot b \) 形式的最小正整数，且所有其他具有该形式的整数都是 \( d \) 的倍数。<sup>[2](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)</sup>

表示并不唯一。一个例子便足以说明：\( 6 = 60 \cdot (-2) + 42 \cdot 3 \) 将 \( \gcd(60, 42) \) 表示为一个组合，而其他辅因子对同样可行。<sup>[5](https://math-cs.gordon.edu/ntic/ntic2017/section-bezout-id.html)</sup>当 \( \gcd(a, b) = 1 \) 时，“存在组合 \( s \cdot a + t \cdot b \) 等于 1”这一陈述成为互素的充要条件，这种形式有时称为巴歇–贝祖定理。<sup>[7](https://arxiv.org/abs/2406.15642)</sup>

## 用扩展欧几里得算法计算

该等式是构造性的：辅因子可以通过运行欧几里得算法，再沿其等式回代求得，这些等式通过一系列相关等式将 \( a \) 和 \( b \) 与最大公约数联系起来。<sup>[1](https://math-sites.uncg.edu/sites/pauli/112/HTML/secbezout.html)</sup><sup> • </sup><sup>[9](https://www.southampton.ac.uk/~wright/1001/Notes.pdf)</sup>一种实用的排布方式是将欧几里得算法写在表格一侧，再从另一侧自下而上回代。<sup>[5](https://math-cs.gordon.edu/ntic/ntic2017/section-bezout-id.html)</sup>

扩展欧几里得算法将回代过程系统化。对于 \( a > b > 0 \)，它产生通常的商序列与余数序列 \( (q_i) \) 和 \( (r_i) \)，以及由下式定义的两个辅助序列

\[ s_0 = 1, \quad t_0 = 0, \quad s_1 = 0, \quad t_1 = 1, \]
\[ s_{i+1} = s_{i-1} - q_i s_i, \qquad t_{i+1} = t_{i-1} - q_i t_i. \]

这些序列对所有 \( i \) 满足 \( s_i a + t_i b = r_i \)，因此在终止时刻，当 \( r_n = \gcd(a,b) \) 且 \( r_{n+1} = 0 \) 时，最后的系数给出 \( s_n a + t_n b = \gcd(a,b) \)。<sup>[6](https://publish.uwo.ca/~mfranc65/ENT.pdf)</sup>

**算例。** 要将 \( \gcd(232, 108) \) 写成组合，欧几里得算法给出

\[ 232 = 2 \cdot 108 + 16, \]
\[ 108 = 6 \cdot 16 + 12, \]
\[ 16 = 1 \cdot 12 + 4, \]
\[ 12 = 4 \cdot 3 + 0, \]

故最大公约数为 4。回代从最后一个非零余数开始，\( 4 = 16 - 1 \cdot 12 \)，再用前面的等式 \( 16 = 232 - 2 \cdot 108 \) 和 \( 12 = 108 - 6 \cdot 16 \) 替换 16 和 12，从而将 4 用 232 和 108 表示出来。<sup>[2](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)</sup>即使最大公约数很小，辅因子也可能变得很大：对于 \( \gcd(1245, 998) = 1 \)，一个表示为 \( 1 = 299 \cdot 1245 - 373 \cdot 998 \)。<sup>[2](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)</sup>

## 历史与命名

该等式以法国数学家艾蒂安·贝祖（1730–1783）命名，而底层的算法则以亚历山大的欧几里得命名。<sup>[3](https://bookdown.org/f_j_s_c_bouyer/lecture_notes/greatest-common-divisor.html)</sup>这一定名存在争议。对克洛德·加斯帕尔·巴歇《有趣而愉悦的问题》（*Problèmes plaisants et délectables*，数学娱乐类书籍之滥觞）1624 年版的研究指出，巴歇对该时代算术知识的总结增添了新的结果，其中就包括那个被不公正地称为贝祖等式的等式。<sup>[4](https://publimath.fr/aaa15065/)</sup>2024 年的一篇 arXiv 文章直接论证“贝祖等式”这一名称属于误称，并指出一些数学家在布尔巴基《数学原理》中见到“贝祖等式”后便采用了这一标签。<sup>[7](https://arxiv.org/abs/2406.15642)</sup>

## 应用

该等式之所以有用，是因为它将最大公约数转化为一个关于 \( a \) 和 \( b \) 的方程，更易于操作。<sup>[10](https://personal.math.ubc.ca/~PLP/book/sec-euclid.html)</sup>其主要计算应用均通过扩展欧几里得算法实现：计算模逆元、求解线性丢番图方程，以及展开连分数。<sup>[8](https://www.cambridge.org/core/books/abs/modern-computer-algebra/applications-of-the-euclidean-algorithm/AA958AAEC487BBE4720A12B007B91078)</sup>

## 推广

该等式刻画了特殊的环类。在整环中，当由两个元素生成的每个理想都是主理想时，贝祖性质成立。<sup>[11](https://wiki.math.ntnu.no/ma3202/2024v/questions)</sup>贝祖整环就是具有该性质的整环，而贝祖环是主理想整环的自然推广，不过这类环在代数中的作用比主理想整环小。<sup>[12](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/abs/bezout-rings-and-their-subrings/CF78C17904042F373916D015D04F0A44)</sup>

## References

1. [Section 4.4 Bézout's Identity, UNCG course notes](https://math-sites.uncg.edu/sites/pauli/112/HTML/secbezout.html)
2. [Bezout's Identity and the Extended Euclidean Algorithm, Number Theory Notes, Andrew Lutz, University of Oklahoma](https://math.ou.edu/~alutz/andrews-notes-0617.pdf)
3. [5.1 Greatest common divisor, Introduction to Pure Mathematics (bookdown)](https://bookdown.org/f_j_s_c_bouyer/lecture_notes/greatest-common-divisor.html)
4. [Bulletin de l'APMEP N° 516: Problèmes plaisants et délectables, Publimath](https://publimath.fr/aaa15065/)
5. [Section 2.4 The Bezout Identity, NTIC, Gordon College](https://math-cs.gordon.edu/ntic/ntic2017/section-bezout-id.html)
6. [Elementary Number Theory, University of Western Ontario notes](https://publish.uwo.ca/~mfranc65/ENT.pdf)
7. [It is not "Bézout's identity", arXiv:2406.15642](https://arxiv.org/abs/2406.15642)
8. [Applications of the Euclidean Algorithm, Modern Computer Algebra, Cambridge University Press](https://www.cambridge.org/core/books/abs/modern-computer-algebra/applications-of-the-euclidean-algorithm/AA958AAEC487BBE4720A12B007B91078)
9. [MATH1001 Introduction to Number Theory, University of Southampton](https://www.southampton.ac.uk/~wright/1001/Notes.pdf)
10. [Greatest divisors, Bézout and the Euclidean algorithm, UBC](https://personal.math.ubc.ca/~PLP/book/sec-euclid.html)
11. [ma3202 questions page, NTNU wiki](https://wiki.math.ntnu.no/ma3202/2024v/questions)
12. [Bezout rings and their subrings, Math. Proc. Camb. Phil. Soc.](https://www.cambridge.org/core/journals/mathematical-proceedings-of-the-cambridge-philosophical-society/article/abs/bezout-rings-and-their-subrings/CF78C17904042F373916D015D04F0A44)

---
*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 › Elementary number theory › Divisibility, GCD, and the integers

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bezouts-identity

English original: https://www.edgepedia.org/bezouts-identity
