$f(x) = ax \text{ mod } m$, given that $\text{gcd}(a,m) = d$ what values does $f(x)$ take on?

111 Views Asked by At

What values are in the range of $f(x) = ax \: (\text{mod } m)$ for $x \in \{0,...,m-1\}$.

I know that the answer should be all multiples of d however I'm not sure how one would reach that conclusion