Skip to content

Abstract Algebra: Symmetry as a Structure of Its Own

Forget what the objects are. Keep only how they combine. That one move turns clock arithmetic, Rubik's cube and the unsolvable quintic into the same kind of problem.

12 min readReadInteractive

Rotate a square tile by a quarter turn, then flip it over. Flip it first, then rotate it. Do you get the same result? Try it on a real object and you will find you do not. The order of the moves matters, and yet the full list of ways to put a square back into its own outline is a tidy, closed family: eight moves, each one undoable, any two combining into another on the list.

That family has a name, a group, and the course called abstract algebra starts from a daring idea. Do not study squares, clocks or cubes. Study the thing they share, the rules of combining, and prove everything that follows from the rules. Whatever you prove about groups is then true of every square, every clock and every cube at once.

A graduate does not remember the theorems so much as the habit: when something has symmetry, ask for its group, and count.

The course in one box
Who takes it
Every mathematics major, in year 2 or 3 (MIT's 18.701 and 18.702; Cambridge's Groups in the first year and Groups, Rings and Modules in the second). Computer scientists meet it in cryptography and coding theory; physicists meet it as symmetry.
What it is for
Giving symmetry, and the structure of arithmetic, an exact language: groups, rings and fields.
Comes after
Linear Algebra (34/04) and Foundations: What Mathematics Stands On (34/71).
Leads to
Number Theory (34/75), and, in later courses, Galois theory, representation theory and algebraic geometry.
What this piece gives you
You will not be able to classify groups of order 24. You will know what a group is, why a subgroup's size divides the group's, why a swapped pair of tiles can make a puzzle unsolvable, why arithmetic mod a prime is as good as the fractions, and how big the Rubik's cube group is and why. Easier first reads: The Most Beautiful Ideas in Math (12/04), Cryptography (12/09) and Vectors, Matrices and Linear Transformation (12/14).

A group is a set of moves you can always undo

A group is a set of things with a way of combining any two into a third, obeying four rules:

  • Closed: combining two members gives a member.
  • Associative: (a then b) then c equals a then (b then c).
  • Identity: some member e does nothing.
  • Inverses: each member has a partner that undoes it.

Commutativity is not a rule. A group in which order never matters is called abelian; most interesting groups are not. A first proof, to feel the style: the identity is unique. Suppose e and e′ both do nothing. Then e combined with e′ equals e (since e′ does nothing) and equals e′ (since e does nothing). So e = e′. The trick is feeding each hypothesis to the other.

The smallest non-commutative group is the six ways of moving an equilateral triangle onto itself: three rotations (turn 0, 120, 240 degrees) and three flips. Call a 120-degree turn r and a flip s. "rs" will mean "do r, then s". Pick any two moves and see the result, and check whether the other order gives the same triangle.

Interactive · The symmetries of a triangle

First move

Then

Without JavaScript: turning the triangle 120° and then flipping it leaves it in a different arrangement than flipping first and then turning. In symbols, rs ≠ sr, so the group is not commutative, and its multiplication table has six rows and six columns.

The table at the bottom of the card is the group's Cayley table. Each element appears exactly once in every row and column, because you can always undo. A whole group, symmetries and all, is nothing but that table.

Clock groups and the idea of order

The simplest groups are clocks. Add hours on an n-hour clock and you have the group ℤn. Pick a step size a and keep adding it: how many steps until you come back to 0? That count is the order of a, and the places you visit form a subgroup, a group inside the group.

order of a in ℤn = n ÷ gcd(n, a)on a 12-hour clock, a 5-hour step visits all 12 hours; a 4-hour step visits only 3 of them (0, 4, 8)

An element that visits everything is a generator; 5 generates ℤ12 but 4 does not. This also settles when two groups are really the same. Two groups are isomorphic if you can relabel one into the other so the tables match. ℤ6 is isomorphic to ℤ2 × ℤ3 (the 1 of ℤ6 has order 6, and so does the pair (1, 1)). But ℤ4 is not isomorphic to ℤ2 × ℤ2: the first has an element of order 4 and the second has none. Comparing element orders is the standard way to tell groups apart.

Interactive · Walk around the clock
Clock size n
Step size a

Without JavaScript: on a 12-hour clock a step of 5 visits all 12 positions, so it generates the group; a step of 4 visits 0, 4, 8 and returns after 3 steps; a step of 6 visits only 0 and 6. Exactly 4 of the 12 step sizes (1, 5, 7, 11) are generators.

Lagrange's theorem: subgroups tile the group

Take a subgroup H inside a group G and "translate" it: pick any member g and form gH, everything you get by doing g and then a member of H. These translates are called cosets. Two facts make a picture. First, each coset has exactly as many members as H, because the move "do g first" can be undone, so it matches H one to one with gH. Second, any two cosets are either identical or share nothing. If they shared a member, you could rewrite one as the other. So the cosets cut G into equal-sized, non-overlapping tiles.

