Congruence modulo n
\[a\equiv b \pmod n \iff n\mid(a-b)\]
An equivalence relation on \(\mathbb{Z}\) with exactly \(n\) classes: \([0],[1],\dots,[n-1]\).
Relations and Functions
A relation that is reflexive, symmetric and transitive is called an equivalence relation. It captures the idea of "being alike in some respect": having the same remainder on division by 5, being parallel, being similar triangles, having the same birthday month.
For an equivalence relation \(R\) on \(A\), the equivalence class of \(a\) is \([a]=\{x\in A : x\,R\,a\}\). Two facts make classes useful:
Example: on \(\mathbb{Z}\), \(a\,R\,b \iff 3 \mid (a-b)\). The classes are \([0]=\{\dots,-3,0,3,6,\dots\}\), \([1]=\{\dots,-2,1,4,\dots\}\) and \([2]=\{\dots,-1,2,5,\dots\}\) – exactly three classes, one for each remainder.
\[a\equiv b \pmod n \iff n\mid(a-b)\]
An equivalence relation on \(\mathbb{Z}\) with exactly \(n\) classes: \([0],[1],\dots,[n-1]\).
Equivalence classes are either identical or disjoint, and their union is the whole set.
On \(A=\{1,2,\dots,9\}\), \(a\,R\,b \iff 4\mid(a-b)\).
Classes: \([1]=\{1,5,9\}\), \([2]=\{2,6\}\), \([3]=\{3,7\}\), \([4]=\{4,8\}\). They are disjoint and cover \(A\).
A fresh set of questions from this topic. Change answers freely – solutions appear after you submit.
Start PracticeAn equivalence relation groups a set into disjoint classes of mutually related elements. Always check all three properties with general elements.
Create a free account to take practice sessions and tests, see detailed explanations and track your progress.