a = b (mod m) and a = b (mod n) iff a = b (mod lcm(m,n))?

573 Views Asked by At

Basically I'm wondering if the converse of this is true:

If $a \equiv b (mod m)$ and $a \equiv b (mod n)$ then $a \equiv b (mod lcm(m, n))$

1

There are 1 best solutions below

0
On BEST ANSWER

$a=b+{mnk\over gcd(m,n)}$ for some integer $k$, hence $a=b+m{nk\over gcd(m,n)}=b+n{mk\over gcd(m,n)}$ and hence the converse is true.