edgepedia

物质世界与数学 / 数学与统计学 / 数与代数 / Number theory / Elementary number theory / Divisibility, GCD, and the integers

综合 · Edgepedia阅读需 5 分钟

贝祖等式

阅读英文原文

贝祖等式是初等数论中的一个定理,它指出:对于任意两个非零整数 a a 和 b b ,设它们的最大公约数为 d d ,则存在整数 s s 和 t t ,使得 d=s⋅a+t⋅b d = s \cdot a + t \cdot b ;换言之,最大公约数是 a a 与 b b 的一个整数线性组合。1 • 2整数 s s 和 t t 称为 a a 和 b b 的辅因子。1该结果以法国数学家艾蒂安·贝祖(Étienne Bézout,1730–1783)命名,不过这一定名存在争议,因为等价的命题已出现在克洛德·加斯帕尔·巴歇(Claude Gaspard Bachet)1624 年的趣味数学著作中。3 • 4

关键事实详情
命题对整数 a,b a, b ,设最大公约数为 d d ,则存在整数 s,t s, t 使得 d=s⋅a+t⋅b d = s \cdot a + t \cdot b 1
最小性d d 是可表示为 s⋅a+t⋅b s \cdot a + t \cdot b 的最小正整数,且所有具有该形式的整数都是 d d 的倍数2
不唯一性表示并不唯一;例如 6=60⋅(−2)+42⋅3 6 = 60 \cdot (-2) + 42 \cdot 3 5
计算扩展欧几里得算法在求出最大公约数的同时给出辅因子,使用递推式 si+1=si−1−qisi s_{i+1} = s_{i-1} - q_i s_i 与 ti+1=ti−1−qiti t_{i+1} = t_{i-1} - q_i t_i 6
算例gcd⁡(232,108)=4 \gcd(232, 108) = 4 ,通过回代将 4 4 写成 232 与 108 的组合2
互素情形gcd⁡(a,b)=1 \gcd(a,b) = 1 当且仅当某个组合等于 1,这一形式有时称为巴歇–贝祖定理7
应用模逆元、线性丢番图方程、连分数8

命题与刻画

在最常用的形式中,设 a a 和 b b 为非零整数,d d 为它们的最大公约数。则 d d 可写成线性组合 d=s⋅a+t⋅b d = s \cdot a + t \cdot b ,其中 s,t∈Z s, t \in \mathbb{Z} 。2该等式还给出了最大公约数的另外两种刻画:d d 是可写成 s⋅a+t⋅b s \cdot a + t \cdot b 形式的最小正整数,且所有其他具有该形式的整数都是 d d 的倍数。2

表示并不唯一。一个例子便足以说明:6=60⋅(−2)+42⋅3 6 = 60 \cdot (-2) + 42 \cdot 3 将 gcd⁡(60,42) \gcd(60, 42) 表示为一个组合,而其他辅因子对同样可行。5当 gcd⁡(a,b)=1 \gcd(a, b) = 1 时,“存在组合 s⋅a+t⋅b s \cdot a + t \cdot b 等于 1”这一陈述成为互素的充要条件,这种形式有时称为巴歇–贝祖定理。7

用扩展欧几里得算法计算

该等式是构造性的:辅因子可以通过运行欧几里得算法,再沿其等式回代求得,这些等式通过一系列相关等式将 a a 和 b b 与最大公约数联系起来。1 • 9一种实用的排布方式是将欧几里得算法写在表格一侧,再从另一侧自下而上回代。5

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

s0=1,t0=0,s1=0,t1=1, s_0 = 1, \quad t_0 = 0, \quad s_1 = 0, \quad t_1 = 1, si+1=si−1−qisi,ti+1=ti−1−qiti. s_{i+1} = s_{i-1} - q_i s_i, \qquad t_{i+1} = t_{i-1} - q_i t_i.

这些序列对所有 i i 满足 sia+tib=ri s_i a + t_i b = r_i ,因此在终止时刻,当 rn=gcd⁡(a,b) r_n = \gcd(a,b) 且 rn+1=0 r_{n+1} = 0 时,最后的系数给出 sna+tnb=gcd⁡(a,b) s_n a + t_n b = \gcd(a,b) 。6

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

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

故最大公约数为 4。回代从最后一个非零余数开始,4=16−1⋅12 4 = 16 - 1 \cdot 12 ,再用前面的等式 16=232−2⋅108 16 = 232 - 2 \cdot 108 和 12=108−6⋅16 12 = 108 - 6 \cdot 16 替换 16 和 12,从而将 4 用 232 和 108 表示出来。2即使最大公约数很小,辅因子也可能变得很大:对于 gcd⁡(1245,998)=1 \gcd(1245, 998) = 1 ,一个表示为 1=299⋅1245−373⋅998 1 = 299 \cdot 1245 - 373 \cdot 998 。2

历史与命名

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

应用

该等式之所以有用,是因为它将最大公约数转化为一个关于 a a 和 b b 的方程,更易于操作。10其主要计算应用均通过扩展欧几里得算法实现:计算模逆元、求解线性丢番图方程,以及展开连分数。8

推广

该等式刻画了特殊的环类。在整环中,当由两个元素生成的每个理想都是主理想时,贝祖性质成立。11贝祖整环就是具有该性质的整环,而贝祖环是主理想整环的自然推广,不过这类环在代数中的作用比主理想整环小。12

References

  1. Section 4.4 Bézout's Identity, UNCG course notes
  2. Bezout's Identity and the Extended Euclidean Algorithm, Number Theory Notes, Andrew Lutz, University of Oklahoma
  3. 5.1 Greatest common divisor, Introduction to Pure Mathematics (bookdown)
  4. Bulletin de l'APMEP N° 516: Problèmes plaisants et délectables, Publimath
  5. Section 2.4 The Bezout Identity, NTIC, Gordon College
  6. Elementary Number Theory, University of Western Ontario notes
  7. It is not "Bézout's identity", arXiv:2406.15642
  8. Applications of the Euclidean Algorithm, Modern Computer Algebra, Cambridge University Press
  9. MATH1001 Introduction to Number Theory, University of Southampton
  10. Greatest divisors, Bézout and the Euclidean algorithm, UBC
  11. ma3202 questions page, NTNU wiki
  12. Bezout rings and their subrings, Math. Proc. Camb. Phil. Soc.

Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026

© 2026 Biostate AI。依据 Edgepedia Community License,注明出处即可免费使用。 嵌入参考卡片。

报告错误

贝祖等式

请至少选择一个原因。