A group is a monoid in which every element can be undone. Groups describe symmetry and reversible processes, and are among the most important structures in mathematics.

Definition of a Group

A group (G, ) is a non-empty set G with a binary operation that satisfies four axioms. Closure: a b ∈ G for all a, b ∈ G. Associativity: (a b) c = a (b c). Identity: there is an e ∈ G with a e = e a = a for all a. Inverse: for each a there is an a⁻¹ ∈ G with a a⁻¹ = a⁻¹ a = e. If, in addition, a b = b a for all a, b, the group is abelian (commutative), named after Niels Abel. The number of elements of G is its order*, written |G|. A group may be finite or infinite.

Definition: Group. A set with a binary operation that is closed and associative, has an identity element, and gives every element an inverse.

Examples

(Z, +) is an infinite abelian group with identity 0 and inverse −a. (Q − {0}, ×) is an abelian group with identity 1 and inverse 1/a. (Zn, +n) is a finite abelian group of order n, with identity 0 and the inverse of a being n − a. The set {1, −1, i, −i} under multiplication is a group of order 4. The set of invertible n × n matrices under multiplication is a group that is not abelian. (Z, ×) is not a group, since 2 has no integer inverse. The set of symmetries of a square, its rotations and reflections, also forms a group, with composition as the operation.

Basic Properties

In any group: the identity is unique, each element has a unique inverse, (a⁻¹)⁻¹ = a, and *(a b)⁻¹ = b⁻¹ a⁻¹, in reverse order, like taking off socks and shoes. The cancellation laws hold: if a b = a c then b = c, and if b a = c a then b = c. As a result, every row and every column of the Cayley table of a finite group contains each element exactly once*, like a Latin square.

Table 2.3: Group examples

Set and operation Identity Abelian Inverse of a
Z, + 0 Yes −a
Q − {0}, × 1 Yes 1/a
Z5, +5 0 Yes 5 − a
Invertible matrices, × I No A⁻¹

Example 2.3: Verifying a group

Problem: Show that G = {1, 2, 3, 4} under multiplication modulo 5 is an abelian group.

Solution:

  1. Closure: all products mod 5 of these elements lie in {1, 2, 3, 4}, as the Cayley table shows.
  2. Associativity: multiplication of integers is associative, and so is its remainder.
  3. Identity: 1, since 1 × a = a.
  4. Inverses: 1 × 1 = 1, 2 × 3 = 6 ≡ 1, 4 × 4 = 16 ≡ 1, so 1⁻¹ = 1, 2⁻¹ = 3, 3⁻¹ = 2, 4⁻¹ = 4.
  5. Commutative: a × b = b × a.

Result: (G, ×5) is an abelian group of order 4.

G = [1, 2, 3, 4]
closed = all(a * b % 5 in G for a in G for b in G)
inv = {a: b for a in G for b in G if a * b % 5 == 1}
print(closed, inv)

Output

True {1: 1, 2: 3, 3: 2, 4: 4}

Common mistakes

  • Writing (a b)⁻¹ = a⁻¹ b⁻¹. The order must be reversed.
  • Calling (Z, ×) a group. Most integers have no integer inverse.
  • Assuming that every group is abelian.

Key takeaways

  • A group has closure, associativity, identity and inverses.
  • An abelian group is also commutative.
  • The identity and each inverse are unique, and (ab)⁻¹ = b⁻¹a⁻¹.
  • Each element appears once in each row and column of a group table.

Practice questions

  1. State the four group axioms.
  2. What is an abelian group?
  3. What is the inverse of 2 in (Z5, +5)?

Answers to the practice questions

  1. Closure, associativity, identity and inverse.
  2. A group whose operation is commutative.
  3. 3, since 2 + 3 ≡ 0 (mod 5).

Sources

  • Official BCA syllabus Mathematics Foundations to Computer Science II, course code 25BCA402DS01, Unit II