Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Chinese Remainder Theorem Explained

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon
widget title icon
Latest Updates

How to Apply the Chinese Remainder Theorem in Maths Exam Problems

According to the Chinese Remainder Theorem in Mathematics, if one is aware of the remainders of the Euclidean division of an integer n by several integers, they can then be used to determine the unique remainder of n's division by the product of these other integers, provided that the n and the divisors are pairwise coprime (no two divisors share a common factor other than 1).


History of the Sun Zi

The theory was developed by the mathematician Sun Zi in the third century AD, while Qin Jiushao first presented the entire theorem in 1247. Sun Zi was an ancient Chinese author who wrote a traditional Chinese work on military tactics. He was one of the first realists in the study of international affairs.


Sun Zi


Sun Zi (c. 544 B.C.E. - c. 496 B.C.E.)


Statement of Remainder Theorem

According to the theorem, the system of simultaneous congruences is defined as pairwise coprime positive integers $n_{1},n_{2},\cdots ,n_{k}$ and arbitrary integers $a_{1},a_{2},\cdots ,a_{k}$,

$x \equiv a_{1}(mod\; n_{1})\\ x \equiv a_{2}(mod\; n_{2})\\\vdots \\ x \equiv a_{k}(mod\; n_{k})$

has a solution, which is a unique modulo, $N = n_{1} n_{2} \cdots n_{k}$.


Chinese Remainder Theorem Proof

The Chinese remainder theorem can be used to solve a system of congruences in the following manner:

  • Compute $N = n_{1}\times n_{2} \times \cdots\times n_{k}$

  • For every $i = 1,2,3, \cdots, k$ compute

$Y_{i} = \dfrac{N}{n_{i}} = n_{1}, n_{2}, \cdots, n_{i-1} n_{i+1} \cdots n_{k}$

  • For every $i = 1,2, \cdots, k$ compute

$Z_{i} = y_{i}^{-1} mod\; n_{i}$ utilising Euclid's extended algorithm.

  • The integer $x = \sum_{i=1}^{k}a_{1}y_{i}z_{i}$ is a solution to the system of congruences and $x\bmod N$ is the unique solution modulo N.

Now, let’s check why x is a solution for every $i = 1,2 \ldots ,k$,

So,

$x \equiv (a_{1}y_{1}z_{1} + a_{2}y_{2}z_{2}+\cdots a_{k}y_{k}z_{k}) (mod\; n_{i})$ $x\equiv (a_{i}y_{i}z_{i}) (mod\; n_{i})$

$ x \equiv (a_{i}) (mod\; n_{i})$

where the second line comes after because $y_{j} = 0 (mod\; n_{i})$ for each $j\neq i$ and the third line because of $y_{i}z_{i} \equiv 1(mod\; {n_i})$.


Now assume that there are two solutions u and v to the given systems of congruences.


Then,

$n_{1}|(u-v), n_{2}|(u-v),\cdots ,n_{k}|(u-v)$

Since $n_{1},n_{2}, \ldots ,n_{k}$ It's relative primes. So,

$u \equiv v \; mod(n_{1},n_{2}, \cdots, n_{k})$.

Hence Proved.


Application of the Chinese Remainder Theorem

  • As it enables replacing a computation for which one knows a bound on the size of the result by numerous comparable computations on tiny integers, the Chinese remainder theorem is commonly employed for computing with large integers.

  • A Godel numbering for sequences has been created using the Chinese Remainder Theorem and is utilised in the demonstration of Godel's Incompleteness Theorems.

  • As a special example of the Chinese remainder theorem, the range ambiguity resolution methods utilised with medium pulse repetition frequency radar can be viewed as such.


Chinese Remainder Theorem Examples

1. Solve the system below using the Chinese remainder theorem:

$x\equiv 3(mod\; 5)\\ x\equiv 5(mod\; 7)$.

Ans: Given data,

