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

Chinese Remainder Theorem

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

An Introduction to the Chinese Remainder Theorem

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 n1,n2,,nk and arbitrary integers a1,a2,,ak,

xa1(modn1)xa2(modn2)xak(modnk)

has a solution, which is a unique modulo, N=n1n2nk.


Chinese Remainder Theorem Proof

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

  • Compute N=n1×n2××nk

  • For every i=1,2,3,,k compute

Yi=Nni=n1,n2,,ni1ni+1nk

  • For every i=1,2,,k compute

Zi=yi1modni utilising Euclid's extended algorithm.

  • The integer x=i=1ka1yizi is a solution to the system of congruences and xmodN is the unique solution modulo N.

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

So,

x(a1y1z1+a2y2z2+akykzk)(modni) x(aiyizi)(modni)

x(ai)(modni)

where the second line comes after because yj=0(modni) for each ji and the third line because of yizi1(modni).


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


Then,

n1|(uv),n2|(uv),,nk|(uv)

Since n1,n2,,nk It's relative primes. So,

uvmod(n1,n2,,nk).

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:

x3(mod5)x5(mod7).

Ans: Given data,

x3(mod5)x5(mod7)

By the Chinese Remainder Theorem,

We have

N=5×7=35N1=355=7N2=357=5

Now using relation,

Nixi1(modni)

7x11(mod5),2x11(mod5)6x13(mod5)x1=3

Similarly,

5x21(mod7),15x23(mod7),x2=3

Finally,

N=N1x1a1+N2x2a2

7×3×3+5×5×3=138138(mod35)33(mod35)


2. Determine the solution for the following system:

x1(mod2)x2(mod3)x3(mod5).

Ans: By the Chinese remainder theorem, we have

N=2×3×5=30N1=302=15N2=303=10N3=305=6

Now using relation,

Nixi1(modni)

So, when we solve 15x11(mod2)

x11(mod2)

x1=1

Now,

10x21(mod3)

x21(mod3)

x2=1

Finally,

6x31(mod5)

x31(mod5)

x3=1

Finally,

N=N1x1a1+N2x2a2+N3x3a3

1×15×2+1×10×2+1×6×3=5353(mod30)23(mod30).


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

x3(mod9)x7(mod13).

Ans: Given data,

x3(mod9)x7(mod13)

By the Chinese Remainder Theorem, we have

N=9×13=117N1=1179=13N2=11713=9

Now,

13y1=1(mod9),4y1=1(mod9)28y1=7(mod9)y1=7

Similarly,

9y2=1(mod13),27y2=3(mod13)y2=3

Finally,

13×7×3+9×3×7=462462(mod117)111(mod117)


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

FAQs on Chinese Remainder Theorem

1. What does congruence mean?

If the difference between two integers a and b can be divided by the number m, then the two numbers are said to be congruent modulo m. Then it is stated that a is congruent to b modulo m, and this assertion is represented by the symbol a ≡ b (mod m). Congruence is the name given to such a relationship. Many features of congruences, especially those involving a variable x, such as XP ≡ x (mod p), where p is a prime number, are similar to those algebraic equations. They play a significant role in the theory of numbers.

2. What is the uniqueness of the Chinese remainder theorem?

Assume that all of the congruences have x and y as their solutions. When x and y are divided by ni, they provide the same residual, therefore their difference, x-y, is a multiple of both ni. Since x and y are congruent modulo N since the ni are pairwise coprime, their product N divides x-y as well. The first statement of the theorem assumes that x and y are non-negative and less than N; therefore, their difference can only be a multiple of N if x = y.

3. What does the mathematical term modulus mean?

Although the term "modulus" has multiple meanings in different fields, its mathematical use has the longest history and has had the greatest influence on contemporary culture. Carl Friedrich Gauss created modular arithmetic at the beginning of the 19th century, which is the field in which the modulus is most crucial. Modular arithmetic's central tenet is that two integers a and b are said to be congruent modulo a certain number n if and only if n, the modulus, is divisible by the gap between a and b.