Problem

NT-B2-M09-P011 Compatibility Criterion

#11 Grade 10 Grade 11 ★★★★☆ Level 4 of 5

Let \(m,n,a,b\) be integers with \(m,n>0\). Prove that \(x\equiv a\pmod m\), \(x\equiv b\pmod n\) has a solution if and only if \(\gcd(m,n)\mid a-b\).

1001 Problems in Classical Number Theory (method inspiration) · Problem 276