📘 CodingMarble Learn

Group Theory: Binary Operations, Groups, Rings and Fields

A group is a set with one operation that is closed, associative, has an identity and gives every element an inverse. Clock arithmetic Z6 shows all of it: tables, subgroups, the order of an element and Lagrange's theorem. Rings and fields add a second operation.

🎬 Step-by-step story

  1. A binary operation takes two elements and gives back one. If the answer always stays in the set, the set is closed.
  2. Clock arithmetic: on a 6-hour clock, adding means turning. 4 + 5 lands on 3.
  3. A group needs four rules: closed, associative, an identity (0 = no turn), and an inverse for every element.
  4. The operation table: each element appears once in every row and column. A symmetric table means the group is abelian.
  5. Keep adding 2 and you return in 3 turns: the order of 2 is 3, and {0, 2, 4} is a subgroup. Its size divides 6.
  6. Your turn. Change n and a, and see which elements light up the whole clock.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is the answer 3 and not 9 on the clock?

In Z6 we only keep the remainder after dividing by 6. 9 = 6 + 3, so after a full turn you are at 3.

Is the identity always 0 or 1?

No. It depends on the rule. For a ∗ b = a + b − 3, solving a ∗ e = a gives e = 3.

How do I spot a group quickly from its table?

Each row and column must contain every element exactly once, and one row must copy the header (the identity). Then check associativity separately.

Can an element's order be larger than the group?

No. Its powers form a subgroup, and by Lagrange the size divides |G|.

Which elements generate Zn?

Exactly those a with gcd(a, n) = 1. Try it in free play: for n = 8, a = 3 lights the whole clock, a = 2 does not.

Binary operations and stable parts

A binary operation (also called an internal composition law) on a set M is a rule ∗ that takes any two elements a, b of M and gives exactly one element a ∗ b also in M.

A subset H of M is a stable part (closed) if a, b ∈ H always gives a ∗ b ∈ H. Example: the even numbers are stable under +; the odd numbers are not (3 + 5 = 8).

Useful properties of ∗: commutative (a ∗ b = b ∗ a), associative ((a ∗ b) ∗ c = a ∗ (b ∗ c)), identity e (a ∗ e = e ∗ a = a), inverse a′ (a ∗ a′ = a′ ∗ a = e). For a small set we show ∗ in an operation table (Cayley table): row a, column b, cell a ∗ b.

What is a group? Examples

A group (G, ∗) is a set G with a binary operation that is closed, associative, has an identity, and every element has an inverse. If also commutative, the group is abelian.

Number groups

Zn, the clock groups

Zn = {0, 1, …, n − 1} with addition mod n is an abelian group of order n. The non-zero classes of Zp (p prime) form a group under multiplication.

Matrix groups

Invertible 2×2 matrices (det ≠ 0) form a group under matrix multiplication. It is not abelian: AB ≠ BA in general.

Permutation groups

All rearrangements of {1, 2, 3} form S3, with 3! = 6 elements and the operation "do one, then the other" (composition). S3 is the smallest non-abelian group. The symmetries of an equilateral triangle (3 rotations, 3 flips) behave exactly like S3.

Subgroups, order of an element and Lagrange's theorem

A subgroup H of G is a non-empty subset that is itself a group with the same operation. Quick test: H ≠ ∅ and a, b ∈ H ⇒ a ∗ b′ ∈ H.

The order of an element a is the smallest k ≥ 1 with a ∗ a ∗ … ∗ a (k times) = e. In Zn with +, the order of a is n / gcd(a, n). The powers of a make the cyclic subgroup ⟨a⟩.

Lagrange's theorem: in a finite group, the order of every subgroup divides the order of the group. So the order of every element divides |G|, and a|G| = e. A group of prime order p is cyclic.

Example: in Z6, ⟨2⟩ = {0, 2, 4} (order 3), ⟨3⟩ = {0, 3} (order 2), and 1 and 5 generate all of Z6.

Morphisms and isomorphisms

