Skip to content

Examples of Groups

In this lesson you’ll build the small collection of groups that every later theorem gets tested against, learn to compute in Zn\mathbb{Z}_n and U(n)U(n), and see the first genuine surprise: there are exactly two groups of order four, and they are not the same.

Abstract theorems are hard to believe until you can check them against something concrete. Six groups will carry you through the entire section.

Zn={0,1,2,,n1}\mathbb{Z}_n = \{0, 1, 2, \dots, n-1\} with addition that wraps around at nn. This is clock arithmetic, and it’s the most useful finite group there is.

ℤ₆ under addition mod 6
+ 0 1 2 3 4 5
0 0 1 2 3 4 5
1 1 2 3 4 5 0
2 2 3 4 5 0 1
3 3 4 5 0 1 2
4 4 5 0 1 2 3
5 5 0 1 2 3 4

Shading the even elements shows a smaller group living inside the larger one. Every row and column is a shifted copy of the element list, which is the signature of a group table.

Identity: 0. Cells holding it mark inverse pairs. Shaded: 0, 2, 4 (the even elements) - closed, every product stays inside .

Every Zn\mathbb{Z}_n is a group: closure by construction, associativity inherited from Z\mathbb{Z}, identity 00, and the inverse of aa is nan - a (with 00 its own inverse). All are abelian.

Multiplication mod nn is not a group on all of Zn\mathbb{Z}_n, because 00 never has an inverse and other elements can fail too. Keep only the ones that work.

U(n)={aZn:gcd(a,n)=1}U(n) = \{a \in \mathbb{Z}_n : \gcd(a, n) = 1\}

aa has a multiplicative inverse mod nn exactly when gcd(a,n)=1\gcd(a,n) = 1. The reason is Bézout’s identity: gcd(a,n)=1\gcd(a,n)=1 means there are integers x,yx, y with ax+ny=1ax + ny = 1, and reading that mod nn gives ax1ax \equiv 1, so xx is the inverse. Conversely if gcd(a,n)=d>1\gcd(a,n) = d > 1 then every multiple of aa is divisible by dd, so it can never be 11.

U(8)={1,3,5,7}U(8) = \{1, 3, 5, 7\}, and U(8)=4|U(8)| = 4.

U(8) under multiplication mod 8
× 1 3 5 7
1 1 3 5 7
3 3 1 7 5
5 5 7 1 3
7 7 5 3 1

Every element is its own inverse, since the identity 1 fills the whole diagonal. That makes U(8) a Klein four-group rather than a cycle.

Identity: 1. Cells holding it mark inverse pairs.

The size of U(n)U(n) is Euler’s totient φ(n)\varphi(n), the count of integers below nn coprime to it. When pp is prime, φ(p)=p1\varphi(p) = p - 1, because every nonzero residue is coprime to a prime. That is why U(5)={1,2,3,4}U(5) = \{1,2,3,4\} has all four nonzero elements while U(8)U(8) has only four of seven.

Here is the first result that couldn’t have been guessed. There are exactly two groups with four elements, and no more.

ℤ₄ - the cyclic group of order 4
+ 0 1 2 3
0 0 1 2 3
1 1 2 3 0
2 2 3 0 1
3 3 0 1 2

Adding 1 repeatedly visits 1, 2, 3, 0, so a single element generates everything. The element 1 has order 4.

Identity: 0. Cells holding it mark inverse pairs.

V - the Klein four-group
e a b c
e e a b c
a a e c b
b b c e a
c c b a e

Here every non-identity element squares to e, so nothing generates the whole group. No relabelling can turn this table into the one above.

Identity: e. Cells holding it mark inverse pairs.

Both are abelian, both have four elements, and they are genuinely different structures. The proof is short: in Z4\mathbb{Z}_4 the element 11 satisfies 1+1=201+1 = 2 \ne 0, so some element does not square to the identity. In VV, every element does. That property survives any relabelling, so no dictionary can translate one table into the other.

This is the moment abstraction starts paying off. “How many elements” is not enough information to pin down a group.

Everything above commutes. Two families that don’t:

  • SnS_n, the symmetric group, is all n!n! ways to rearrange nn objects, combined by doing one rearrangement then another. S3S_3 has 6 elements and is the smallest non-abelian group.
  • DnD_n, the dihedral group, is the 2n2n symmetries of a regular nn-gon: nn rotations and nn reflections. D4D_4, the symmetries of a square, has 8 elements.

Both get their own lessons. For now, note that a reflection followed by a rotation is generally not the same as the rotation followed by the reflection, which you can verify with a physical square in about ten seconds.

Given groups GG and HH, the direct product G×HG \times H consists of pairs (g,h)(g, h) combined componentwise:

(g1,h1)(g2,h2)=(g1g2, h1h2)(g_1, h_1) * (g_2, h_2) = (g_1 g_2,\ h_1 h_2)

Its order is GH|G| \cdot |H|. This is how new groups get built from old ones, and it turns out the Klein four-group is exactly Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2: the pairs (0,0),(1,0),(0,1),(1,1)(0,0), (1,0), (0,1), (1,1), where adding any element to itself gives (0,0)(0,0).

Example 1: Compute in Z9\mathbb{Z}_9.

Find 7+57 + 5, the inverse of 44, and 6+6+66 + 6 + 6.

Solution.

7+5=123(mod9)7 + 5 = 12 \equiv \mathbf{3} \pmod 9.

The inverse of 44 is 94=59 - 4 = \mathbf{5}. Check: 4+5=904 + 5 = 9 \equiv 0. ✓

6+6+6=180(mod9)6 + 6 + 6 = 18 \equiv \mathbf{0} \pmod 9. So adding 66 three times returns to the identity, meaning 66 has order 3 in this group.

