Linear Equations Modulo
In this section, we
are concerned with how to decide whether or not a linear equation of
the form
has a solution modulo
.
Algorithms for computing solutions to
are the topic of Section 2.3.
First we prove a proposition that gives a criterion under
which one can cancel a quantity from both sides of a congruence.
Proof.
By definition
Since

, it follows
from Theorem
1.1.6 that

, so
as claimed.
When
has a multiplicative inverse
in
(i.e.,
) then the equation
has a unique
solution
modulo
. Thus, it is of interest to
determine the units in
, i.e., the elements which have a
multiplicative inverse.
We will use complete sets of residues
to prove that the units in
are exactly the
such that
for any lift
of
to
(it doesn't matter which lift).
Definition 2.1 (Complete Set of Residues)
We call a subset

of size

whose reductions modulo

are
pairwise distinct a
complete set of residues
modulo

. In other words, a complete set of residues is a choice of
representative for each equivalence class in

.
For example,
is a complete set of residues modulo
.
When
,
is a complete set of residues.
Lemma 2.1
If
is a complete set of residues modulo
and
with
, then
is also a complete set of residues modulo
.
Proof.
If

with

, then
Proposition
2.1.9 implies that

.
Because

is a complete set of residues, this implies
that

. Thus the elements of

have distinct reductions modulo

.
It follows, since

, that

is a
complete set of residues modulo

.
Proof.
Let

be a complete set of residues modulo

, so there
is a unique element of

that is congruent to

modulo

.
By Lemma
2.1.11,

is also a complete set of residues modulo

, so
there is a unique element

that is congruent
to

modulo

, and we have

.
Algebraically, this proposition asserts that if
, then
the map
given by left multiplication by
is
a bijection.
Example 2.1
Consider the equation

,
and the complete set

of coset representatives. We have
so

.
When
, then the equation
may or
may not have a solution. For example,
has no
solution, but
does, and in fact it has more than
one mod
(
and
). Generalizing
Proposition 2.1.12, we obtain the following more general
criterion for solvability.
Proof.
Let

. If there is a solution

to the equation

, then

. Since

and

, it follows that

.
Conversely, suppose that
. Then
if and only
if
Thus

has a solution if and only if

has a solution. Since

, Proposition
2.1.12 implies this
latter equation does have a solution.
In Chapter 4 we will study quadratic reciprocity,
which gives a nice criterion for whether or not a quadratic equation
modulo
has a solution.
William
2007-06-01