$x\equiv 3(mod\; 5)\\ x\equiv 5(mod\; 7)$

By the Chinese Remainder Theorem,

We have

$N = 5\times 7 = 35 \\ N_{1}= \dfrac{35}{5} = 7 \\ N_{2}= \dfrac{35}{7} = 5$

Now using relation,

$N_{i}x_{i}\equiv 1(mod\;n_{i})$

$7x_{1} \equiv 1(mod\;5), \\ \Rightarrow 2x_{1} \equiv 1(mod\;5)\\ 6x_{1} \equiv 3(mod\;5)\\ x_{1} = 3$

Similarly,

$5x_{2} \equiv 1(mod\;7), \\ 15x_{2} \equiv 3(mod\;7), \\ x_{2} = 3$

Finally,

$N = N_{1}x_{1}a_{1}+N_{2}x_{2}a_{2}$

$7\times 3\times 3+5\times 5\times 3 = 138\\ \Rightarrow 138(mod\;35)\\ \Rightarrow 33(mod\;35)$


2. Determine the solution for the following system:

$x\equiv 1(mod\;2)\\ x\equiv 2(mod\;3)\\ x\equiv 3(mod\;5)$.

Ans: By the Chinese remainder theorem, we have

$N = 2\times 3\times 5 = 30 \\ N_{1} = \dfrac{30}{2} = 15 \\ N_{2} = \dfrac{30}{3} = 10 \\ N_{3} = \dfrac{30}{5} = 6$

Now using relation,

$N_{i}x_{i}\equiv 1(mod\;n_{i})$

So, when we solve $15x_{1} \equiv 1(mod\;2)$

$x_{1} \equiv 1(mod\;2)$

$x_{1} =1$

Now,

$10x_{2} \equiv 1(mod\;3)$

$x_{2} \equiv 1(mod\;3)$

$x_{2} =1$

Finally,

$6x_{3} \equiv 1(mod\;5)$

$x_{3} \equiv 1(mod\;5)$

$x_{3} =1$

Finally,

$N = N_{1}x_{1}a_{1}+N_{2}x_{2}a_{2}+N_{3}x_{3}a_{3}$

$1 \times 15 \times 2 + 1 \times 10 \times 2 + 1 \times 6 \times 3 = 53\\ \Rightarrow 53(mod\;30) \equiv 23(mod\;30)$.


3. Solve the system below using the Chinese remainder theorem:

$x\equiv 3(mod\;9)\\ x\equiv 7(mod\;13)$.

Ans: Given data,

$x\equiv 3(mod\;9)\\ x\equiv 7(mod\;13)$

By the Chinese Remainder Theorem, we have

$N = 9\times 13 = 117 \\ N_{1} = \dfrac{117}{9} = 13 \\ N_{2} = \dfrac{117}{13} = 9$

Now,

$13y_{1}= 1(mod\; 9), \\ \Rightarrow 4y_{1}= 1(mod\; 9)\\ 28y_{1}= 7(mod\; 9)\\ y_{1}= 7$

Similarly,

$9y_{2}= 1(mod\; 13), \\ \Rightarrow 27y_{2}= 3(mod\; 13) \\ \Rightarrow y_{2}= 3$

Finally,

$13\times 7\times 3+9\times 3\times 7 = 462 \\ \Rightarrow 462(mod\;117) \\ \Rightarrow 111(mod\;117)$


Important Points to Remember

  • There exists an integer such that for each if and only if are coprime pairs of integers.

  • Simultaneous linear congruences with coprime moduli have a singular solution provided by the Chinese remainder theorem.

  • The Chinese Remainder Theorem states that the natural map is an isomorphism in terms of rings.


Conclusion

In this article, the Chinese remainder theorem is thoroughly covered. Each necessary element of the theorem is covered throughout the article. This theorem leads us to the conclusion that the Chinese Remainder Theorem is a classical theorem that explains the conditions under which several equations can have a simultaneous integer solution.

