Search

Search papers and lessons

Cyclic Group

Level 3 · 9 min read

A cyclic group is a group whose elements are all powers of one element, the generator, so the whole group is determined by one step repeated over and over.

On this page

  • Colour = topic mix
  • Discrete math
  • Abstract algebra
  • Sign in to see your progress

TL;DR

A group [[abstract-group|GG]] is cyclic when some single element gg in it generates the whole group. Every element of GG is then a power of gg, so the group is just one step taken again and again. The rest of the theory follows from counting how many steps it takes to come back to the start.

Cyclic groups are the simplest groups there are, and they show up whenever something repeats with a fixed period.

Where you'll see it: in the rotations of a regular polygon, in the clock arithmetic of the integers mod nn, and in the multiplicative group mod a prime, which underlies the Diffie–Hellman key exchange.

Intuition

One step, repeated

Think of a clock with 12 hours. Start at 0 and add 1 each time. You visit 1, 2, 3, and so on, and after 12 steps you are back at 0. Every hour on the clock is reached by repeating the single move "add 1". The whole group of hours is generated by one element.

Why does this idea deserve a name? Many groups look complicated on paper, but some of them are completely described by one element and a count. If you can recognise that a group is cyclic, you know its entire structure from two numbers: the generator and the group's size. Abstract algebra gives those groups a short name so theorems can refer to them directly.

The picture below shows the hours mod 6 with the move "add 1". Following the arrows visits every element once before returning to 0.

flowchart LR
  A["0"] -->|"+1"| B["1"]
  B -->|"+1"| C["2"]
  C -->|"+1"| D["3"]
  D -->|"+1"| E["4"]
  E -->|"+1"| F["5"]
  F -->|"+1"| A

The same picture works for multiplication. Take the nonzero residues mod 7 and multiply by 3 each time. You visit 3,2,6,4,5,13, 2, 6, 4, 5, 1 and then return to 3. Every nonzero residue appears exactly once, so 3 is a generator.

The math

Definition: Cyclic group

Let GG be a group with operation written as multiplication, and let g∈Gg \in G. The group generated by gg is

⟨g⟩={ gk:k∈Z },\langle g \rangle = \{\, g^k : k \in \mathbb{Z} \,\},

where gkg^k means gg multiplied by itself kk times for k>0k \gt 0, the identity ee for k=0k = 0, and (g−1)∣k∣(g^{-1})^{|k|} for k<0k \lt 0. The group GG is cyclic if G=⟨g⟩G = \langle g \rangle for some gg. Such a gg is called a generator of GG.

Here Z\mathbb{Z} is the set of all integers, and Zn\mathbb{Z}_n denotes the integers {0,1,…,n−1}\{0, 1, \dots, n-1\} with addition mod nn. Every cyclic group is abelian, because gagb=ga+b=gbgag^a g^b = g^{a+b} = g^b g^a. The converse is false: the group Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2 of size 4 is abelian but not cyclic, since no single element generates it.

The order of an element

The order of an element aa is the smallest positive integer kk with ak=ea^k = e. In the additive group Zn\mathbb{Z}_n this is the smallest k>0k \gt 0 with k⋅a≡0(modn)k \cdot a \equiv 0 \pmod n. The order of the whole group ∣G∣|G| is the number of its elements.

Key result: the order of a power

Let GG be cyclic of order nn with generator gg. For any integer kk, let d=gcd⁡(k,n)d = \gcd(k, n). Then

ord⁡(gk)=nd.\operatorname{ord}(g^k) = \frac{n}{d}.

Derivation. We need the smallest m>0m \gt 0 with (gk)m=e(g^k)^m = e. Since gg has order nn, this holds exactly when n∣kmn \mid km (read a∣ba \mid b as "aa divides bb"). Divide both sides by dd: (n/d)∣(k/d) m(n/d) \mid (k/d)\, m. Because gcd⁡(k/d, n/d)=1\gcd(k/d,\, n/d) = 1, the factor n/dn/d must divide mm. The smallest such mm is n/dn/d.

Key result: how many generators

A consequence: gkg^k generates GG exactly when ord⁡(gk)=n\operatorname{ord}(g^k) = n, which means gcd⁡(k,n)=1\gcd(k, n) = 1. So the generators of a cyclic group of order nn are the powers gkg^k with gcd⁡(k,n)=1\gcd(k,n) = 1, and there are φ(n)\varphi(n) of them, where φ\varphi is Euler's totient function, the count of integers in {1,…,n}\{1, \dots, n\} that are coprime to nn.

Key result: subgroups

Every subgroup of a cyclic group is cyclic. For each divisor dd of nn there is exactly one subgroup of order dd, namely the elements gn/d⋅jg^{n/d \cdot j} for j=0,…,d−1j = 0, \dots, d-1. Together with the first key result, this says that the subgroup lattice of a cyclic group is as simple as the divisors of nn.

Key result: classification

Any cyclic group is isomorphic to Zn\mathbb{Z}_n for its order nn, or to Z\mathbb{Z} if it is infinite. So up to renaming elements, there is one cyclic group of each order. This is why Zn\mathbb{Z}_n is the standard name for it.

Worked examples

Example
Order of an element in $\mathbb{Z}_{12}$

Take G=Z12G = \mathbb{Z}_{12} under addition mod 12, with generator g=1g = 1. Find the order of the element 88.

  1. The element 88 is 11 added eight times, so 8=g88 = g^8 in additive notation.
  2. Compute gcd⁡(8,12)\gcd(8, 12). The divisors of 8 are 1, 2, 4, 8 and the divisors of 12 are 1, 2, 3, 4, 6, 12. The largest common one is 4, so d=4d = 4.
  3. Apply the formula: ord⁡(8)=12/4=3\operatorname{ord}(8) = 12/4 = 3.
  4. Check directly. 8+8=16≡48 + 8 = 16 \equiv 4, and 4+8=12≡04 + 8 = 12 \equiv 0. The sum returns to 0 after three steps, so the order is 3.

