Which elements in $\mathbb{Z}_5$ have multiplicative inverses?
I have drawn this in a small table:
*|0 1 2 3 4
-----------
0|0 0 0 0 0
1|0 1 2 3 4
2|0 2 4 1 3
3|0 3 1 4 2
4|0 4 3 2 1
Everywhere in table where we see a $1$ we have multiplicative inverse I think, so in total we have $4$ multiplicative inverses, is that right?
Is there a more efficient way answering this question? Because making table is too exhausting.
Indeed, from reading your table, we can see that every element with a $1$ in its row has a multiplicative inverse, which is to say all the non-zero elements.
However: in any book that mentions the notion of a multiplicative inverse, you should find the following statement in one form or another
Of course, if $n$ is prime, then every non-zero element has a multiplicative inverse in $\Bbb Z_n$.