『学习笔记』中国剩余定理
# 中国剩余定理 (CRT) 中国剩余定理是用来解决如下问题的: {x≡a1 (modm1)x≡a2 (modm2)... x≡an (modmn)\begin{cases} x\equiv a_1\ \pmod{m_1}&\\ x\equiv a_2\ \pmod{m_2}&\\ ...\ &\\ x\equiv a_n\ \pmod{m_n} \end{cases} ⎩⎪⎪⎪⎪⎨⎪⎪⎪⎪⎧x≡a1 (modm1)x≡a2 (modm2)... x≡an (modmn) 注意:模数必须互质。 #...
more...