Interpretation. Adding 8 on a 12-hour clock brings you back to the start every third time. The element 8 generates the subgroup {0,4,8}\{0, 4, 8\}, which is one of the subgroups predicted above, the one of order 3.

Example
A multiplicative group mod 7

The set {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\} with multiplication mod 7 is a group of order 6, written Z7×\mathbb{Z}_7^{\times}. Is it cyclic? Test 3 as a candidate generator.

  1. 31=33^1 = 3.
  2. 32=9≡2(mod7)3^2 = 9 \equiv 2 \pmod 7.
  3. 33=3⋅2=63^3 = 3 \cdot 2 = 6.
  4. 34=3⋅6=18≡43^4 = 3 \cdot 6 = 18 \equiv 4.
  5. 35=3⋅4=12≡53^5 = 3 \cdot 4 = 12 \equiv 5.
  6. 36=3⋅5=15≡13^6 = 3 \cdot 5 = 15 \equiv 1.

The list 3,2,6,4,5,13, 2, 6, 4, 5, 1 contains all six nonzero residues, so ⟨3⟩=Z7×\langle 3 \rangle = \mathbb{Z}_7^{\times}. The group is cyclic with generator 3.

Now check the counting result. φ(6)=2\varphi(6) = 2, so there should be exactly two generators, and the other one is 5. Indeed 51,52,…,565^1, 5^2, \dots, 5^6 give 5,4,6,2,3,15, 4, 6, 2, 3, 1, again all six residues. Also ord⁡(32)=ord⁡(2)=6/gcd⁡(2,6)=3\operatorname{ord}(3^2) = \operatorname{ord}(2) = 6/\gcd(2, 6) = 3, matching the direct check 2,4,12, 4, 1.

Interpretation. Multiplying by 3 mod 7 cycles through every nonzero residue. This is the fact behind many cryptographic systems: discrete logarithms are taken in a group like this one, where a generator exists.

Tradeoffs and failure modes

A cyclic group is the easiest kind of group to analyse, but it is also rare among the groups you meet in practice. Use the structure when you can prove a group is cyclic, and be careful with the shortcuts it invites. (Lagrange's theorem, used in the first row, says the order of a subgroup divides the order of the group.)

SituationProblemBetter choice
A group of prime orderEvery non-identity element is a generator.No extra work needed; the group is cyclic by Lagrange's theorem.
A group of order 4Assumed cyclic because it looks small. Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2 has no generator.Check each element's order first; if none has order 4, the group is not cyclic.
Discrete log in Zp×\mathbb{Z}_p^{\times}Attack methods exploit the factorisation of the group order.Choose a prime pp so that p−1p-1 has a large prime factor and use a generator of a large prime-order subgroup.
Using a cyclic group as a modelReal symmetry or data may not wrap around.Use a non-cyclic group such as a product of cyclic groups when several independent periods are present.

The most common error is treating "looks like a clock" as "is cyclic". Check that one element really generates the whole group, by computing its powers, before drawing conclusions.

History

The idea grew out of number theory rather than a general theory of groups. In the Disquisitiones Arithmeticae (1801), Carl Friedrich Gauss studied primitive roots modulo primes. A primitive root is an element whose powers run through all the nonzero residues, which is exactly a generator of the multiplicative group. Gauss worked with the arithmetic without naming the group.

The abstract definition of a group came later, in the 19th century. Arthur Cayley gave the first abstract definition in the 1850s, and cyclic groups soon became the basic examples. Their structure was settled once the general language of groups was in place, and they are now a standard starting point in every algebra course.

Cyclic groups caught on because they make many questions concrete. The multiplicative group of the integers mod a prime (and, more generally, of any finite field) is cyclic, which makes it a convenient setting for discrete logarithms, and in the 1970s this became the basis of public-key schemes such as Diffie–Hellman key exchange.

Check yourself

QuestionIn the group Z10\mathbb{Z}_{10} under addition, what is the order of the element 4?Show answer

Compute gcd⁡(4,10)=2\gcd(4, 10) = 2. The formula gives ord⁡(4)=10/2=5\operatorname{ord}(4) = 10/2 = 5. Direct check: 4,8,2,6,04, 8, 2, 6, 0. The sum returns to 0 after five steps, so the order is 5.

QuestionHow many generators does the cyclic group Z12\mathbb{Z}_{12} have?Show answer

Generators correspond to integers kk in {1,…,12}\{1, \dots, 12\} with gcd⁡(k,12)=1\gcd(k, 12) = 1. These are 1,5,7,111, 5, 7, 11, so there are 4. This matches φ(12)=4\varphi(12) = 4.

QuestionWhy is the group Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2 not cyclic, even though it is abelian?Show answer

It has four elements, and a cyclic group of order 4 would need an element of order 4. Every non-identity element of Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2 has order 2, since adding any element to itself gives the identity. So no single element generates the group, and it is not cyclic.

QuestionA regular hexagon can be rotated by multiples of 60 degrees, and these rotations form a group. Why is this group cyclic, and what is its generator?Show answer

The rotation by 60 degrees, applied repeatedly, produces the rotations by 120, 180, 240, 300 and 360 degrees, which is the identity. These six rotations are all of the rotations, so the 60-degree rotation generates the group. The generator is the 60-degree rotation (or equivalently the 300-degree rotation). Its powers are the group, which is why a regular polygon's rotation group is cyclic.

Sources