Chinese Remainder Theorem
Let be positive integers such that for . Then the linear congruence’s:
has a simultaneous solution, which is unique modulo the integer .
Proof
Existence of a solution:
Let For each , let . Since , then . Using this, we know that there exists a solution to We will denote the unique solution of this equation as . Our goal is to prove that the integer: is a simultaneous solution of the given system.
- when , because . We get the following congruence:
- Since , we now get Giving us the existence of a solution to the system of congruences.
Uniqueness of the Solution
Suppose is another integer that satisfies these congruences. Then, Then for every . Since , then we can easily obtain . Hence proving that our solution is unique modulo the integer
Example (Ancient Chinese Problem)
A band of 17 pirates stole a sack of gold coins. When they tried to divide the fortune into equal portions, 3 coins remained. In the ensuing brawl over who should get the extra coins, one pirate was killed. The wealth was redistributed, but this time an equal division left 10 coins. Again an argument developed in which another pirate was killed. But now the fortune was evenly distributed among the survivors. What was the least number of coins that could of been stolen
Let be the number of gold coins.
OR! if you kept , you will instantly get the calculation in less steps!