I am new to group theory, and I observed that some multiplicative mod-n groups are cyclic and some are not . For ex :
$U(8) = (1,3,5,7)$ is not cyclic , but
$U(10) = (1,3,7,9)$ is cyclic and its generators are $(1,3,9)$.
How do we find which multiplicative group is cyclic, which is not?