Count the tiles: |G| = (number of cosets) × |H|. That is Lagrange's theorem: the size of a subgroup always divides the size of the group. The tricks are that a translation is reversible, so it preserves size, and that two overlapping cosets must coincide. It was Lagrange (about 1771, in his study of polynomial equations) who noticed the pattern before groups existed as a concept.

The converse is false, and that is what makes the theorem a tool rather than a tautology. A group of order 12 need not have a subgroup of every size that divides 12. The alternating group on four things, which has 12 members, has no subgroup of order 6. Choose a group below and the page finds every subgroup by brute force.

Interactive · Find the subgroups, tile the group
Subgroup number

Without JavaScript: the 12-member group of even shuffles of 4 things has subgroups of orders 1, 2, 3, 4 and 12 but none of order 6, though 6 divides 12. The full group of 24 shuffles has subgroups of every order that divides 24.

A consequence you will use for life: in the multiplication of non-zero residues mod a prime p (which has p − 1 members), every element's order divides p − 1. Hence ap−1 ≡ 1 (mod p), Fermat's little theorem, and the engine inside RSA encryption (see 12/09 and 34/75).

Invariants: what a move can never change

A homomorphism is a map between groups that respects the combining: do two moves and then translate equals translating each and then combining. It forgets detail but keeps structure, and its great use is catching things that cannot happen. The standard example is parity. Every shuffle of n things is a product of swaps of two items. A shuffle may be written with many swaps, but always an even number or always an odd number, never both. Call these even and odd, and the map "even → +1, odd → −1" respects combining (two odds make an even, as −1 × −1 = +1).

Now the 15 puzzle: a grid of sliding tiles with one gap. Every legal slide leaves the parity of a certain count (for the 3×3 version, the number of "inversions", pairs of tiles that are out of order) unchanged. Swap two tiles by lifting them out and you flip that parity. Those positions can never be reached by sliding, and exactly half of all arrangements are in that unreachable half. An 1879 paper by Johnson and Story proved this for the 15 puzzle. The trick is to find a quantity that no move changes, then show the target has a different value.

Interactive · The 8-puzzle and its invariant

Without JavaScript: the solved board 1 2 3 / 4 5 6 / 7 8 _ has 0 inversions (even). Swapping tiles 7 and 8 gives 1 inversion (odd). Sliding never changes the inversion parity, so that swapped board can never be solved by sliding.

Press a tile next to the gap to slide it. Scramble as hard as you like: the inversion count stays even. The swap button produces a board that looks innocent and cannot be solved.

Rings and fields: which clocks let you divide

A group has one operation. A ring has two, addition and multiplication, linked by the distributive law: the integers, the clock numbers, polynomials and matrices are rings. A field is a ring where you can also divide by anything non-zero: the rationals, the reals, and the complex numbers.

Clock arithmetic is a ring for any n. Is it a field? Division by a means finding a number b with a·b ≡ 1. Such a b exists exactly when gcd(a, n) = 1, and Euclid's algorithm finds it (stepping back through the remainders). If gcd(a, n) > 1 you are in trouble: mod 12, 3 × 4 = 12 ≡ 0, so two non-zero numbers multiply to zero, and "zero divisors" make division impossible. So ℤn is a field exactly when n is prime. The trick behind inverses: if gcd = 1, Euclid's remainders can be run backwards to write 1 as a combination of a and n.

Interactive · Who has an inverse?
Clock size n

Green: has an inverse. Red: shares a factor with n. Press a number.

Without JavaScript: mod 12, the numbers 1, 5, 7 and 11 have inverses (each is its own inverse: 5×5 = 25 ≡ 1). Mod 7, a prime, all of 1 to 6 do, and 3×5 = 15 ≡ 1.

Finite fields are not a curiosity. They are the arithmetic behind error-correcting codes (QR codes, CDs, deep-space probes), elliptic-curve cryptography, and the AES cipher in your phone.

Rubik's cube, the unsolvable quintic, and the monster

The moves of a Rubik's cube form a group, and counting it uses everything above. Naively a cube has 8 corner pieces in 8 places with 3 twists each, and 12 edge pieces in 12 places with 2 flips each. Multiply: 8! × 38 × 12! × 212. But real turns obey three rules (an invariant, again): the corner twists must total a multiple of 3, the edge flips must total an even number, and corners and edges must have the same permutation parity. Those cut the count by 3, 2 and 2, a factor of 12, leaving

43,252,003,274,489,856,000about 4.3 × 1019 positions reachable by turning faces

A team led by Tomas Rokicki showed in 2010, using a lot of donated computer time, that every one of these positions can be solved in at most 20 face turns ("God's number" is 20). The 12 unreachable arrangements for every reachable one are the cube you get by prying it apart and reassembling it badly.

Interactive · Count the cube

Switch the rules of the cube on and off.

Without JavaScript: 8! × 38 × 12! × 212 = 519,024,039,293,878,272,000. Dividing by 3 (twist rule), 2 (flip rule) and 2 (parity rule) gives 43,252,003,274,489,856,000. At a billion positions per second, looking at each once would take about 1,371 years.

