- #1
PsychonautQQ
- 784
- 10
Homework Statement
Theorm: Let m and n be relatively prime integers. If s and t are arbitrary integers there exists a solution x in Z to the simultaneous congruences:
x~s (mod m) and x~t (mod n)
Part of proof that confuses me: Since gcd(m,n) = 1, the Euclidean algorithm gives p and q in Z such that 1 = mp + nq. Take x = (mp)t + (nq)s.
How do they get the "Take x = (mp)t + (nq)s" part?