I'm working on a proof which concludes that if $a\equiv b (mod\ m)$
then $gcd(a,m) = gcd(b,m)$
I know that we can rewrite the congruence as $km = a-b$ for some $k \in \mathbb{Z}$
I rearranged the equation to : $a = b + km$
So I have that:
$$gcd(b,m)|(b+km)$$
and
$$gcd(b,m)|a$$
I'm not sure where I'm supposed to go from here. I've been told that I can say that $$gcd(b,m) \leq gcd(a,m)$$ but I'm not sure how to draw that conclusion. Could someone explain that part?
Thanks!
Hint. Frequently, a good way to show that two positive integers are equal is to show that each is less than or equal to the other. Here is a sketch, see if you can supply the reasons and then complete the proof.