Competitive Exams after 12th Science
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
Best Seller - Grade 11 - JEE
View More>
Previous
Next

FAQs on Chinese Remainder Theorem Explained

1. What is the Chinese Remainder Theorem (CRT) in simple terms?

The Chinese Remainder Theorem is a mathematical concept that provides a unique solution to a set of simultaneous linear congruences. In simple terms, if you know the remainders of an unknown number when it's divided by several different numbers (which are pairwise coprime), the theorem helps you find that unique unknown number within a certain range.

2. What are the key conditions required for the Chinese Remainder Theorem to work?

The most important condition for the Chinese Remainder Theorem to apply is that the moduli must be pairwise coprime. This means that no two numbers you are dividing by should share any common factors other than 1. For example, you can use the theorem with moduli like 3, 5, and 7, but not with 4 and 6, as they share a common factor of 2.

3. What are the basic steps to solve a problem using the Chinese Remainder Theorem?

Solving a problem using the Chinese Remainder Theorem generally involves these steps:

  • First, ensure all the moduli are pairwise coprime.
  • Calculate the product of all the moduli, let's call it N.
  • For each congruence, find a special number that is a multiple of all other moduli and leaves a remainder of 1 when divided by its own modulus.
  • Finally, combine these results to find the unique solution for the unknown number modulo N.

4. Can you provide a simple example of the Chinese Remainder Theorem in action?

Certainly. Imagine you need to find a number 'x' that satisfies these conditions:

  • When 'x' is divided by 3, the remainder is 2. (x ≡ 2 mod 3)
  • When 'x' is divided by 5, the remainder is 3. (x ≡ 3 mod 5)
  • When 'x' is divided by 7, the remainder is 2. (x ≡ 2 mod 7)
Using the Chinese Remainder Theorem, you can find a unique solution. In this case, the smallest positive integer that fits all three conditions is 23.

5. What do 'congruence' and 'modulus' mean in the context of this theorem?

In this context, a 'modulus' (plural: moduli) is the number you are dividing by. A 'congruence' is a statement about remainders. For example, the expression 'x ≡ 2 (mod 3)' is a congruence. It means that 'x' and '2' have the same remainder when divided by the modulus '3'.

6. Why is the solution guaranteed by the Chinese Remainder Theorem unique?

The solution is unique within a specific range defined by the product of all the moduli (N). This is because the condition that all moduli are pairwise coprime ensures there are no overlapping or conflicting remainder patterns. Any two valid solutions will be congruent to each other modulo N. This means that while there are infinite solutions (e.g., if 23 is a solution, so are 23+N, 23+2N, etc.), there is only one unique solution between 0 and N-1.

7. How is the Chinese Remainder Theorem applied in modern technology like cryptography?

The Chinese Remainder Theorem is fundamental to the RSA algorithm, a widely used public-key cryptosystem. It helps to speed up computations involving large numbers. By breaking a very large calculation into a system of smaller calculations using different moduli, the theorem allows for much faster decryption and digital signing processes. This makes secure communication on the internet more efficient.

8. Is the Chinese Remainder Theorem only for numbers? Can it be applied to other mathematical areas?

While it's best known for its use with integers, the Chinese Remainder Theorem has a more general form that applies to other algebraic structures. This powerful concept can be used in any system that has notions of 'divisibility' and 'remainders,' such as with polynomials or in abstract algebra (specifically, in ring theory). This makes it a foundational idea in higher mathematics, not just number theory.

9. What is the historical origin of the Chinese Remainder Theorem?

The theorem gets its name from its earliest known appearance in a 3rd-century AD book by the Chinese mathematician Sun Tzu (not the author of *The Art of War*). He used it to solve a problem about counting soldiers. The problem was essentially a system of congruences, and his method of solving it laid the groundwork for the theorem that was later generalized and proven by other mathematicians.