I can't seem to answer this question without assuming that gcd(c,m) = 1. Is the question missing any information?
2026-03-29 04:34:39.1774758879
On
Prove ca ≡ cb (mod m) if and only if a ≡ b mod (m/gcd(c, m) )
5.6k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
0
On
Let $g=\gcd(c,m)$ and write $c=gd$, $m=gn$. Then $\gcd(d,n)=1$, because otherwise $g$ would not be the greatest common divisor of $c$ and $n$. Therefore $$\eqalign{ ca\equiv cb\pmod m &\iff m\mid ca-cb\cr &\iff gn\mid gd(a-b)\cr &\iff n\mid d(a-b)\cr &\iff n\mid a-b\cr &\iff a\equiv b\ \Bigl({\rm mod}\frac{m}{\gcd(c,m)}\Bigr)\ .\cr}$$ Note that the second last step is true because $\gcd(d,n)=1$.
Let $\,d=a\!-\!b.\,\ m\mid cd\iff m\mid cd,md\!\!\overset{\large\ \ (1)}\iff m\mid (cd,md) = (c,m)d\iff m/(c,m)\mid d$
where in $(1)$ we used the GCD Universal Property and the GCD Distributive Law