Let $p$ be a prime. Suppose that $a \in \Bbb Z$ is not divisible by $p$. Show that the congruence class $[a]_p$ has an inverse with respect to multiplication of congruence classes.
I am not very familiar with congruence classes, but it looks like $[a]_p = \{b \in \Bbb Z \mid b \equiv a \pmod{p} \}$. What I need to show is that there exists $a^{-1}$ such that $[a]_p \cdot [a^{-1}]_p = [1]_p$?
Only thing I can get out of this is that if $p$ doesn't divide $a$, then $a = pk + r$ where $k$ is some integer and $0<r\le k$ a remainder which is just another way of saying that $a \equiv r \pmod{p}$, where $r \ne 0$.
How is this related to the fact that there should exist an inverse for $[a]_p$?