So, out of curiosity, I was wondering why $x (1 \to b)$ where $a$ & $b$ are co prime, why is $ax \bmod b$ distinct.
For example, let $a = 5$, and $b= 8$:
$\begin{array}{c|c|c} x & 5x & 5x\bmod 8 \\ \hline 1 & 5 & 5 \\ 2 & 10 & 2 \\ 3 & 15 & 7 \\ 4 & 20 & 4 \\ 5 & 25 & 1 \\ 6 & 30 & 6 \\ 7 & 35 & 3 \\ 8 & 40 & 0 \\ \end{array}$
As you can see $5x \bmod 8$ is always distinct. Why?
This is basically equivalent to saying "you can divide by $a$ (mod $b$)", since these values all being distinct means there's only one solution to $ax\equiv c$ mod $b$.
This is true because if $a$ and $b$ are coprime, there are integers $n,m$ such that $an+bm=1$. Then $anx=x-bmx\equiv x$ (mod $b$). If $ax$ and $ay$ were the same mod $b$, then $anx$ and $any$ would also be the same mod $b$, but since $anx\equiv x$ and $any\equiv y$, $x$ and $y$ must also be the same.