I have the question:
compute $\phi(24)$ for each element Z/24 decide whether the element is a unit or a zero divisor, if the element is a unit divisor give its order and find its inverse.
Ive worked out $\phi(24)=8$
and the unit divisors to be ${1,5,7,11,13,17,19,23}$
however when I came to working out the order I got them all to be 2?
If you look at the numbers mod 6 (the prime divisors of 24 being 2 and 3) you eliminate those equivalent to 0,2,3,4 - so you have left those equivalent to 1 and 5 (i.e. $6n \pm 1$). You could confirm your answer by looking at what happens to the numbers $(6n \pm 1)^2$ when they are taken mod 24.