Cyclic groups are the simplest groups there are: one element does all the work, and everything else is a power of it. That simplicity pays off. By the end of this page we'll know everything about a cyclic group: what it looks like (there's only one of each size), the order of every element, which elements generate it, and every single subgroup. That last one is rare. For most groups, finding all the subgroups is real work. For a cyclic group, it's a list of divisors.
We met these back when we were classifying small groups. Here's the definition again.
Every group of order $1$, $2$, or $3$ turned out to be cyclic, and that page promised to find out which elements of $C_n$ are generators. That's the third section below.
A group $G$ is cyclic if $\exists g \in G$ s.t.
$$G = \langle g \rangle = \{g^k : k \in \mathbb{Z}\} \quad \text{(or } \{k \cdot g : k \in \mathbb{Z}\} \text{ if } G \text{ is written additively).}$$
($g$ is a generator for $G$.)
The first big fact is that a cyclic group is completely determined by its size. If two cyclic groups have the same order, you can match them up by matching up their generators and then matching powers with powers.
If $G = \langle g \rangle$, $H = \langle h \rangle$, and $|G| = |H|$, then the map $\tau : G \rightarrow H$ defined by $\tau(g^k) = h^k$ is an isomorphism.
The same element can be written as $g^k$ for many different $k$, so it isn't obvious that $\tau$ is even a function. Checking that it is (and that it's a bijection) is an Exercise at the end of the next section, once Theorem 0 is back in hand.
So up to isomorphism there's exactly one cyclic group of each size, and we give them standard names.
The presentation $\langle x \mid x^n = e \rangle$ says: one generator $x$, and the only rule is that $x^n = e$ (plus whatever follows from it). With no rules at all, the powers of $x$ never collide, and you get $C_\infty$.
Examples. Which standard cyclic groups are $\mathbb{Z}/n\mathbb{Z}$ (under addition) and $\mathbb{Z}$?
$\mathbb{Z}/n\mathbb{Z} = \langle \overline{1} \rangle$ has $n$ elements, so $\mathbb{Z}/n\mathbb{Z} \cong C_n$.
$\mathbb{Z} = \langle 1 \rangle$ is infinite, so $\mathbb{Z} \cong C_\infty$.
$C_1 = \langle e \rangle$. The identity generates the entire group all by itself. Peak self-sufficiency.
Everything on this page is written multiplicatively, with $C_n = \langle x \rangle$ or $C_\infty = \langle x \rangle$. Translate to $\mathbb{Z}/n\mathbb{Z}$ or $\mathbb{Z}$ by reading $x^k$ as $k$.
We already know how to find orders by brute force. In a cyclic group there's a formula.
Both the definition of order and Theorem 0 below come from Subgroups & Lagrange's Theorem, where Theorem 0 is proved in full (and the Exponent Ribbon shows part (ii) in action).
If $g \in G$ then the order of $g$, denoted $|g|$ or $o(g)$, is defined to be the smallest $k \in \mathbb{N}$ satisfying $g^k = e$, or $\infty$ if there is no such $k$.
And the link between the order of an element and the size of the subgroup it generates:
$\forall g \in G$, $|g| = |\langle g \rangle|$. More precisely:
Now apply it to the elements of a cyclic group. The infinite case is quick: apart from $e$, nothing has finite order.
Write $C_\infty = \langle x \rangle$. Then
Proof. $x^0 = e$ has order $1$. For $k \neq 0$, suppose $|x^k| = q$ for some $q \in \mathbb{N}$. Then $e = (x^k)^q = x^{kq}$ with $kq \neq 0$, so $|x| \le |kq|$. By Theorem 0, $|C_\infty| = |\langle x \rangle| = |x| \le |kq| \lt \infty$. Contradiction $\implies |x^k| = \infty$. $\blacksquare$
The finite case needs one lemma first. It's true in any group, not just cyclic ones: once you know $|g| = n$, the exponents that kill $g$ are exactly the multiples of $n$.
If $G$ is any group, $g \in G$, and $|g| = n \in \mathbb{N}$, then $g^m = e \iff m \equiv 0 \pmod n$.
Proof. Suppose $g \in G$ and $|g| = n$.
Now the formula. Remember that $(k, n)$ means $\gcd(k, n)$.
Suppose $n \in \mathbb{N}$, write $C_n = \langle x \rangle$. Then $\forall k \in \mathbb{Z}$,
$$|x^k| = \frac{n}{(k, n)}.$$
(Note: $\frac{n}{(k, n)} \in \mathbb{N}$.)
The last step of the proof is the theorem on solving $ax \equiv b \pmod n$ from Modular Arithmetic, with $b = 0$: since $d = (k, n)$ divides $0$, the solutions to $km \equiv 0$ are everything $\equiv 0 \pmod{\frac{n}{d}}$.
Proof. Using the lemma,
$$\begin{align*} \{m \in \mathbb{Z} : (x^k)^m = e\} &= \{m \in \mathbb{Z} : x^{km} = e\} \\ &= \{m \in \mathbb{Z} : km \equiv 0 \pmod n\} \\ &= \left\{m \in \mathbb{Z} : m \equiv 0 \pmod{\tfrac{n}{(k, n)}}\right\}. \end{align*}$$
The order of $x^k$ is the smallest positive integer in this set, which is $\frac{n}{(k, n)}$. $\blacksquare$
Picture $C_n$ as $n$ dots around a circle, with $x^k$ meaning "jump $k$ dots." Starting from $e$ and jumping by $k$ over and over traces out a star, and the number of dots the star lands on before it closes up is $|x^k|$. Some stars land on every dot. Those are the interesting ones.
Pick $n$ and a jump size $k$, then press Hop to walk through the powers of $x^k$. Stars that touch every dot are generators.
Let $C_{20} = \langle x \rangle$. Find $|x^8|$, $|x^6|$, and $|x^{15}|$.
$$|x^8| = \frac{20}{(8, 20)} = \frac{20}{4} = 5, \qquad |x^6| = \frac{20}{(6, 20)} = \frac{20}{2} = 10, \qquad |x^{15}| = \frac{20}{(15, 20)} = \frac{20}{5} = 4.$$
Check one by hand: $(x^{15})^4 = x^{60} = (x^{20})^3 = e$, and $(x^{15})^1, (x^{15})^2, (x^{15})^3 = x^{15}, x^{10}, x^{5}$ are not $e$.
Prove the theorem from the first section when $|G| = |H| = n \in \mathbb{N}$: if $G = \langle g \rangle$ and $H = \langle h \rangle$, then $\tau(g^k) = h^k$ is a well-defined isomorphism.
Proof. By Theorem 0, $|g| = |\langle g \rangle| = n$ and $|h| = |\langle h \rangle| = n$.
Well-defined and injective: by Theorem 0 (ii), for $i, j \in \mathbb{Z}$, $$g^i = g^j \iff i \equiv j \pmod n \iff h^i = h^j.$$ The "$\Rightarrow$" direction says $\tau$ is well-defined (two names for the same element of $G$ get sent to the same element of $H$), and the "$\Leftarrow$" direction says $\tau$ is injective.
Surjective: every element of $H$ is $h^k$ for some $k$, and $h^k = \tau(g^k)$.
Homomorphism: $\tau(g^i g^j) = \tau(g^{i+j}) = h^{i+j} = h^i h^j = \tau(g^i)\tau(g^j)$.
So $\tau$ is an isomorphism. (The infinite case is the same argument with Theorem 0 (i) in place of (ii): there, $g^i = g^j \iff i = j \iff h^i = h^j$.) $\blacksquare$
Which powers of $x$ generate all of $C_n = \langle x \rangle = \{e, x, x^2, \dots, x^{n-1}\}$? By Theorem 0, $x^k$ generates $C_n$ exactly when $|x^k| = n$, and by the formula that means $\frac{n}{(k, n)} = n$.
$$C_n = \langle x^k \rangle \iff (k, n) = 1.$$
So there are $\varphi(n)$ generators for $C_n$.
In the Star Hopper, these are exactly the jump sizes whose star touches every dot. Here's the count in action.
$n = 15 = 3 \cdot 5$, $C_{15} = \langle x \rangle$. List the generators of $C_{15}$.
$\varphi(15) = 2 \cdot 4 = 8$, so there are $8$ generators. They're the powers $x^k$ with $1 \le k \le 14$ and $(k, 15) = 1$, which means $3 \nmid k$ and $5 \nmid k$:
$$x^1, \ x^2, \ x^4, \ x^7, \ x^8, \ x^{11}, \ x^{13}, \ x^{14}.$$
The same corollary says something useful about primitive roots, because a group of units mod $n$ can itself be cyclic.
The primitive root theorem says $(\mathbb{Z}/n\mathbb{Z})^\times$ is cyclic exactly when $n = 1, 2, 4, p^k$, or $2p^k$. A primitive root is just a generator of that cyclic group.
Let $n = p^l$, with $p$ an odd prime and $l \in \mathbb{N}$. How many primitive roots are there mod $n$, and how do you find them all from one of them?
By the Primitive Root Theorem, $(\mathbb{Z}/n\mathbb{Z})^\times$ is cyclic, and $|(\mathbb{Z}/n\mathbb{Z})^\times| = \varphi(n) = p^{l-1}(p-1)$. So $(\mathbb{Z}/n\mathbb{Z})^\times \cong C_{\varphi(n)}$, and the corollary applies with $\varphi(n)$ in place of $n$:
Now with actual numbers. We already know one primitive root mod $103$.
On Subgroups & Lagrange's Theorem, Lagrange let us check only a handful of divisors of $102$ to show that $5$ is a primitive root mod $103$.
$5$ is a primitive root mod $103$. Find all the primitive roots mod $103$.
$\varphi(103) = 102 = 2 \cdot 3 \cdot 17$, so
$$\varphi(\varphi(103)) = \varphi(102) = 1 \cdot 2 \cdot 16 = 32.$$
The collection of all primitive roots mod $103$ is
$$\{5^k : 1 \le k \le 102, (k, 102) = 1\} \pmod{103}.$$
The allowed exponents are the $k$ that are odd, not divisible by $3$, and not divisible by $17$:
$$k = 1, 5, 7, 11, 13, 19, 23, 25, 29, 31, 35, 37, 41, 43, 47, 49, 53, 55, 59, 61, 65, 67, 71, 73, 77, 79, 83, 89, 91, 95, 97, 101.$$
Computing $5^k \bmod 103$ for each (and sorting), the $32$ primitive roots mod $103$ are
$$\begin{array}{cccccccc} 5 & 6 & 11 & 12 & 20 & 21 & 35 & 40 \\ 43 & 44 & 45 & 48 & 51 & 53 & 54 & 62 \\ 65 & 67 & 70 & 71 & 74 & 75 & 77 & 78 \\ 84 & 85 & 86 & 87 & 88 & 96 & 99 & 101 \end{array}$$
For instance $k = 5$ gives $5^5 = 3125 = 30 \cdot 103 + 35$, so $35$ is on the list, and $k = 101 \equiv -1 \pmod{102}$ gives $5^{-1} \equiv 62$ (check: $5 \cdot 62 = 310 = 3 \cdot 103 + 1$).
$\varphi(\varphi(103)) = 32$. But why stop? $\varphi(32) = 16$, $\varphi(16) = 8$, $\varphi(8) = 4$, $\varphi(4) = 2$, $\varphi(2) = 1$. Keep taking $\varphi$ of anything and it always crawls down to $1$ eventually.
Notice that $5^{101} \equiv 5^{-1}$ made the list. That's no accident: $(k, n) = 1 \iff (-k, n) = 1$, so the inverse of a generator is always a generator too.
List the generators of $C_{12} = \langle x \rangle$.
$\varphi(12) = 12\left(1 - \frac{1}{2}\right)\left(1 - \frac{1}{3}\right) = 4$. The exponents $1 \le k \le 11$ with $(k, 12) = 1$ are $1, 5, 7, 11$, so the generators are $x$, $x^5$, $x^7$, $x^{11}$.
$2$ is a primitive root mod $9$. Use Example 3 to list all the primitive roots mod $9$.
$9 = 3^2$, so $\varphi(9) = 3 \cdot 2 = 6$ and there are $\varphi(6) = 2$ primitive roots. The exponents $1 \le k \le 6$ with $(k, 6) = 1$ are $k = 1, 5$:
$$2^1 = 2, \qquad 2^5 = 32 \equiv 5 \pmod 9.$$
So the primitive roots mod $9$ are $2$ and $5$, matching what we found by brute force on the Subgroups page.
Now for the payoff. In a general group, subgroups can be generated by several elements at once and can be hard to pin down. In a cyclic group, every subgroup is generated by a single power of $x$, and we can say exactly which one.
If $G = \langle x \rangle$ and $H \le G$, then either $H = \{e\}$ or $H = \langle x^k \rangle$, where $k$ is the smallest positive integer with the property that $x^k \in H$.
In particular, every subgroup of a cyclic group is cyclic. The proof is the Division Algorithm again: any power of $x$ in $H$ that isn't a multiple of $k$ would leave a remainder smaller than $k$ inside $H$.
Proof. Suppose $H \neq \{e\}$ and let $S = \{l \in \mathbb{N} : x^l \in H\}$.
Since $H \neq \{e\}$, $\exists l \in \mathbb{Z} \setminus \{0\}$ s.t. $x^l \in H$, and also $x^{-l} \in H$. One of $l, -l$ is positive, so $S \neq \emptyset$. Therefore, by the Well Ordering Principle, $S$ has a smallest element, which we call $k$. Now we have that:
We conclude that $H = \langle x^k \rangle$. $\blacksquare$
You can watch the proof happen in $C_\infty$. Put any powers of $x$ you like into $H$, and $H$ fills in everything they generate. The smallest positive exponent that shows up is the $k$ from Theorem 1, and every other exponent in $H$ turns out to be a multiple of it.
Tap exponents to put those powers of $x$ into $H$. The comb shows every exponent $l$ with $x^l \in H$. Switch to Compare to test whether one comb sits inside another.
By Theorem 1, every subgroup of $C_\infty$ is $\langle x^k \rangle$ for some $k \ge 0$ (we can take $k \ge 0$ because $\langle x^k \rangle = \langle x^{-k} \rangle$). The next result says there's no double counting.
The distinct subgroups of $C_\infty = \langle x \rangle$ are $\{\langle x^k \rangle : k = 0, 1, 2, \dots\}$.
Proof. By Theorem 1, every subgroup of $C_\infty = \langle x \rangle$ is of the form $\langle x^k \rangle$, for some $k \in \{0, 1, 2, \dots\}$. Suppose $k, l \in \{0, 1, 2, \dots\}$ and $k \lt l$.
This tells us exactly how many generators $C_\infty$ has.
Infinitely many subgroups, and only two keys open the front door.
The only generators for $C_\infty = \langle x \rangle$ are $x$ and $x^{-1}$.
To see this: suppose $C_\infty = \langle x^l \rangle$ for some $l \in \mathbb{Z}$. Then $C_\infty = \langle x^{|l|} \rangle = \langle x^1 \rangle$ and, since the subgroups listed above are distinct, $|l| = 1 \implies l = \pm 1$.
The finite case is even tidier. Lagrange says a subgroup's order has to divide $n$. For cyclic groups the converse holds too, as strongly as it possibly could: every divisor gets exactly one subgroup.
Suppose $n \in \mathbb{N}$, write $C_n = \langle x \rangle$. Then there is exactly one subgroup of $C_n$ of order $d$, for every $d \in \mathbb{N}$ with $d \mid n$. More precisely:
Part (i) says no other orders are possible, (ii) says each divisor's subgroup exists, and (iii) says it's the only one.
Proof of (i): Follows from Lagrange's Theorem.
Proof of (ii): Since $n = d \cdot \frac{n}{d}$, we have $\frac{n}{d} \mid n$, so $\left(\frac{n}{d}, n\right) = \frac{n}{d}$. By Theorem 0 and the order formula, $$|\langle x^{n/d} \rangle| = |x^{n/d}| = \frac{n}{(n/d, n)} = \frac{n}{n/d} = d.$$
Proof of (iii): Let $k$ be the smallest positive integer with the property that $x^k \in H$, so that $H = \langle x^k \rangle$ (Theorem 1). Then
$$d = |H| = |x^k| = \frac{n}{(k, n)} \implies (k, n) = \frac{n}{d}$$
$$\implies \frac{n}{d} \mid k \implies x^k \in \langle x^{n/d} \rangle \implies H \le \langle x^{n/d} \rangle.$$
But $|H| = d = |\langle x^{n/d} \rangle|$, and a subset of a finite set with the same size is the whole set, so $H = \langle x^{n/d} \rangle$. $\blacksquare$
Put the two halves of the page together. Each $x^k$ generates some subgroup, and by the theorem that subgroup is $\langle x^{(k, n)} \rangle$, the one of order $\frac{n}{(k, n)}$. So sorting the elements of $C_n$ by "which subgroup do you generate?" drops every element into a bin labeled by a divisor of $n$.
Pick $n$. Tap a tile $x^k$ to drop it into the bin of the subgroup it generates. Sort every tile and count what lands in each bin.
Since there's one subgroup per divisor, drawing the lattice of a cyclic group comes down to drawing the divisors of $n$. And containment is divisibility too: $\langle x^{n/d} \rangle \le \langle x^{n/d'} \rangle$ exactly when $d \mid d'$.
$p$ prime. Draw the lattice of subgroups of $C_p$.
The only divisors of $p$ are $1$ and $p$, so there are only two subgroups:
$$\begin{array}{c} C_p \\ | \\ \{e\} \end{array}$$
The next one has six divisors, so six subgroups.
The Lattice Explorer on Subgroups & Lagrange's Theorem found these six by brute force. Now we know there can't be any others.
$C_{12} = \langle x \rangle$. Draw the lattice of subgroups.
$12 = 2^2 \cdot 3^1$. Divisors of $12$ ($2^a 3^b$, $0 \le a \le 2$, $0 \le b \le 1$): $1, 2, 3, 4, 6, 12$ ($6$ total). The subgroup of order $d$ is $\langle x^{12/d} \rangle \cong C_d$:
$\langle x^4 \rangle$ (order $3$) sits inside $\langle x^2 \rangle$ (order $6$) but not inside $\langle x^3 \rangle$ (order $4$), since $3 \nmid 4$. $\langle x^6 \rangle$ (order $2$) sits inside both.
For $C_\infty$ there's no top-to-bottom ordering by size (every nontrivial subgroup is infinite), but the divisibility pattern is still there, just turned upside down.
$C_\infty = \langle x \rangle$. Describe the lattice of subgroups.
$$\langle x^k \rangle \le \langle x^l \rangle \iff l \mid k.$$
So $\langle x \rangle$ sits at the top, and $\langle x^k \rangle$ sits below $\langle x^l \rangle$ whenever $l$ divides $k$. Here are the first four rows. Row two is the primes, row three is products of two primes, row four is products of three, and to keep the picture readable only the primes $2$, $3$, $5$ are drawn. Lines join each subgroup to the ones directly above it, which you get by dividing $k$ by one prime.
Every row goes on forever, and so does the lattice. $\{e\} = \langle x^0 \rangle$ sits below all of them, since every $l$ divides $0$.
In $C_\infty = \langle x \rangle$, show that $\langle x^4 \rangle \cap \langle x^6 \rangle = \langle x^{12} \rangle$.
Proof. By Theorem 0 (i), the powers of $x$ are all different, so $x^m \in \langle x^l \rangle$ (for $l \neq 0$) exactly when $l \mid m$. So
$$x^m \in \langle x^4 \rangle \cap \langle x^6 \rangle \iff 4 \mid m \text{ and } 6 \mid m \iff \operatorname{lcm}(4, 6) = 12 \mid m \iff x^m \in \langle x^{12} \rangle.$$
Since every element of $C_\infty$ is $x^m$ for some $m$, the two sets are equal. $\blacksquare$
In the lattice, $\langle x^{12} \rangle$ is the highest subgroup sitting below both $\langle x^4 \rangle$ and $\langle x^6 \rangle$.
If you sorted every tile in the Generator Sorter, you saw the bin of order $d$ fill up with exactly $\varphi(d)$ tiles, and the bins added up to $n$. Here's why that always happens.
Prove that for every $n \in \mathbb{N}$,
$$\sum_{d \mid n} \varphi(d) = n,$$
where the sum runs over the positive divisors $d$ of $n$. (Check: for $n = 12$, $\varphi(1) + \varphi(2) + \varphi(3) + \varphi(4) + \varphi(6) + \varphi(12) = 1 + 1 + 2 + 2 + 2 + 4 = 12$.)
Proof. Count the elements of $C_n = \langle x \rangle$ in two ways. For each $d \mid n$, let $H_d = \langle x^{n/d} \rangle$, the unique subgroup of order $d$, and let
$$A_d = \{g \in C_n : \langle g \rangle = H_d\}.$$
The $A_d$ partition $C_n$. Every $g \in C_n$ generates a subgroup $\langle g \rangle \le C_n$. By part (i) of the theorem, $|\langle g \rangle| = d$ for some $d \mid n$, and by part (iii), $\langle g \rangle = H_d$. So $g$ lies in $A_d$ for exactly one $d$ (different $d$ give different subgroups, since they have different orders). Therefore $$n = |C_n| = \sum_{d \mid n} |A_d|.$$
Each $|A_d| = \varphi(d)$. $A_d$ is the set of generators of $H_d$. Every element of $A_d$ lies in $H_d$, and $H_d$ is cyclic of order $d$, so $H_d \cong C_d$. By the corollary on generators, $C_d$ has exactly $\varphi(d)$ generators, and an isomorphism carries generators to generators. So $|A_d| = \varphi(d)$.
Combining the two, $\sum_{d \mid n} \varphi(d) = n$. $\blacksquare$
This identity is due to Gauss. It's a pure number theory statement, but the cleanest proof is the group theory one: each element generates exactly one cyclic subgroup.