Engineering / Mathematics — Abelian Groups
The Structure of Finite Abelian Groups
The structure theorem decomposing every finite abelian group into cyclic factors, and its computational consequences.
Executive summary
Every finite abelian group is a direct product of cyclic groups of prime power order, and the decomposition is unique. This classifies finite abelian groups completely.
The theorem determines the structure of the units modulo n and explains the behaviour of the Carmichael function.
Learning objectives
- State the structure theorem in both standard forms.
- Apply it to determine the structure of Z_n*.
- Relate it to the Carmichael function.
01The theorem
Structure theorem for finite abelian groups
Every finite abelian group is isomorphic to a direct product of cyclic groups of prime power order,
G ≅ Z_{p₁^{e₁}} × ... × Z_{p_k^{e_k}},
and this decomposition is unique up to the ordering of factors.
An equivalent invariant factor form writes G ≅ Z_{d₁} × ... × Z_{d_m} with each dᵢ dividing the next. The two forms carry the same information and convert into one another by Chinese remaindering.
| Order | Possible structures |
|---|---|
| 4 | Z₄ or Z₂×Z₂ |
| 8 | Z₈, Z₄×Z₂, Z₂×Z₂×Z₂ |
| p, p prime | Z_p only |
| pq, distinct primes | Z_{pq} only |
The last two rows show that groups of squarefree order are forced to be cyclic, since each prime contributes exactly one factor and Chinese remaindering combines them.
02Application to the units modulo n
Chinese remaindering decomposes the units modulo n across the prime powers in n, and each factor is then determined by the primitive root theorem.
Z_n* ≅ ∏ᵢ Z_{pᵢ^{eᵢ}}*| Prime power | Structure of the unit group | Order |
|---|---|---|
| p^k, p odd | Cyclic | p^{k−1}(p−1) |
| 2 | Trivial | 1 |
| 4 | Cyclic of order 2 | 2 |
| 2^k, k ≥ 3 | Z₂ × Z_{2^{k−2}} | 2^{k−1} |
The last row is the source of the exception at n = 8: the unit group is a product of two cyclic groups rather than one, so no element attains the full order.
03The Carmichael function
Carmichael function
λ(n) is the least positive integer with a^{λ(n)} ≡ 1 (mod n) for every unit a. It equals the largest element order, and is the lcm of the factor orders in the structure decomposition.
Since λ(n) divides φ(n) and is often strictly smaller, it gives a sharper version of Euler's theorem. It is also the correct exponent modulus for RSA: the private exponent may be computed modulo λ(n) rather than φ(n), giving a smaller and slightly faster key.
04Frequently asked questions
Is the decomposition unique?
Up to reordering the factors, yes. Both the prime-power form and the invariant factor form are unique, which is what makes them useful as a classification rather than merely a construction.
Can the structure be computed efficiently?
For Z_n* it requires the factorisation of n, so it is as hard as factoring. For an abstract group given by generators the problem is closely related to computing discrete logarithms.
Why does RSA use φ(n) rather than λ(n)?
Convention and simplicity; both work. Using λ(n) yields a smaller private exponent and marginally faster decryption, and several standards specify it for that reason.
Sources and method
Structural reference: Victor Shoup, A Computational Introduction to Number Theory and Algebra, Version 1, Cambridge University Press, 2005 — book pages 208-210.
This page carries the durable method layer only: definitions, constructions, algorithms, complexity results and selection criteria, authored originally for KEVOS. No text is transcribed or paraphrased from the source, and no numeric tables or benchmark data are reproduced — these are routed to live authoritative sources instead.
Author: Kevin Jogin. Last reviewed 2026-08-07.
