Hi all. I'm having a bit of difficulty with a modular arithmetic proof problem. I think I know the answer, but it feels so simple so I want to solicit some opinions on if my proof is fine, or if I need to justify it more (and if so, how can I do so?). The full problem text is:
Going one way is easy enough. I started by assuming that \(\displaystyle a \equiv b \: \: (mod \: p_1 \: p_2)\). Then:
Any help would be appreciated. Thanks!
Let \(p_1\) and \(p_2\) be any two distinct primes, and let \(a\) and \(b\) be any two (not necessarily distinct) integers. Prove \(\displaystyle \left[ a \equiv b \: \: (mod \: p_1) \wedge a \equiv b \: \: (mod \: p_2) \right] \iff a \equiv b \: \: (mod \: p_1 \: p_2)\)
Going one way is easy enough. I started by assuming that \(\displaystyle a \equiv b \: \: (mod \: p_1 \: p_2)\). Then:
- \(\displaystyle a - b = p_1 \: p_2 \: k_3 \text{ where } k_3 \in \mathbb{Z}\).
- Let \(\displaystyle k_1 = p_2 \: k_3\) and \(\displaystyle k_2 = p_1 \: k_3\)
- \(\displaystyle a - b = p_1 \: k_1 \text{ where } k_1 \in \mathbb{Z}\)
- \(\displaystyle a - b = p_2 \: k_2 \text{ where } k_2 \in \mathbb{Z}\)
- \(\displaystyle a \equiv b \: \: (mod \: p_1) \wedge a \equiv b \: \: (mod \: p_2)\)
- \(\displaystyle a - b = p_1 \: k_1 \text{ where } k_1 \in \mathbb{Z}\)
- \(\displaystyle a - b = p_2 \: k_2 \text{ where } k_2 \in \mathbb{Z}\)
- \(\displaystyle a - b = LCM(p_1, \: p_2) \: k_3 \text{ where } k_3 \in \mathbb{Z}\)
- Since \(p_1\) and \(p_2\) are both prime and therefore coprime to each other, \(\displaystyle LCM(p_1, \: p_2) = p_1 \: p_2\)
- \(\displaystyle a - b = p_1 \: p_2 \: k_3 \text{ where } k_3 \in \mathbb{Z}\)
- \(\displaystyle a \equiv b \: \: (mod \: p_1 \: p_2)\)
Any help would be appreciated. Thanks!