知识卡片
乘积互素要求两个因子均互素
对任意整数a、b、p,gcd(ab,p)=1当且仅当gcd(a,p)=1且gcd(b,p)=1。一个因子若与p有公共因子,乘积也不会与p互素;反向可由贝祖线性组合证明。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第31章 数论算法 · 查看原书依据
Theorem 31.6 For any integers a, b, and p, we have gcd(ab, p) = 1 if and only if gcd(a, p) = 1 and gcd(b, p) = 1 both hold. Proof If gcd(a, p) = 1 and gcd(b, p) = 1, then it follows from Theorem 31.2 that there exist integers x, y, x′, and y′ such that ax + py = 1, bx′ + py′ = 1. Multiplying these equations and rearranging
参考来源
- 位置:《算法导论(第4版)》第31章《数论算法》(OEBPS/chapter031.xhtml,文本字符[10000,15000))。
- 结论依据:原文定义整除、素数、余数、同余类和最大公约数,或给出相应定理;公式图已核对。
- 原始内容:Theorem 31.6 For any integers a , b , and p , we have gcd( ab , p ) = 1 if and only if gcd( a , p ) = 1 and gcd( b , p ) = 1 both hold. Proof If gcd( a , p ) = 1 and gcd( b , p ) = 1, then it follows from Theorem 31.2 that there exist integers x , y , x ′, and y ′ such that ax + py = 1, bx ′ + py ′ = 1. Multiplying these equations and rearranging