 
 
 
 
 
   
There are certain things whose number is unknown. Repeatedly divided by 3, the remainder is 2; by 5 the remainder is 3; and by 7 the remainder is 2. What will be the number?In modern notation, Sun is asking us to solve the following system of equations:
|  |  | |
|  |  | |
|  |  | 
 and
 and 
 such that
 such that
 .  Then there exists
.  Then there exists 
 such that
 such that
|  |  | |
|  |  | 
 
 since
 since 
 .
Set
.
Set  .  We next verify that
.  We next verify that  is a solution to the two equations.  
Then
 is a solution to the two equations.  
Then
 
 
 
Now we can solve Sun's problem:
|  |  | |
|  |  | |
|  |  | 
|  |  | |
|  |  | 
 ,
,  ,
,  ,
,  .
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 
 
 is also a solution; e.g.,
is also a solution; e.g., 
 .
.
We can also solve Sun's problem in PARI:
? chinese(Mod(2,3),Mod(3,5)) %13 = Mod(8, 15) ? chinese(Mod(8,15),Mod(2,7)) %14 = Mod(23, 105)
 
 
 
 
