For all $a$, $m \in\mathbb{Z}$, prove that
For all $x \in [a]$, where $[a]$ is the congruence class of $a \pmod m$, $\quad\gcd(x,m)=\gcd(a,m)$.
I have no idea where to start for this.
For all $a$, $m \in\mathbb{Z}$, prove that
For all $x \in [a]$, where $[a]$ is the congruence class of $a \pmod m$, $\quad\gcd(x,m)=\gcd(a,m)$.
I have no idea where to start for this.
On
Hints:
Hint:
With your notation
$$x\in [a]\iff x=a+mk\;,\;\;k\in\Bbb Z$$
If now we put
$$\;d=gcd(x,m)\iff \begin{cases}x=x'd\\{}\\m=m'd\end{cases}\implies a=x-mk=(x'-m'k)d\implies d\mid a$$
Your work now: show that $\;d\;$ is the greatest divisor of $\;a\;$ in the above (contradiction may help here...), and do also the other direction, namely:
$$d=gcd(a,m)\implies d=gcd(x,m)$$