The following is a formal definition using equivalence relations:
Definition (integers modulo
, ) The set of integers modulo
is the set of all equivalence classes of integers under the equivalence relation if divides . We denote this set by . The set is a ring under the operations of addition and multiplication modulo .
For our purposes, we can think of