An equivalence relation on a set
partitions the set into
equivalence classes.
An equivalence class is a subset of so that every pair of elements
from the class is in the relation, while any pair of an element in the
class and an element outside the class is not in the relation.
Every element in is in exactly one of the equivalence classes.
Notation: denotes the equivalence class of which
is a
member. Note that
if and only if
.
Examples:
Let be the relation on the set
where
if
.
Equivalence classes:
Let be the relation on the set
where
if
and
, divided by 5, have the same remainder.
Equivalence classes:
.
The Integers Modulo
For each positive integer , the following is an equivalence
relation on
:
if
and
, divided by
, have the
same remainder.
Alternative definitions:
if
is divisible by
. (
)
if
.
This relation is called: Congruence modulo
.
Notation:
.
Modular Arithmetic
is the set of integers modulo
:
where ,
etc. are the equivalence classes of the relation
``congruence modulo
''. So
,
etc.
Addition and multiplication on
are defined as follows: