Skip to main content

5.2 Cyclic Groups, Generators, Subgroups & Lagrange's Theorem

📚Module 05: Group Theory & Algebraic StructuresTopic 5.2: Cyclic Groups, Generators, Subgroups & Lagrange's Theorem⏱️5 min read
🎯High-Yield For:Semester Exams • GATE CSE • Technical Interviews

💡 Core Intuition: The 3-Second Mental Model​

🍳 The Everyday Analogy: Gear Trains & Modular Clock Hand Trajectories​

Imagine a single cogwheel gear or clock hand:

  1. The Generator & Cyclic Group: A clock hand with 12 positions. If you advance the hand by 1 hour repeatedly, you visit every single position on the clock face (1,2,3,…,121, 2, 3, \dots, 12) before returning home. The step of 11 generates the entire cycle! What if you step by 5 hours at a time? 5,10,3,8,1,6,11,4,9,2,7,125, 10, 3, 8, 1, 6, 11, 4, 9, 2, 7, 12—it also visits every position because gcd⁡(5,12)=1\gcd(5, 12) = 1! Any element whose repeated powers generate the whole group is a generator, and the group is cyclic.
  2. Subgroups (Synchronized Sub-Cycles): If you step by 3 hours, you only visit {3,6,9,12}\{3, 6, 9, 12\}. That sub-loop is self-contained: it has closure, its own identity (1212), and inverses. It forms a subgroup!
  3. Lagrange's Law of Divisibility: Notice the size of the sub-loop: 44 elements. Notice the size of the whole clock: 1212 elements. 44 divides 1212 cleanly (12/4=312 / 4 = 3). Could you ever create a sub-loop of size 5 on a 12-hour clock? Impossible! By Lagrange's Theorem, the size of any subgroup must divide the size of the parent group with zero remainder.

💻 Bridging to Computer Science: Diffie-Hellman Key Exchange & PRNGs​

In computer science:

  • Diffie-Hellman Key Exchange: Relies on large cyclic groups (Zp∗,×)(\mathbb{Z}_p^*, \times) where calculating discrete logarithms gx≡y(modp)g^x \equiv y \pmod p is computationally intractable.
  • Linear Congruential Generators (LCGs): Pseudo-random number generators (Xn+1=(aXn+c) mod mX_{n+1} = (aX_n + c) \bmod m) require maximal period multipliers that act as full-cycle generators.
  • Coset Codes & Error Detection: Linear block codes (Hamming codes) represent message words as subgroups whose cosets enable maximum-likelihood syndrome decoding.

🌀 Cyclic Groups: Definition, Generators & Theorems​

📖Definition 5.3: Cyclic Groupdefinition

A group (G,∗)(G, *) is called cyclic if there exists an element a∈Ga \in G such that every element of GG can be expressed as an integer power (or multiple) of aa:

G=⟨a⟩={ak∣k∈Z}(Multiplicative Notation)G = \langle a \rangle = \{ a^k \mid k \in \mathbb{Z} \} \quad (\text{Multiplicative Notation})G=⟨a⟩={k⋅a∣k∈Z}(Additive Notation)G = \langle a \rangle = \{ k \cdot a \mid k \in \mathbb{Z} \} \quad (\text{Additive Notation})

The element aa is called a generator of the cyclic group GG.

  • If G=⟨a⟩G = \langle a \rangle has finite order nn, then: G={a0=e,  a1,  a2,  …,  an−1}G = \{ a^0 = e, \; a^1, \; a^2, \; \dots, \; a^{n-1} \}
  • The order of any generator equals the order of the group: o(a)=∣G∣=no(a) = \vert G \vert = n.
