Professional Documents
Culture Documents
, University of Windsor
)
(
( )
and
, then
)
)
(
)
Note 1 - Eulers theorem provides another way to solve linear congruence
(
)
. If
, then
( )
(
)
Lemma 1- If
are relatively prime positive numbers, then (
( ) ( ) For example, (63)=(7)(9)=66=36.
Corollary to Lemma 1 More generally, if p and q are any pair of distinct prime
numbers, then
(pq)=(p)(q)=(p-1)(q-1).
Example 2 Solve
Exercise 1 Solve
Note 2- To solve
(
) (since
(
(
).
)(
).
(
), if
(
)
has an inverse). Then
(
).
Example 3 - Solve
(
)
Since
and | , there are two solutions. We reduce the given
(
)
(
)
congruence to the following by dividing through by the
(
The other solution is
(
(
(
) has exactly
Note 3 The linear congruence
solutions if | , and no solutions if does not divide . If if
solution, then the distinct solutions
are:
(
(
and
)
is a
Example 4 If
is the inverse of (
(
) what is the inverse of
(
Solution: Let ( )
then
( )
)?
) and
is the inverse of
(
)
such that
So,
(
)
Using this result in the third given congruence, we have
(
)
(
)
(
)
(
)
(
)
(
)
Plugging this result into the expression
, we get:
(
)
Every of this form is a solution. The smallest positive integer is obtained for
as
where
.
Chinese Remainder Theorem (CRT) - Let
prime integers. Then the simultaneous congruence:
be pairwise relatively
(
(
)
)
(
has exactly the following unique solution
)
:
(
where
)
(
(
(
)
)
)
Solution:
{
We need now to find the inverse of
algorithm or by inspection as:
(
) ( )
(
{
(
{
)
)
(
(
)
)
Note 4 If
is the
prime factorization of , the CRT states that any positive integer
is
completely determined by knowing the remainders upon division by
. In
other words, is a unique solution to the set of congruencies
(
).
This is a useful feature of the CRT.
(
)
.
(
)
Solution: Note that 12 is not a prime power, we need to break the second
congruence into a prime factor. Thus, we need to solve three congruences:
(
)
{
(
)
(
)
Note that the first congruence implies the second, thus, the second congruence
is not necessary:
(
)
{
(
)
Since
( )
, we get
(
), or in general
for
some integer .
(
)
Exercise 4 Solve {
.
(
)
Example 7 Solve {
Since