This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
裴蜀定理ax+by=gcd(a,b)
ax+by=gcd(a,b)
同样是看名字一脸懵的定理,还有这个字念"pei",不知打错了多少次“翡”)得名于法国数学家艾蒂安·裴蜀
说明了对任何整数a、b和它们的最大公约数gcd(a,b),关于未知数 x 和 y 的线性二元一次不定方程(称为裴蜀等式): 一定存在整数x,y,使ax+by=gcd(a,b)成立。
a、b
gcd(a,b)
x
y
x,y
它的一个重要推论是:a,b互质的充要条件是存在整数 x,y 使ax+by=1 。证明我就略去了,来讲一下扩展欧几里得算法怎么得到裴蜀等式的一个解(有多个解,求出一个解可以写出通解)。
a,b
ax+by=1