Finite Group Databasebeta

Multiplicative group mod n

The multiplicative group of integers modulo n, written (ℤ/nℤ)ˣ (also U(n)), is the group of residues coprime to n under multiplication mod n. It is abelian of order φ(n), where φ is Euler's totient.

Definition

(ℤ/nℤ)ˣ  =  { a mod n : gcd(a, n) = 1 },   under multiplication mod n.

A residue a is invertible mod n exactly when gcd(a, n) = 1, so these are the units of the ring ℤ/nℤ; hence |(ℤ/nℤ)ˣ| = φ(n).

Structure

By the Chinese remainder theorem, if n = p₁k₁ ⋯ pᵣkᵣ then

(ℤ/nℤ)ˣ  ≅  (ℤ/p₁k₁ℤ)ˣ × ⋯ × (ℤ/pᵣkᵣℤ)ˣ,

and every prime-power factor is known exactly:

modulus m(ℤ/mℤ)ˣ
2trivial
4C₂
2ᵏ, k ≥ 3C₂ × C2k-2
pᵏ, p odd primeCpk-1(p-1) (cyclic)

Cyclic case (primitive roots)

(ℤ/nℤ)ˣ is cyclic — a primitive root mod n exists — if and only if

n ∈ { 1, 2, 4, pᵏ, 2pᵏ }     for an odd prime p.

For every other n it is a non-trivial direct product, e.g. (ℤ/8ℤ)ˣ = C₂ × C₂ and (ℤ/15ℤ)ˣ = C₂ × C₄.

Which groups occur

Not every finite abelian group is a unit group:

A group may occur for several moduli: C₆ = (ℤ/7ℤ)ˣ = (ℤ/9ℤ)ˣ = (ℤ/14ℤ)ˣ = (ℤ/18ℤ)ˣ. Whether every attained order is attained by at least two moduli is Carmichael's totient conjecture, still open.

Examples

See also