Abelian group, inverse element What would be the inverse element for this abelian group $[1,2,3,4,...,p-1]$ , in which p is a prime number, with this operation $(a*b)mod.p$? For all $a$ and $b$ of the set.
I know the inverse element has to be a multiplication of $p$ plus $1$, thus $a*b=kp+1$, with $k\in \mathbb{N}$ and $k>0$. But how can I determine it for each element?

By Fermat's Theorem, if $a$ is one of $1,2,3,\dots, p-1$, then $a^{p-1}\equiv 1\pmod{p}$. Thus $(a)(a^{p-2})\equiv 1\pmod{p}$, and therefore $a^{p-2}\bmod p$ is the inverse of $a$.
Remark: As a method, the use of Fermat's theorem is not particularly impractical, if we use the Binary Method for modular exponentiation. A more commonly used alternative is to use the Extended Euclidean Algorithm.