★ Full Generator: ⟨1⟩012345
Generator ⟨1⟩ in (ℤ₆, +₆): Full Hamiltonian cycle of order 6.
✓ Subgroup: ⟨2⟩ = {0, 2, 4}012345
Subgroup ⟨2⟩ in (ℤ₆, +₆): Traces an inscribed triangle of order 3 dividing 6.
📐Theorem 5.2: Fundamental Theorems of Cyclic Groupstheorem
  1. Every Cyclic Group is Abelian: If G=⟨a⟩G = \langle a \rangle, let x=arx = a^r and y=asy = a^s. Then: x∗y=ar∗as=ar+s=as+r=as∗ar=y∗xx * y = a^r * a^s = a^{r+s} = a^{s+r} = a^s * a^r = y * x (Warning: The converse is false! The Klein 4-group V4V_4 is Abelian, but non-cyclic).
  2. Inverse Generator Invariant: If element aa is a generator of GG, then its inverse a−1a^{-1} is also a generator of GG: ⟨a⟩=G  ⟺  ⟨a−1⟩=G\langle a \rangle = G \iff \langle a^{-1} \rangle = G
  3. Prime Order Groups are Always Cyclic: Every group of prime order pp is strictly cyclic and therefore Abelian.
  4. Order of Elements in Cyclic Groups: In a finite cyclic group G=⟨a⟩G = \langle a \rangle of order nn, the order of any element aka^k is: o(ak)=ngcd⁡(k,n)o(a^k) = \frac{n}{\gcd(k, n)}

