Simultaneous Congruences with Shared Factors
Two residues at overlapping moduli can be combined precisely when they agree on the overlap. The result is unique modulo the least common multiple.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 1
- Reading time
- 1 min
For \(x\equiv a\bmod m\), write \(x=a+mk\). The second congruence is \(mk\equiv b-a\bmod n\), solvable exactly when \(\gcd(m,n)\mid b-a\) by the rule for linear congruences. Any two combined solutions differ by a multiple of both moduli.
\[x\equiv a\pmod m,\quad x\equiv b\pmod n \quad\Longrightarrow\quad a\equiv b\pmod{\gcd(m,n)}.\]
Gluing over a nontrivial overlap
Take \(x\equiv3\bmod6\) and \(x\equiv7\bmod8\). Then \(6k\equiv4\bmod8\), or \(3k\equiv2\bmod4\), so \(k\equiv2\bmod4\). The result is \(x\equiv15\bmod24\). At coprime moduli the overlap condition is automatic, recovering the usual Chinese remainder theorem.[1]