The concept of congruence was introduced in the book Disquisitiones Arithmeticae ("Arithmetical Investigations" in Latin) written by 21 years old
Carl Friedrich Gauss in 1798.
Given a positive integer , integers and are congruent modulo if their difference is an integer multiple
of . We denote it by (Read as is congruent to modulo ).
Example. and , i.e.,
and are incongruent modulo .
Many arithmetic properties and operations on congruence are similar to that of equality as follows.
Proposition.
Let be a positive integer. The following hold for all integers , and .
(Reflexivity).
(Symmetry).
If and , then (Transitivity).
If , then (Translation).
If , then (Scaling).
If and , then (Addition).
If and , then (Multiplication).
If , then for all nonnegative integers (Exponentiation).
Proof.
(1) and (2) are obvious. For (3), suppose and . Then
and for some integers and . Then
which means .
(4) and (5) are easy. For (6) and (7), suppose and . Then
and for some integers and . Then
which means . For (7), note that and . Then
which means . (8) holds by inductively using and in (7).
◼
Let us use the above properties for the following divisibility problem.
Problem. Determine if divides .
It suffices to determine if .
Note that . Then ,
, and by
(8) and (5). Now since , by
(8) and (5).
Note that while the converse of (4) is true, but not the converse of (5). For example, but
. How to divide both sides of a congruence?
Theorem.
Let be a positive integer. Let , and be integers. If ,
then .
Proof.
Suppose . Then for some integer . Dividing both sides
by , we get
So . Since , .
◼
Corollary.
Let be a positive integer. The following hold for all integers , and .
If and , then .
If for a prime , then .
Application. A nice application of modular arithmetic finds , the day of the week, where means Sunday,..., means Saturday:
For the date ,
where means March,..., means February. For th of November, we have
So th of November, is a Monday.