PsychonautQQ said:
Ooh thank you, I thought the group operation was multiplication
##Z_7## is the ring of integers modulo 7. Every ring is an additive group (just ignore the multiplication).
A ring is not a multiplicative group because ##0## has no multiplicative inverse, and the same may be true of other elements. However, the set of
units (elements which have multiplicative inverses), if it is nonempty, does form a group under multiplication, called the group of units. To distinguish this group from the ring, we often use a notation such as ##Z_7^\times##.
In the case of ##Z_7##, or more generally ##Z_p## for any prime number, every nonzero element is a unit. So ##Z_7^\times## consists of ##\{1,2,3,4,5,6\}## and more generally, ##Z_p^\times## contains ##p-1## elements when ##p## is prime.
On the other hand, if ##n## is not prime, then some nonzero elements of ##Z_n## may not be units. For example, in ##Z_4##, the group of units is ##Z_4^\times = \{1,3\}##.