Exercise 182Logic, sets and proofs › RelationsL1Added 31 Oct 2026
Congruence is an equivalence relation
#relations#modular arithmetic
Statement
Let be an integer. For , write when divides . Prove that is an equivalence relation on , and say how many equivalence classes it has.
Hint
Check reflexivity, symmetry and transitivity, then use division with remainder.
Show solutionHide solution
Solution
Reflexive. is divisible by .
Symmetric. If then .
Transitive. If and , then divides the sum .
Classes. Every integer can be written with , so . Two different remainders in differ by less than and are not , so they are not congruent. There are exactly classes.