The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Equivalence Relations and Partitions - Lecture 8 (Discrete Math)

Equivalence Relations and Partitions – Lecture 8

Overview

This lecture pulls together the three "nice" properties a relation can have — reflexive, symmetric, and transitive — into a single named object: the equivalence relation. We see why these relations are so common (congruence, similarity, "same height," "same last name" all qualify) and study the most important arithmetic example, congruence modulo nn. From there we build the equivalence class of an element and prove the central structural fact: equivalence classes are nonempty, pairwise disjoint, and cover the whole set — i.e., they form a partition. Conversely, any partition induces an equivalence relation. We close by using equivalence classes as a counting tool to count arrangements of letters with repeats (e.g., the letters of "Mississippi").

Key Concepts

Equivalence relation. Let RR be a relation on a set AA. RR is an equivalence relation if it is:

An equivalence relation is a precise way of saying "two objects are, in some sense, the same." Familiar examples: same height, same last name, geometric congruence, and similarity.

Congruence modulo nn. Let nn be a positive integer. For integers xx and yy we say xx is congruent to yy modulo nn, written x≡y(modn),x \equiv y \pmod{n}, provided n∣(x−y)n \mid (x - y) — that is, the difference x−yx - y is divisible by nn. By definition n∣(x−y)n \mid (x-y) means there exists an integer kk with nk=x−ynk = x - y.

Congruence mod nn is an equivalence relation (a key theorem of this lecture; transitivity is left as an exercise):

Equivalence class. Let RR be an equivalence relation on AA and let a∈Aa \in A. The equivalence class of aa is the set of all elements related to aa: [a]={ x∈A:xRa }.[a] = \{\, x \in A : x \mathrel{R} a \,\}.

Classes are equal exactly when their reps are related. For a,b∈Aa, b \in A: aRb  ⟺  [a]=[b].a \mathrel{R} b \iff [a] = [b]. Consequently, if two equivalence classes overlap at all, they are identical — if [a]∩[b]≠∅[a] \cap [b] \neq \varnothing, then [a]=[b][a] = [b].

Partition. A partition of AA is a set PP of nonempty, pairwise-disjoint subsets of AA (called parts) whose union is all of AA. No part may be empty, no element may sit in two different parts, and together the parts recover AA.

The fundamental correspondence (equivalence relations ↔\leftrightarrow partitions):

Counting with equivalence classes. To count distinct arrangements when some objects are interchangeable, count all arrangements as if everything were distinct, then divide by the size of each equivalence class (the number of indistinguishable rearrangements that produce the same outcome): #(distinct arrangements)=total arrangementssize of each class.\#(\text{distinct arrangements}) = \frac{\text{total arrangements}}{\text{size of each class}}.

Worked Example

Count the distinct arrangements of the letters of "MISSISSIPPI."

The word has 1111 letters with repeats: one M\text{M}, four I\text{I}'s, four S\text{S}'s, and two P\text{P}'s. Treating all 1111 tiles as distinct gives 11!11! orderings, but swapping identical letters among themselves yields the same word. Group orderings into equivalence classes ("spell the same word"); each class has size 4!⋅4!⋅2!⋅1!4! \cdot 4! \cdot 2! \cdot 1! (the rearrangements of the I's, S's, P's, and the lone M). Divide total by class size:

#(distinct arrangements)=(total letters)!(#of each letter)! multiplied together=11!4! ⋅ 4! ⋅ 2! ⋅ 1!=39 916 80024⋅24⋅2⋅1=34 650.\begin{aligned} \#(\text{distinct arrangements}) &= \frac{(\text{total letters})!}{(\#\text{of each letter})! \text{ multiplied together}} \\ &= \frac{11!}{4!\,\cdot\,4!\,\cdot\,2!\,\cdot\,1!} \\ &= \frac{39\,916\,800}{24 \cdot 24 \cdot 2 \cdot 1} \\ &= 34\,650. \end{aligned}

(The simpler "WORD" version: 44 distinct tiles give 4!=244! = 24 words; if one letter were doubled you'd divide by 2!=22! = 2.)

Summary