How should I approach this question? I was thinking of splitting it up such as as $ mt=b$ and $ax + ny=b$
Asked
Active
Viewed 1,078 times
1
-
1Are the answers given not satisfactory ? If they are , consider accepting them and giving them the green tick $\color{#2f0}{\checkmark}$ – Fallen_Prince Dec 13 '19 at 16:18
2 Answers
1
Note that $a\equiv b \mod m \implies\color{#d05}{a = mk+b} \,.$ Since $a\equiv b\mod n$ , we have :
$$mk+b\equiv b\mod n \implies mk \equiv 0\mod n$$
Since gcd$(m,n) =1$ , we conclude that $k \equiv 0\mod n \implies \color{#3ce}{k =nl}\,.$
Putting this in the original equation , we get $$a = mnl + b \implies \boxed{\color{#2d0}{a\equiv b\mod mn}}$$

The Demonix _ Hermit
- 3,478
-
Thats great thank you. Just wondering how you got the mod c on the first line – Aaron Dec 13 '19 at 12:02
-
1@Aaron Well , this is embarrassing . That was a small typo . Corrected it . – The Demonix _ Hermit Dec 13 '19 at 12:04
-
1
$ a \equiv b \mod m $ means $m |(a-b)$
if $ m | (a-b)$ and $n | (a - b)$ then $lcm(m,n)|(a-b)$
since $lcm(m,n)gcd(m,n) = mn$ and $gcd(m,n) = 1$, we have $lcm(m,n) = mn$
so $mn | (a-b)$

David Holden
- 18,040