How do congruence classes group integers with the same remainder?
In number theory, congruence classes—also known as residue classes—partition the set of all integers into groups based on their remainders when divided by a fixed modulus .
Two integers and belong to the same congruence class modulo if their difference, , is exactly divisible by . This relationship is expressed as . Because any integer in a class can represent that class, the group effectively collects all numbers that leave the same remainder upon division by . For example, with a modulus of 5, the integers all share the same remainder and thus form a single congruence class.12
This system is fundamental to modular arithmetic, allowing mathematicians to perform operations like addition, subtraction, and multiplication on these classes by choosing any representative member from each group to compute the result.1