0
$\begingroup$

Calculate the multiplicative inverse of $5$ in $\mathbb{Z}_{12}$ using euclidean algorithm.

I think I got it but the end is a bit confusing, how to know what number is the multiplicative invererse..?

First of all, $5$ must have a multiplicative inverse in $\mathbb{Z}_{12}$ because $\text{gcd}(12,5)=1$

Then

$$5x \equiv1 \text{ mod } 12$$

$$x \equiv 5^{-1} (\text{mod }12)$$

$$12 = 2 \cdot 5+2$$

$$5 = 2 \cdot 2+1$$

$$1 = 5-2 \cdot 2$$

$$1 = 5-2 \cdot (12 - 2 \cdot 5)$$

$$1=5-2 \cdot 12 +4 \cdot 5$$

$$1 = -2 \cdot 12+5 \cdot 5$$

Fine but how do I know that the multiplicative inverse of $5$ in $\mathbb{Z}_{12}$ is $5$?

Because in last line we have several numbers, how to know which one is the one we are looking for?

  • 0
    **HInt** $ $ Reducing your final equation mod $12$ yields $\ 5\cdot 5\equiv 1\pmod{12}\ \ $2017-02-12
  • 0
    You only have two real options anyway, $5$ and $7$, since the inverse needs to be coprime to $12$ also, 1 is the identity and $11\equiv-1$ is always self-inverse.2017-02-12

1 Answers 1

2

$$1=−2⋅12+5⋅5$$ This means that $\color{red}{5}\cdot \color{blue}{5}= 1 + 2\cdot 12 \equiv 1 \bmod12$, so $\color{blue}{5}$ is the inverse of $\color{red}{5}$ mod $12$.