How do I solve 2x=4 in $Z_{12}$
I know the $gcd(2,12) = 2$ and $2|4$ therefore there are 2 solutions, but I'm not sure how to solve this. I tried using the euclidean algorithm but it doesn't seem to work with numbers this small.
How do I solve 2x=4 in $Z_{12}$
I know the $gcd(2,12) = 2$ and $2|4$ therefore there are 2 solutions, but I'm not sure how to solve this. I tried using the euclidean algorithm but it doesn't seem to work with numbers this small.
$\begin{align}{\bf Hint}\qquad\ \ \ 2x&\equiv 2a\!\pmod{\!2n}\\[.2em] \iff \color{#c00}2x &= \color{#c00}2a + \color{#c00}2nk \ \ \ {\rm for\ some}\ \ k\in\Bbb Z\\[.2em] \iff\ \ x &= \ \ a +\ \ nk \ \ \ {\rm for\ some}\ \ k\in\Bbb Z\\[.2em] \iff\ \ x&\equiv\ \ a\!\pmod{\!n} \end{align}$