Example 2: Find U(10)U(10) and the inverse of 3 in it.

Solution. Test each of 11 through 99 for gcd(a,10)=1\gcd(a, 10) = 1. Discard 2,4,5,6,82, 4, 5, 6, 8 (sharing a factor 2 or 5).

U(10)={1,3,7,9},U(10)=φ(10)=4U(10) = \{1, 3, 7, 9\}, \qquad |U(10)| = \varphi(10) = 4

For the inverse of 33: 37=211(mod10)3 \cdot 7 = 21 \equiv 1 \pmod{10}, so 31=73^{-1} = \mathbf{7}.

Example 3: Is {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\} a group under multiplication mod 7?

Solution. 77 is prime, so every element from 11 to 66 is coprime to 77, and this set is exactly U(7)U(7).

Inverses: 11=11^{-1}=1, 24=812 \cdot 4 = 8 \equiv 1 so 21=42^{-1}=4, 35=1513 \cdot 5 = 15 \equiv 1 so 31=53^{-1}=5, 66=3616 \cdot 6 = 36 \equiv 1 so 61=66^{-1}=6.

Yes, a group of order 6. It is abelian. Notably it is not the same as S3S_3, which also has order 6 but is non-abelian, so again order alone doesn’t determine the group.

Example 4: Show U(8)U(8) is not cyclic.

Solution. Square each element mod 8.

12=1,32=91,52=251,72=4911^2 = 1, \quad 3^2 = 9 \equiv 1, \quad 5^2 = 25 \equiv 1, \quad 7^2 = 49 \equiv 1

Every element squares to 11. So repeatedly multiplying any single element only ever produces {1,a}\{1, a\}, never all four.

U(8)U(8) is therefore a Klein four-group, not Z4\mathbb{Z}_4. Compare U(5)={1,2,3,4}U(5) = \{1,2,3,4\}, where 21=22^1=2, 22=42^2=4, 23=832^3 = 8 \equiv 3, 24=1612^4 = 16 \equiv 1: powers of 22 sweep out everything, so U(5)Z4U(5) \cong \mathbb{Z}_4.

Example 5: The smallest non-abelian group.

Show S3S_3 is not abelian.

Solution. Label positions 1, 2, 3. Let σ\sigma swap positions 1 and 2, and let τ\tau swap positions 2 and 3.

Apply σ\sigma then τ\tau to the arrangement (1,2,3)(1,2,3): after σ\sigma it is (2,1,3)(2,1,3); after τ\tau swaps the contents of positions 2 and 3 it is (2,3,1)(2,3,1).

Apply τ\tau then σ\sigma: after τ\tau it is (1,3,2)(1,3,2); after σ\sigma it is (3,1,2)(3,1,2).

(2,3,1)(3,1,2)(2,3,1) \ne (3,1,2), so σττσ\sigma\tau \ne \tau\sigma. Non-abelian.

No group of order 1, 2, 3, 4, or 5 is non-abelian, so S3S_3 at order 6 is genuinely the smallest.

Example 6: Build a group of order 6 as a product.

Solution. Z2×Z3\mathbb{Z}_2 \times \mathbb{Z}_3 has 2×3=62 \times 3 = 6 elements: (0,0),(0,1),(0,2),(1,0),(1,1),(1,2)(0,0), (0,1), (0,2), (1,0), (1,1), (1,2).

Consider (1,1)(1,1) and add it to itself repeatedly:

(1,1), (0,2), (1,0), (0,1), (1,2), (0,0)(1,1), \ (0,2), \ (1,0), \ (0,1), \ (1,2), \ (0,0)

Six distinct elements before returning to the identity, so (1,1)(1,1) generates the whole group and Z2×Z3Z6\mathbb{Z}_2 \times \mathbb{Z}_3 \cong \mathbb{Z}_6.

Contrast Z2×Z2\mathbb{Z}_2 \times \mathbb{Z}_2, where every element added to itself gives (0,0)(0,0), so nothing generates all four. The rule behind the difference: Zm×ZnZmn\mathbb{Z}_m \times \mathbb{Z}_n \cong \mathbb{Z}_{mn} exactly when gcd(m,n)=1\gcd(m,n) = 1.

RSA encryption lives in U(n)U(n) for n=pqn = pq a product of two large primes. The public exponent ee and private exponent dd are inverses modulo φ(n)\varphi(n), and the whole scheme works because U(n)U(n) is a group of known order. Knowing φ(n)\varphi(n) requires knowing pp and qq, which is the hard part an attacker faces.

Musical transposition is Z12\mathbb{Z}_{12}. The circle of fifths is repeated addition of 7, and it reaches all twelve pitch classes because gcd(7,12)=1\gcd(7,12) = 1. Adding 4 instead cycles only through three notes, giving an augmented triad, because gcd(4,12)=4\gcd(4,12) = 4.

Days of the week are Z7\mathbb{Z}_7, which is why “90 days from Tuesday” is a computation in a group of order 7: 906(mod7)90 \equiv 6 \pmod 7, so six days past Tuesday, which is Monday.

Check digits. ISBN-10 validation is arithmetic mod 11 and credit card numbers use the Luhn algorithm mod 10. Both catch single-digit errors because of the group structure; ISBN uses 11 rather than 10 precisely because 11 is prime and so every nonzero residue is invertible.

Crystallography. Every crystal’s symmetry is one of 230 space groups, and the classification is a result about which groups can act on a repeating lattice. Chemists identify a compound’s group from its spectrum.

What is U(12), the set of elements of ℤ₁₂ that have multiplicative inverses?
How many distinct groups of order 4 exist?
In ℤ₁₁ under addition, what is the inverse of 4?
What is the smallest non-abelian group, and what is its order?
Why does U(8) fail to be cyclic?