Does this follow from congruence?

47 Views Asked by At

Let a and b be two distinct prime numbers and x and y are integers. Is the following true?

($x \equiv y \mod a$) and ($x \equiv y \mod b$). So, $a|(x-y)$ and $b|(x-y)$. This means $x-y=ab\phi$ with $\phi \in \mathbb{Z}$.

Can I state the last part or do I need to prove that somehow? It seems logical enough to me but it might be wrong. Your help is appreciated.

1

There are 1 best solutions below

1
On BEST ANSWER

Let $x-y = am = bn$, $m, n\in \mathbb Z$.

$$am = bn$$

Since $a$ and $b$ are coprime and $a \mid bn$, $a\mid n$. Let $n = a\phi$.