Cyclic Groups and Generators
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn what makes a group cyclic, how to find the order of an element, which elements generate a cyclic group, and the classification theorem that says there is essentially only one cyclic group of each size.
The Concept
Section titled “The Concept”The order of an element
Section titled “The order of an element”The order of an element , written , is the smallest positive integer with
If no such exists, has infinite order.
In , the element has order 4, because and no smaller count reaches . In , every nonzero element has infinite order, since no number of copies of ever sums to .
Note the collision flagged in an earlier lesson: is how many elements the group has, while is a property of one element. Same notation, different meanings, distinguished only by whether the thing inside is a group or an element.
Cyclic groups
Section titled “Cyclic groups”is cyclic if there is a single element with
Such an is a generator. One element, applied over and over, produces the whole group.
Every cyclic group is abelian, and the proof is one line: , since integer addition commutes. The converse is false - the Klein four-group is abelian and not cyclic - so “cyclic” is strictly stronger.
Which elements generate?
Section titled “Which elements generate?”In , the element generates the whole group exactly when
More generally, has order
Here’s why. Repeatedly adding produces the multiples of mod , and you first return to at the least common multiple of and , which is . Dividing by gives the number of steps, . When the gcd is 1 that count is , so you visit everything.
So has generators : four of them, which is . In general a cyclic group of order has exactly generators.
A prime-order group is the extreme case: has generators, meaning every element except the identity generates the whole thing.
Subgroups of cyclic groups
Section titled “Subgroups of cyclic groups”Cyclic groups have the tidiest subgroup structure in all of group theory.
Every subgroup of a cyclic group is cyclic. And if , then has exactly one subgroup of order for each divisor of , and no others.
That’s why the lattice of from the previous lesson had exactly six nodes, matching the six divisors of 12. The subgroup of order is generated by .
This is a strong property, and most groups don’t have it. has order 8 but five different subgroups of order 2.
The classification of cyclic groups
Section titled “The classification of cyclic groups”Here is the first classification theorem in the section, and it is remarkably clean.
- Every infinite cyclic group is isomorphic to .
- Every finite cyclic group of order is isomorphic to .
So up to renaming, there is exactly one cyclic group of each size. When you understand , you understand every cyclic group of order that anyone will ever show you.
The reason is easy to see: if has order , matching turns ‘s multiplication into addition mod , and that dictionary is a perfect translation.
A consequence worth remembering
Section titled “A consequence worth remembering”Every group of prime order is cyclic. Take prime and any . The subgroup has order dividing (Lagrange, coming shortly), so its order is or . It isn’t 1 because . So .
That settles the structure of infinitely many groups in three lines. There is exactly one group of order 7, one of order 11, one of order 101.
Worked Examples
Section titled “Worked Examples”Example 1: Find the order of each element of .
Solution. Use .
| 0 | 10 | 1 |
| 1 | 1 | 10 |
| 2 | 2 | 5 |
| 3 | 1 | 10 |
| 4 | 2 | 5 |
| 5 | 5 | 2 |
| 6 | 2 | 5 |
| 7 | 1 | 10 |
| 8 | 2 | 5 |
| 9 | 1 | 10 |
Generators are , and confirms the count. Every order in the table divides 10.
Example 2: Is cyclic?
Solution. , the residues coprime to 9, so .
Try 2 as a generator, computing powers mod 9:
All six elements appear before returning to 1. Yes, cyclic, with .
Contrast from an earlier lesson, where every element squares to 1, so it is not cyclic. Whether is cyclic is a genuinely delicate question: it is cyclic exactly when is , a power of an odd prime, or twice such a power.
Example 3: Find all generators of .
Solution. Need with , so exclude multiples of 2 and 3.
Six generators, and . ✓
Example 4: Find the subgroup of order 6 in .
Solution. For a subgroup of order in , the generator is . Here :
Six elements ✓. And it is the only subgroup of order 6, by the classification of cyclic subgroups.
Example 5: The order of an element in a product.
Find the order of in .
Solution. The order of a pair is the least common multiple of the component orders.
In : . In : .
Check directly: . ✓
Since and the largest possible element order is , no element generates the group, so it is not cyclic.
Example 6: Prove every group of order 5 is cyclic.
Solution. Let and pick . Consider .
is a subgroup, so by Lagrange’s theorem divides 5. The divisors of 5 are 1 and 5.
would mean , contradicting with .
So , giving . Therefore is cyclic and . ∎
The same argument works for any prime, so there is exactly one group of each prime order.
Real-World Applications
Section titled “Real-World Applications”Diffie-Hellman key exchange picks a large prime and a generator of the cyclic group . Alice sends , Bob sends , and each computes . An eavesdropper sees and and must solve the discrete logarithm problem to recover . Generating the whole group matters: if generated only a small subgroup, the search space would collapse and the scheme would break. Choosing a bad generator is a real class of implementation bug.
Pseudorandom number generators. A linear congruential generator computes . Its period is maximal exactly when certain coprimality conditions hold, which is the same gcd condition that decides generators in . Get it wrong and your “random” sequence cycles after a few hundred values.
The circle of fifths. Pitch classes form , and moving up a fifth is adding 7. Since , repeated fifths visit all twelve keys before returning, which is why the circle of fifths closes exactly once around. Stacking major thirds instead means adding 4, and , so you get a 3-cycle: an augmented triad.
Gear ratios and cicadas. Two meshed gears with and teeth return to their starting alignment after teeth, so coprime tooth counts spread wear evenly. The same arithmetic explains why periodical cicadas emerge on 13- and 17-year cycles: prime periods maximize the time before re-synchronizing with a predator’s cycle.
Hash tables. Open addressing with a probe step modulo table size visits every slot exactly when . Implementations often pick a prime table size for precisely this reason: with prime, any nonzero step works.
Retrying will remove your ✅ checkmark until you pass again.