|  |  | |
|  |  | |
|  |  | 
 and
 and 
 such that
 such that
 .  Then there exists
.  Then there exists 
 such that
 such that
|  |  | |
|  |  | 
 is unique modulo
 is unique modulo  .
. in the equation
 in the equation 
 
then
 will satisfy both congruences.
To see that we can solve, subtract
 will satisfy both congruences.
To see that we can solve, subtract  from 
both sides and use Proposition 2.1.12
together with our assumption that
 from 
both sides and use Proposition 2.1.12
together with our assumption that 
 to see that 
there is a solution.
 to see that 
there is a solution.
For uniqueness, suppose that  and
 and  solve both congruences.  Then
 solve both congruences.  Then
 satisfies
 satisfies 
 and
 and 
 , so
, so  and
 and  .  Since
.  Since 
 , it follows that
, it follows that  , so
, so
 .
.
  
 and
 and  and integers
 and integers  and
 and  ,
this algorithm find an integer
,
this algorithm find an integer  such that
 such that 
 and
and 
 .
.
 such that
 such that  .
.
 and terminate.
 and terminate.
 , we have
, we have 
 ,
and using that
,
and using that  ,  we have
,  we have 
 .
.
  
Now we can answer Question 2.2.1. First, we use Theorem 2.2.2 to find a solution to the pair of equations
|  |  | |
|  |  | 
 ,
,  ,
,  ,
,  .
Step 1 is to find a solution to
.
Step 1 is to find a solution to 
 .
A solution is
.
A solution is  .  Then
.  Then 
 .
Since any
.
Since any  with
 with 
 is also a solution to
those two equations, we can solve all three equations by
finding a solution to the pair of equations
 is also a solution to
those two equations, we can solve all three equations by
finding a solution to the pair of equations
|  |  | |
|  |  | 
 .
A solution is
.
A solution is  , so
, so 
 
Note that there are other solutions. Any
 is also a solution; e.g.,
is also a solution; e.g., 
 .
.
 such that
such that 
 and
 and 
 .  For example,
.  For example,
sage: CRT(2,3, 3, 5) 8The CRT_list command computes a number that reduces to several numbers modulo coprime modulo. We use it to answer Question 2.2.1:
sage: CRT_list([2,3,2], [3,5,7]) 23