The same subject settles an old problem. The quadratic formula has cousins for cubics and quartics (16th century). For the general fifth-degree equation no formula using only +, −, ×, ÷ and roots exists. Abel and Ruffini gave proofs in the 1820s; Évariste Galois explained why a few years later, shortly before his death in 1832 at age 20. His idea: attach to each equation the group of ways to shuffle its roots while keeping all their algebraic relations. An equation is solvable by roots exactly when that group can be built up in simple abelian stages. The group for a general quintic is the full set of 120 shuffles of five things, which cannot be so built. The obstruction is a group-theoretic fact, with no pencil-and-paper cleverness needed.

That raises a question: what are the "atoms" of groups? A group with no inner structure to peel away is simple, and every finite group is built from simple ones. The classification of finite simple groups lists them all: a few infinite families (the cyclic groups of prime order, the alternating groups on five or more things, and several families of matrix groups) plus exactly 26 "sporadic" groups that fit no family. The largest, the Monster, has about 8 × 1053 members. The classification is one of the largest proofs ever assembled, spread over tens of thousands of journal pages by many authors. Its completion was announced in 1983, a gap in one case was filled in 2004, and a streamlined "second-generation" proof (the Gorenstein–Lyons–Solomon programme) is still unfinished; the result is accepted by the field.

What a graduate just sees

  • If something has symmetry, ask for its group and count it. The count often explains the object.
  • The order of moves matters in most groups; "abelian" is the special, easy case.
  • A subgroup's size always divides the group's size. If a number does not divide, no such subgroup exists.
  • When a puzzle seems impossible, look for an invariant, a quantity that no legal move changes.
  • Two structures are the same if their tables match after relabelling; element orders tell them apart.
  • Clock arithmetic lets you divide exactly when the clock size is prime.
  • Whether an equation can be solved by a formula is a statement about the group of its roots.

Where it shows up next

  • Number Theory (34/75): the units mod n form a group, and Fermat's and Euler's theorems are Lagrange's theorem in disguise.
  • Cryptography and coding: RSA uses the group of units mod a product of two primes; elliptic-curve systems use a group built from points on a curve; error-correcting codes use finite fields.
  • Physics: conserved quantities come from symmetry (Noether's theorem), and the particle zoo is sorted by representations of symmetry groups. See Quantum Mechanics (34/83) and the Standard Model piece (13/07).
  • Chemistry and materials: the 230 space groups classify every crystal; molecule vibrations are sorted by their symmetry group.
  • Topology (34/76): algebraic topology attaches groups to shapes to tell them apart, the same "invariant" trick as the puzzle.

If you want to go deeper

  • 📘 Textbook. Joseph Gallian, Contemporary Abstract Algebra (10th edition). The usual first text: many examples, gentle on proofs.
  • 📘 Textbook. David Dummit and Richard Foote, Abstract Algebra (Wiley, 3rd edition). The comprehensive reference that mathematics students keep for years.
  • 📘 Gentler. Nathan Carter, Visual Group Theory (MAA). Groups taught through pictures and Cayley diagrams, with the Rubik's cube in view; or Mark Ronan, Symmetry and the Monster (Oxford, 2006) for the story of the classification.
  • 🌐 Free course. MIT OpenCourseWare 18.701 Algebra I (Fall 2010, taught by Michael Artin): the full undergraduate group, ring and field course with notes and problem sets.
The takeaway

Algebra stops asking what things are and asks how they combine. A group captures symmetry; counting it gives Lagrange's divisibility rule; invariants prove impossibility; rings and fields capture arithmetic you can trust. The same few ideas explain a clock, a puzzle, a cipher and the limits of a formula.

Try this: this week, pick a symmetric thing (a snowflake, a chair, a logo) and list the moves that put it back on itself. Count them. Then check that doing two of them in either order lands in the list.

Sources & Further Reading

Sources. The group axioms, cosets, Lagrange's theorem, homomorphisms, parity, rings and fields, Fermat's little theorem and the Rubik's cube count are standard textbook algebra (Gallian; Dummit & Foote; Artin). Rubik's cube group order 43,252,003,274,489,856,000 and God's number 20 (Rokicki, Kociemba, Davidson and Dethridge, 2010): cube20.org. Classification of finite simple groups: announced 1983, quasithin gap closed by Aschbacher and Smith (2004), second-generation proof incomplete: MacTutor and standard accounts; 26 sporadic groups; Monster order 246·320·59·76·112·133·17·19·23·29·31·41·47·59·71 ≈ 8.08 × 1053 (computed). Abel–Ruffini (1820s) and Galois (died 1832), Johnson and Story (1879) and Lagrange (c. 1771) are standard history and were not re-searched for this piece. Editions: Dummit & Foote 3rd ed. (Wiley, 2004); Gallian 10th ed.; MIT OCW 18.701. Every number the interactives show was computed by brute force in node: subgroup orders of ℤ12, S3, the square's group, A4 and S4; Euclid inverses mod n; 8-puzzle inversion parity; cube counts as above with BigInt.