Example

The invertible elements of Z/6Z are 1 and 5. Hence (6) = 2.