Group and element
The additive group. ℤₙ is the set {0, 1, …, n − 1} with addition modulo n. It is always cyclic. It is not the multiplicative group of units (ℤ/nℤ)×, which need not be.
Correct the entries above to see the results.
The element and its subgroup
Repeated addition
Multiples of a
| k | k·a | k·a mod n |
|---|
Generators of the group
An element a generates ℤₙ exactly when gcd(a, n) = 1. The number of generators is Euler’s totient φ(n).
The generators
Generators of ⟨a⟩
Distribution of element orders
The order of every element divides n, and for each divisor d there are exactly φ(d) elements of order d: the generators of the one subgroup of order d. Hence Σ φ(d) = n.
| order d | elements φ(d) | which ones |
|---|
All subgroups
For every divisor d of n there is exactly one subgroup of order d, namely H_d = ⟨n/d⟩; so the number of subgroups is τ(n), the number of divisors. H_d ⊆ H_e exactly when d | e.
Subgroup lattice
List of subgroups
| order | subgroup | index | generators | elements |
|---|
Intersection and sum
Quotient by ⟨a⟩
| coset | order in the quotient | elements |
|---|
About this explorer
The group. ℤₙ consists of the remainders 0, 1, …, n − 1, added modulo n. The notation is additive throughout: ka means a added to itself k times, ⟨a⟩ is the set of all multiples of a, and the order of a is the smallest positive k with ka ≡ 0 (mod n).
One number decides everything. With g = gcd(a, n): the multiples of a are exactly the multiples of g, so ⟨a⟩ = {0, g, 2g, …, n − g} and ord(a) = n/g. For a = 0 the convention gcd(0, n) = n gives the trivial subgroup.
Subgroups. Every subgroup of a cyclic group is cyclic, and ℤₙ has exactly one of each order dividing n. The lattice drawn on the Subgroups tab is therefore a picture of the divisors of n ordered by divisibility. The intersection of the subgroups of orders d and e has order gcd(d, e), and their sum has order lcm(d, e).
Quotients and orbits. The cosets of ⟨a⟩ are the residue classes modulo g, so ℤₙ/⟨a⟩ ≅ ℤ_g. They are also the orbits of the map x ↦ x + a: there are g of them, each of length n/g, and the one through 0 is the subgroup itself.
Limits. Everything is computed exactly in your browser for n up to 1012. The circle is drawn for n ≤ 36 and the lattice for up to 48 subgroups; long lists are shortened and say so.