Congruences - Core Definitions
The theory of congruences, introduced by Carl Friedrich Gauss in his groundbreaking 1801 work Disquisitiones Arithmeticae, provides a powerful framework for studying divisibility and remainders. Congruence arithmetic forms the foundation of modern cryptography and coding theory.
Let be a positive integer. Two integers and are said to be congruent modulo , written: if , that is, if for some integer .
The integer is called the modulus of the congruence.
The notation should be read as " is congruent to modulo ." This relation captures the idea that and leave the same remainder when divided by .
- because
- because
- because
Note that and both leave remainder when divided by , and and both leave remainder when divided by .
Congruence modulo is an equivalence relation on :
- Reflexivity: for all
- Symmetry: If , then
- Transitivity: If and , then
Moreover, congruence is compatible with arithmetic operations:
- If and , then
- If and , then
These properties allow us to perform arithmetic with congruences much like we do with equations, making congruence arithmetic extremely practical for computation.
The equivalence class of an integer modulo is called the residue class of modulo :
The set of all residue classes modulo is denoted or , and contains exactly elements:
A complete system of residues modulo is a set containing exactly one representative from each residue class.
The residue classes modulo are:
The set is the standard complete system of residues modulo , but or would work equally well.
The algebraic structure forms a commutative ring, which becomes a field precisely when is prime.