I am looking into congruences for school and I have trouble understanding on how to prove this (i understand modules, congruences but don't know how to prove it).
I need to prove that if this congruence is true:
$$a c \equiv b c \pmod m$$
then also this holds:
$$a \equiv b \pmod{m/\gcd(c,m)}$$
Can some one please explain or give a hint how I can prove this? I have tried googling but all the proofs I have found are without a good explanation to help me understand it.
Thanks!