Leandro Junes

Cyclic Group Explorer

Explore element orders, generators, and the subgroup structure of ℤₙ.

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.

The element and its subgroup

Repeated addition

—

Multiples of a

kk·ak·a mod n

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.