← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3699

模线性方程可解条件是公因数整除

理解等级:中级

对a、n为正整数的ax≡b(mod n),设d=gcd(a,n)。

a在模n加法群中生成的剩余类恰是d的倍数,因此方程有解当且仅当d整除b;不能在不互素时贸然把a约掉。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第31章 数论算法 · 查看原书依据

      Corollary 31.21 The equation ax = b (mod n) is solvable for the unknown x if and only if d | b, where d = gcd(a, n). Proof The equation ax = b (mod n) is solvable if and only if [b] ∈ 〈a〉, which is the same as saying (b mod n) ∈ {0, d, 2d,

    参考来源

    - 位置:《算法导论(第4版)》第31章《数论算法》(OEBPS/chapter031.xhtml,文本字符[35000,40000))。 - 结论依据:原文对逆元、欧拉函数、子群阶与模线性方程的定理及证明;公式图已核对。 - 原始内容:Corollary 31.21 The equation ax = b (mod n ) is solvable for the unknown x if and only if d | b , where d = gcd( a , n ). Proof The equation ax = b (mod n ) is solvable if and only if [ b ] ∈ 〈 a 〉 , which is the same as saying ( b mod n ) ∈ {0, d , 2 d , …, (( n / d ) – 1) d }, by Theorem 31.20. If 0 ≤ b < n , then b ∈ 〈 a 〉 if and only if d | b