Abstract Algebra – Definition Issues of Multiplicative Group of Integers Modulo n

abstract-algebra

It is easy to verify that the set $(\mathbb{Z}/n\mathbb{Z})^\times$ is closed under multiplication in the sense that $a, b ∈ (\mathbb{Z}/n\mathbb{Z})^\times$ implies $ab ∈ (\mathbb{Z}/n\mathbb{Z})^\times$, and is closed under inverses in the sense that $a ∈ (\mathbb{Z}/n\mathbb{Z})^\times$ implies $a^{-1} ∈ (\mathbb{Z}/n\mathbb{Z})^\times$.

The question is the following:

Firstly, are $a$ and $b$ referring to each equivalence class of integers modulo $n$?

Secondly, by $a^{-1}$, what is this referring to? If $a$ is the equivalence class, I cannot see (or I am not sure) how I can make inverse set.

Best Answer

To the first question, just quoting your intro, "$a,b\in(\mathbb{Z}/n\mathbb{Z})^{\times}$". So if $\mathbb{Z}/n\mathbb{Z}$ is a set of equivalence classes, then yes, $a$ and $b$ are equivalence classes.

To the second question, $a^{-1}$ is an equivalence class such that $aa^{-1}$ is the equivalence class of $1$. In general, there is no quick formula to find an element of $a^{-1}$ given $a$. Instead, since a representative $A$ of $a$ and $n$ are relatively prime, the Euclidean algorithm provides solutions to the equation $$AB + nt = 1$$ Then mod $n$, $AB\equiv 1$. So the Euclidean algorithm will lead you to a representative of $a^{-1}$.

Now, to back-peddle a little bit, actually there is a rather simple formula for a representative of $a^{-1}$, given a representative $A$ of $a$. Take $B=A^{\varphi(n)-1}$, where $\varphi$ is Euler's totient function. Then $AB=A^{\varphi(n)}\equiv1\mod{n}$. The problem with this "simple" formula is that it's not computationally efficient. For example, if $n=97$, the Euclidean algorithm quickly tells us that $2^{-1}=49$. But this formula would give us $2^{96}$, which is tiresome to compute even if we reduce at every multiplication.