4

$p_1, p_2$ are distinct prime numbers

I have just observed this pattern when solving this problem. Is there a simple way to prove/disprove it ?

AgentS
  • 12,195

1 Answers1

7

More generally, if $x\equiv a\pmod m$ and $x\equiv a\pmod n$ then $x\equiv a\pmod{\mathrm{lcm}(m,n)}$.

This is true because $x-a$ is a multiple of $m$ and a multiple of $n$, so must be a multiple of the least common multiple of $m,n$.

If $\gcd(m,n)=1$ then $\mathrm{lcm}(m.n)=mn$.

And if $p_1,p_2$ are distinct primes, then $\gcd(p_1,p_2)=1$.

Thomas Andrews
  • 177,126
  • wow! that's perfect explanation, goes straight into my head thank you so much (: – AgentS Sep 17 '14 at 15:25
  • 1
    If you are answering a question for a class, some of these assertions require proof. For example, the fact that any common multiple is a multiple of the least common multiple actually requires proof. (It's not hard.) Similarly, the assertion about the case $\gcd(m,n)=1$ requires proof. Even the fact that two distinct primes are relatively prime technically requires proof. – Thomas Andrews Sep 17 '14 at 15:33