Maths WorkshopMaths problems with full solutions
Exercise 567Logic, sets and proofs › RelationsHigh schoolAdded 3 Nov 2026

Equivalence relations

#equivalence relation#reflexive#symmetric#transitive

Statement

Show that x∼y  ⟺  x≡y(mod5)x\sim y\iff x\equiv y\pmod5 on Z\mathbb{Z} is an equivalence relation.

Hint

Check the three axioms.

Show solutionHide solution

Solution

Reflexive. x−x=0x-x=0 is divisible by 55.

Symmetric. If 5∣(x−y)5\mid(x-y), then 5∣(y−x)5\mid(y-x).

Transitive. If 5∣(x−y)5\mid(x-y) and 5∣(y−z)5\mid(y-z), then 5∣(x−y)+(y−z)=x−z5\mid(x-y)+(y-z)=x-z.

Conclusion. ≡(mod5)\equiv\pmod5 is an equivalence relation.