In this section we define the ring
of integers modulo
,
introduce the Euler
-function,
and relate it to the multiplicative
order of certain elements of
.
If
and
, we say that
is congruent
to
modulo
if
, and write
.
Let
be the ideal of
generated by
.
sage: R = Integers(3) sage: list(R) [0, 1, 2]
We use the notation
because
is the quotient of
the ring
by the ideal
of multiples of
. Because
is the quotient of a ring by an ideal, the ring structure
on
induces a ring structure on
.
We often let
or
denote the equivalence class
of
.
For example, if
is a prime, then
is a
field (see
Exercise 2.12).
We call the natural reduction map
, which sends
to
, reduction modulo
. We also say that
is a
lift of
. Thus, e.g.,
is a lift of
mod
,
since
.
We can use that arithmetic in
is well defined is to
derive tests for divisibility by
(see
Exercise 2.8).
where the digits of
from which the proposition follows.