🔢 The Generator Counting Theorem (Euler's Totient)​

How many generators does a finite cyclic group possess?

📐Theorem 5.3: Generator Invariant & Euler's Totient Formulatheorem

Let G=⟨a⟩G = \langle a \rangle be a finite cyclic group of order nn.

  1. An element ak∈Ga^k \in G is a generator of GG if and only if kk is coprime to nn: gcd⁡(k,n)=1\gcd(k, n) = 1
  2. The total number of generators of a cyclic group of order nn is given by Euler's Totient Function ϕ(n)\phi(n): Number of Generators=ϕ(n)=n(P1−1)(P2−1)⋯(Pk−1)P1P2⋯Pk\text{Number of Generators} = \phi(n) = \frac{n(P_1 - 1)(P_2 - 1)\cdots(P_k - 1)}{P_1 P_2 \cdots P_k} where n=P1a1P2a2⋯Pkakn = P_1^{a_1} P_2^{a_2} \cdots P_k^{a_k} is the prime factorization of nn.

Standard Calculations:

  • For ∣G∣=8=23\vert G \vert = 8 = 2^3: Unique prime factor is 22. ϕ(8)=8(2−1)2=4(Generators: {1,3,5,7})\phi(8) = \frac{8(2 - 1)}{2} = 4 \quad (\text{Generators: } \{1, 3, 5, 7\})
  • For ∣G∣=12=22×31\vert G \vert = 12 = 2^2 \times 3^1: Unique prime factors are 2,32, 3. ϕ(12)=12(2−1)(3−1)2×3=12×1×26=4(Generators: {1,5,7,11})\phi(12) = \frac{12(2 - 1)(3 - 1)}{2 \times 3} = \frac{12 \times 1 \times 2}{6} = 4 \quad (\text{Generators: } \{1, 5, 7, 11\})
  • Infinite Cyclic Group Invariant: An infinite cyclic group (such as (Z,+)(\mathbb{Z}, +)) has exactly two generators: 11 and −1-1.

🛡️ Subgroups & The One-Step Subgroup Test​

📖Definition 5.4: Subgroupdefinition

Let (G,∗)(G, *) be a group. A subset H⊆GH \subseteq G is called a subgroup of GG (denoted H≤GH \le G) if HH itself forms a group under the same binary operation ∗*.

  • Trivial Subgroups: Every group GG has at least two trivial subgroups:
    1. The identity subgroup {e}\{e\}.
    2. The improper subgroup GG itself.
  • Any subgroup HH such that H≠{e}H \neq \{e\} and H≠GH \neq G is a proper, non-trivial subgroup.
Architecture Flow

The One-Step Subgroup Test Pipeline

Minimal necessary and sufficient condition to verify if a subset H is a valid subgroup

🔍Step 1

Non-Emptiness & Identity

Verify that H ≠ ∅ (typically by confirming e ∈ H).

→
Pass: Non-Empty
⚡Step 2

Inverse-Product Closure

For all a, b ∈ H, verify that a * b⁻¹ ∈ H (or a - b ∈ H in additive notation).

→
Pass: One-Step Test Satisfied
🛡️Result

Certified Subgroup H ≤ G

H is guaranteed to satisfy Closure, Associativity, Identity, and Inverses.

📐Theorem 5.4: Fundamental Subgroup Properties (GATE Essentials)theorem
  1. Shared Identity Element: The identity element of a subgroup HH is strictly identical to the identity element of the parent group GG: eH=eGe_H = e_G.
  2. Intersection of Subgroups: If H1≤GH_1 \le G and H2≤GH_2 \le G, their intersection H1∩H2H_1 \cap H_2 is ALWAYS a subgroup of GG.
  3. Union of Subgroups: The union H1∪H2H_1 \cup H_2 is a subgroup of GG if and only if one subgroup is entirely contained within the other: H1∪H2≤G  ⟺  (H1⊆H2orH2⊆H1)H_1 \cup H_2 \le G \iff (H_1 \subseteq H_2 \quad \text{or} \quad H_2 \subseteq H_1) (Example: In (Z,+)(\mathbb{Z}, +), 2Z∪3Z2\mathbb{Z} \cup 3\mathbb{Z} is NOT a subgroup because 2+3=5∉2Z∪3Z2 + 3 = 5 \notin 2\mathbb{Z} \cup 3\mathbb{Z}).

⚖️ Lagrange's Theorem & Subgroup Lattices​

📐Theorem 5.5: Lagrange's Theoremtheorem

If GG is a finite group and HH is a subgroup of GG, then the order of HH divides the order of GG:

∣H∣ divides ∣G∣  ⟺  ∣G∣∣H∣=k∈Z+\vert H \vert \text{ divides } \vert G \vert \quad \iff \quad \frac{\vert G \vert}{\vert H \vert} = k \in \mathbb{Z}^+

The positive integer [G:H]=∣G∣∣H∣[G : H] = \frac{\vert G \vert}{\vert H \vert} is called the Index of HH in GG, representing the exact number of distinct cosets of HH in GG.

How Lagrange's Theorem Partitions the Parent Group G

Coset decomposition proving why subgroup order must divide group order

1

Form the Cosets of H

Equivalence Classes

For any element g ∈ G, construct the left coset gH = { g * h | h ∈ H }.

2

Equal Cardinality Invariant

Bijection

Every coset gH has EXACTLY the same number of elements as H: |gH| = |H|.

3

Mutual Disjointness

Partition

Any two cosets are either completely identical or completely disjoint: g₁H ∩ g₂H = ∅.

4

Sum of Slices Equals |G|

Divisibility

G is the union of k mutually disjoint cosets, each of size |H|. Therefore: |G| = k × |H|.

Subgroup Lattices: Cyclic Group vs Klein 4-Group​

The set of all subgroups of a group GG ordered by set inclusion forms a complete Lattice (the Subgroup Lattice):

★ Subgroup Lattice (ℤ₁₂)⟨0⟩Order 1⟨6⟩Order 2⟨4⟩Order 3⟨3⟩Order 4⟨2⟩Order 6⟨1⟩Order 12 (ℤ₁₂)
Subgroups of (ℤ₁₂, +₁₂) ordered by inclusion: Isomorphic to D₁₂.
★ Subgroup Lattice (V₄){e}Order 1⟨a⟩Order 2⟨b⟩Order 2⟨c⟩Order 2V₄Order 4
Subgroups of Klein 4-Group V₄: Forms the diamond lattice M₃.
  • In the cyclic group (Z12,+12)(\mathbb{Z}_{12}, +_{12}), there exists exactly one subgroup for each positive divisor of 1212 (τ(12)=6\tau(12) = 6 subgroups), yielding the divisibility lattice D12D_{12}.
  • In the non-cyclic Klein 4-group V4V_4, there are 3 distinct subgroups of order 2, forming the non-distributive diamond lattice M3M_3!

🧮 Number of Non-Isomorphic Abelian Groups​

📐Theorem 5.6: Counting Non-Isomorphic Abelian Groups via Integer Partitionstheorem

By the Fundamental Theorem of Finite Abelian Groups, any finite Abelian group can be uniquely decomposed into a direct product of cyclic groups of prime-power orders.

  1. If ∣G∣=pk\vert G \vert = p^k where pp is a prime: Number of Non-Isomorphic Abelian Groups=P(k)\text{Number of Non-Isomorphic Abelian Groups} = P(k) where P(k)P(k) is the number of integer partitions of kk.
  2. For composite order with prime factorization ∣G∣=p1k1p2k2⋯pmkm\vert G \vert = p_1^{k_1} p_2^{k_2} \cdots p_m^{k_m}: Total Non-Isomorphic Abelian Groups=P(k1)×P(k2)×⋯×P(km)\text{Total Non-Isomorphic Abelian Groups} = P(k_1) \times P(k_2) \times \dots \times P(k_m)

Worked Examples:

  • Order 4=224 = 2^2: k=2k = 2. Partitions of 2 are {2}\{2\} and {1+1}\{1+1\}.   ⟹  P(2)=2\implies P(2) = 2 groups: Z4\mathbb{Z}_4 and Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2 (V4V_4).
  • Order 8=238 = 2^3: k=3k = 3. Partitions of 3 are {3},{2+1},{1+1+1}\{3\}, \{2+1\}, \{1+1+1\}.   ⟹  P(3)=3\implies P(3) = 3 groups: Z8\mathbb{Z}_8, Z4×Z2\mathbb{Z}_4 \times \mathbb{Z}_2, and Z2×Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2 \times \mathbb{Z}_2.
  • Order 72=23×3272 = 2^3 \times 3^2: k1=3,k2=2k_1 = 3, k_2 = 2.   ⟹  P(3)×P(2)=3×2=6\implies P(3) \times P(2) = 3 \times 2 = 6 non-isomorphic Abelian groups!

📝 Step-by-Step Worked Examples​

Example 1: Finding All Subgroups and Generators of (ℤ₁₂, +₁₂)​

Problem Statement: Consider the additive cyclic group (Z12,+12)(\mathbb{Z}_{12}, +_{12}).

  1. How many generators does Z12\mathbb{Z}_{12} have, and what are they?
  2. List all possible orders of subgroups allowed by Lagrange's Theorem.
  3. Find the generator and elements of the subgroup of order 4.

Step-by-Step Solution:

  1. Step 1: Find All Generators

    • The order of the group is n=12n = 12.
    • By Theorem 5.3, the number of generators is ϕ(12)\phi(12): 12=22×31  ⟹  ϕ(12)=12(1−12)(1−13)=12×12×23=412 = 2^2 \times 3^1 \implies \phi(12) = 12 \left(1 - \frac{1}{2}\right) \left(1 - \frac{1}{3}\right) = 12 \times \frac{1}{2} \times \frac{2}{3} = 4
    • The generators are elements k∈{0,1,2,…,11}k \in \{0, 1, 2, \dots, 11\} with gcd⁡(k,12)=1\gcd(k, 12) = 1: Generators={1,5,7,11}\text{Generators} = \{1, 5, 7, 11\}
  2. Step 2: Subgroup Orders Allowed by Lagrange's Theorem

    • Any subgroup order must be a positive divisor of 1212.
    • Divisors of 1212 are: {1,2,3,4,6,12}\{1, 2, 3, 4, 6, 12\}
    • Since Z12\mathbb{Z}_{12} is cyclic, for every divisor d∣12d \mid 12, there exists a unique subgroup of order dd!
  3. Step 3: Subgroup of Order 4

    • We want a subgroup HH with ∣H∣=4\vert H \vert = 4.
    • In an additive cyclic group Zn\mathbb{Z}_n, the unique subgroup of order dd is generated by n/dn / d: Generator=124=3\text{Generator} = \frac{12}{4} = 3
    • Generating multiples of 3: H=⟨3⟩={0,3,6,9}H = \langle 3 \rangle = \{0, 3, 6, 9\}
    • Verification: ∣H∣=4\vert H \vert = 4, and (3+9) mod 12=0∈H(3 + 9) \bmod 12 = 0 \in H. Clean!

Key Takeaway: In any finite cyclic group of order nn, there exists exactly one subgroup of order dd for each divisor d∣nd \mid n, generated by an/da^{n/d}.


Example 2: Analyzing Non-Existence of Subgroups​

Problem Statement: A group GG has order ∣G∣=35\vert G \vert = 35.

  1. Can GG have a subgroup of order 66?
  2. Can GG have an element of order 77?
  3. Can GG have an element of order 44?

Step-by-Step Solution:

  1. Subgroup of Order 6:

    • By Lagrange's Theorem, the order of any subgroup HH must divide ∣G∣=35\vert G \vert = 35.
    • The positive divisors of 3535 are {1,5,7,35}\{1, 5, 7, 35\}.
    • Since 66 does not divide 3535 (35/6≈5.83∉Z35 / 6 \approx 5.83 \notin \mathbb{Z}), NO subgroup of order 6 can possibly exist!
  2. Element of Order 7:

    • By Cauchy's Theorem, if a prime pp divides ∣G∣\vert G \vert, GG must contain an element of order pp.
    • Since 7∣357 \mid 35, YES, GG is guaranteed to have elements of order 7.
  3. Element of Order 4:

    • By Lagrange's Corollary, the order of any element must divide the group order ∣G∣=35\vert G \vert = 35.
    • Since 44 does not divide 3535, NO element of order 4 can exist in GG!

Key Takeaway: Lagrange's Theorem acts as a strict negative filter: if a number does not divide ∣G∣\vert G \vert, neither a subgroup nor an element of that order can exist!


🎯 Exam & Interview Pitfall Check​

Core Conceptual Questions

Question 1: Is the converse of Lagrange's Theorem always true? (i.e., if d∣∣G∣d \mid \vert G \vert, must GG have a subgroup of order dd?) Key Focus Points: No! The converse of Lagrange's Theorem is FALSE in general. The smallest counterexample is the Alternating group A4A_4 (even permutations of 4 items), which has order ∣A4∣=12\vert A_4 \vert = 12. Even though 66 divides 1212, A4A_4 has no subgroup of order 6! (Note: The converse is true if GG is Abelian or cyclic).

Question 2: If a group has order 17, how many subgroups does it have? Key Focus Points: Since 1717 is prime, by the Prime Order Theorem, GG is cyclic and has only 2 subgroups: the trivial identity subgroup {e}\{e\} of order 1, and GG itself of order 17. No proper non-trivial subgroups can exist!

Question 3: Can the union of two subgroups {0,2,4}\{0, 2, 4\} and {0,3}\{0, 3\} in (Z6,+6)(\mathbb{Z}_6, +_6) form a subgroup? Key Focus Points: No! The union is {0,2,3,4}\{0, 2, 3, 4\}. It has cardinality 4, which does not divide ∣Z6∣=6\vert \mathbb{Z}_6 \vert = 6 (violating Lagrange's Theorem). Moreover, 2+3=5∉{0,2,3,4}2 + 3 = 5 \notin \{0, 2, 3, 4\}, violating closure! The union of two subgroups is a subgroup if and only if one is contained in the other.

Common Interview Traps: Architectural Trade-Offs

Trap 1: Assuming all Abelian groups are cyclic Why it fails: All cyclic groups are Abelian, but the converse is false! The Klein 4-group V4V_4 and (Z2×Z2,+)(\mathbb{Z}_2 \times \mathbb{Z}_2, +) are Abelian of order 4, but have no element of order 4, so they are not cyclic.

Trap 2: Believing ϕ(n)\phi(n) gives the number of subgroups Why it fails: ϕ(n)\phi(n) gives the number of generators of a cyclic group of order nn, NOT the number of subgroups. The number of subgroups of a cyclic group of order nn equals the number of divisors τ(n)\tau(n) of nn!

💬

Discussion & Doubts