Example

In Z/12Z the element 5 is invertible, since 5 · 5 = 25 = 1 mod 12.

The element 6 is not invertible, since a multiple of 6 is either 6 or 0 mod 12.