A group morphism (homomorphism) f : (G, ∗) → (H, ∘) keeps the operation: f(a ∗ b) = f(a) ∘ f(b). Then f(e) = e′ and f(a′) = f(a)′.

An isomorphism is a bijective morphism. Isomorphic groups have the same table, just with renamed elements. Example: f(x) = ln x is an isomorphism from (0, ∞) with × to (R, +), because ln(ab) = ln a + ln b. Another: the rotations of a square ≅ Z4.

To show two finite groups are not isomorphic, find a property one has and the other does not: different orders, one abelian and one not, or different numbers of elements of each order.

Rings and fields

A ring (A, +, ·) has two operations: (A, +) is an abelian group, · is associative, and · distributes over +. Usually it also has a unit 1. Examples: Z, Q, R, C, Zn, the ring of n×n matrices, the ring of real functions.

A field is a commutative ring where every non-zero element has a multiplicative inverse. Examples: Q, R, C and Zp for p prime. Z is not a field (2 has no inverse). Z6 is not a field: 2 · 3 = 0, so it has zero divisors.

A ring morphism keeps both operations: f(a + b) = f(a) + f(b), f(ab) = f(a)f(b), f(1) = 1. Example: complex conjugation on C.

Key formulas and definitions

Worked examples

1. Is (Z, ∗) a group, where a ∗ b = a + b − 3?

Closed: yes, integers. Associative: (a∗b)∗c = a + b + c − 6 = a∗(b∗c). Identity: a + e − 3 = a ⇒ e = 3. Inverse: a + a′ − 3 = 3 ⇒ a′ = 6 − a, an integer. So yes, it is an abelian group with identity 3.

2. Find the order of every element of Z8 (addition).

Order of a = 8 / gcd(a, 8). 0 → 1; 1, 3, 5, 7 → 8; 2, 6 → 4; 4 → 2. All divide 8, as Lagrange says. The generators are 1, 3, 5, 7.

3. Can a group of order 10 have a subgroup of order 4?

No. By Lagrange the order of a subgroup must divide 10. 4 does not divide 10.

4. Solve 3x = 4 in Z7 (multiplication mod 7).

Find 3⁻¹: 3 · 5 = 15 = 1 (mod 7), so 3⁻¹ = 5. x = 5 · 4 = 20 = 6 (mod 7). Check: 3 · 6 = 18 = 4. So x = 6.

5. Show f : (R, +) → (0, ∞), f(x) = 2^x is an isomorphism with ×.

f(x + y) = 2^(x+y) = 2^x · 2^y = f(x) f(y), so it is a morphism. It is injective (2^x is strictly increasing) and surjective (every positive y is 2^(log₂ y)). So it is an isomorphism.

6. In S3, let σ swap 1 and 2, and τ swap 2 and 3. Is στ = τσ?

στ (do τ first): 1→1→2, 2→3→3, 3→2→1, so στ = (1 2 3). τσ: 1→2→3, 2→1→1, 3→3→2, so τσ = (1 3 2). They are different, so S3 is not abelian.

Common mistakes

Practice quiz

1. Which is NOT a group?
2. The order of 4 in (Z10, +) is:
3. A group has 15 elements. Which can be the order of a subgroup?
4. The identity of a ∗ b = a + b + 2 on Z is:
5. Which is a field?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is group theory in simple words?

It is the study of sets with one operation that you can always do, undo and combine, like turning a clock or rotating a shape.

What is the difference between a group, a ring and a field?

A group has one operation. A ring has two (+ and ·) with + making an abelian group. A field is a ring where you can also divide by every non-zero element.

What does Lagrange's theorem say?

In a finite group, the number of elements of any subgroup divides the number of elements of the group.

Where this is taught

RomaniaClasa a XI-aMatrices and linear systems
RomaniaClasa a XII-aElements of algebra
RomaniaClasa a XII-aElements of algebra
RomaniaClasa a XII-a*Algebraic structures
England (GCSE, A level)Year 12Optional application 3 Discrete (part 1)
England (GCSE, A level)Year 13Optional application 3 Discrete (part 2)

Learn first

Learn next

Related lessons

All Maths lessons