Access free live classes and tests on the app
Download
+
Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA
Login Join for Free
avtar
  • ProfileProfile
  • Settings Settings
  • Refer your friendsRefer your friends
  • Sign outSign out
  • Terms & conditions
  • •
  • Privacy policy
  • About
  • •
  • Careers
  • •
  • Blog

© 2023 Sorting Hat Technologies Pvt Ltd

CSIR NET EXAM » CSIR UGC-NET Exam Study Materials » Mathematical Sciences » Chinese Remainder Theorem
doubtsolving_csirugc

Chinese Remainder Theorem

The Chinese remainder theorem provides a unique solution to co-prime moduli simultaneous linear congruences. This remainder theorem will find a number p that leaves given remainders when divided by provided divisors.

Table of Content
  •  

Introduction:

The Chinese remainder theorem is commonly employed in large integer computing because it permits a computation bound on the size of the result to be replaced by numerous small integer computations. This remainder theorem definition provides an effective solution to major ideal domains.

According to the Chinese remainder theorem, every primary ideal domain is actual (expressed in terms of congruences). It has been generalized to any ring using a two-sided ideal formulation.

Bezout’s Identity or Bezout’s Lemma:

Bézout’s identity (also known as Bézout’s lemma) is the following theorem, named after Étienne Bézout:

Assuming a and b to be integers or polynomials with d as the greatest common divisor, we then have, x and y to be integers or polynomials such that ax + by = d. Furthermore, all integers or polynomials of the type az + bt are multiples of d.

Chinese Remainder Theorem Definition: 

Under the assumption that the divisors are pair-wise co-prime, the Chinese remainder and factor theorem asserts that if one knows the remainder of the Euclidean division of an integer n by multiple integers.

One can uniquely determine the remainder of the division of n by the product of these numbers (no two divisors share a common factor other than 1).

Statement of the Remainder Theorem:

The Chinese Remainder Theorem states that:

According to pair: n1, n2,…, nk and arbitrary integers a1​, a2​,…, ak the system of simultaneous congruences is given co-prime positive integers.

As a result, x is unknown; instead of knowing x, we know the residual after dividing x by a set of numbers. The equations have precisely one solution if the integers ni are pair-wise co-primes (that is, each one is co-prime with all the others). Modulo N will be the solution, with N equal to the product of all ni.

x​≡a1​(mod n1​)

x​≡a2​(mod n2​)

.

.

.

x​≡ak​(mod nk​)​, has a solution, and the solution is unique modulo N=n1​n2​⋯nk​.

Proof of the Chinese Remainder Theorem:

To see why x is a solution, for each i=1,2,…,k, we have

x​≡(a1​y1​z1​+a2​y2​z2​+⋯+ak​yk​zk​)(mod ni​),

x ≡ai​yi​zi(mod ni)

​ x ≡ai​​(mod ni),

The second line follows since yj≡0 (mod ni), for each j is not equal to i, and the third line follows yi​zi≡1(mod ni)

Now, suppose there are two solutions u and v to the system of congruences. Then  n1​∣(u−v), n2​∣(u−v),…, nk​∣(u−v), and since n1​n2​⋯nk​ are relatively prime, we have that  n1​n2​⋯nk​ divides u−v, or u≡v(mod n1​n2​⋯nk).

Thus, the solution is a unique modulo n1​n2​⋯nk.

Also, there is another way of proving this remainder theorem effectively:

Proof: Let p1=p−1 (mod q) and q1=q−1(mod p). These must exist since p, q are co-prime. Then we assert that it is an integer, then

y=aqq1+bpp1 (mod pq); then both equations are satisfied with y:

Modulo p, we have y=aqq1=a (mod p) since qq1=1(mod p). Similarly, y=b(mod q). Thus y is a solution for x.

Now we have to show that no other solutions exist modulo pq. If z=a(mod p) then z−y is a multiple of p. If z=b(mod q) as well, then z−y is also a multiple of q. Since p and q are co-prime, this implies z−y is a multiple of pq, hence z=y(mod pq). 

This remainder theorem implies we can represent an element of Zpq by one element of Zp and one element of Zq, and vice versa. In other words, we have a bijective function between Zpq and Zp×Zq.

How to Solve the System of Congruences with Chinese Remainder Theorem:

Begin the congruence with the largest modulus and re-write it as an equation for some positive integer. Substitute the equation for x in this congruence with the next largest possible modulus and solve the congruence equation for the value of the integer for which you found out the largest modulus. Re-framing the solved congruence as an equation, substitute the equation for the integer into the value of x. Continue this process until the system of congruences is satisfied.

Problems on Chinese Remainder Theorem:

Example 1: Find x, if possible, such that 2x ≡ 5 (mod 7), and 3x ≡ 4 (mod 8)

 Solution: First, we must know that 2 has an inverse modulo 7, namely 4. 

So we can write the first equivalence as 

x ≡ 4 · 5 ≡ 6 (mod 7). (Using the Chinese Remainder Theorem)

Hence, we have that:  x = 6 + 7k for some k ∈ Z. 

We can now use this in place for the second equivalence: 

3x ≡ 4 (mod 8) 3(6 + 7k) ≡ 4 (mod 8) 18 + 21k ≡ 4 (mod 8) 2 + 5k ≡ 4 (mod 8) 5k ≡ 2 (mod 8). 

Again, noting that 5 has an inverse modulo 8, namely 5, we thus obtain k ≡ 10 ≡ 2 (mod 8). Hence, we have that k = 2 + 8j for some j ∈ Z. 

Using this result back again for x, we have that x = 6 + 7k = 6 + 7(2 + 8j) = 20 + 56j for some j ∈ Z. In fact, any choice of j will work here. Hence, we have that x is a solution to the system of congruences if and only if x ≡ 20 (mod 56). 

Example 2:  Find x, if possible, such that x ≡ 3 (mod 4), and x ≡ 0 (mod 6). 

Solution: We will approach this problem the same way, using this remainder and factor theorem as we did above. From the first equivalence, we have that x = 3 + 4k for some k ∈ Z. Then, the second equivalence implies that 3 + 4k ≡ 0 (mod 6), and hence 4k ≡ −3 ≡ 3 (mod 6). However, this is impossible since we know that gcd(4, 6) = 2 and 2 6 |3.

Prime Powers First

The remainder and factor theorem has the significant consequence that when studying modular arithmetic in general, we can learn modular arithmetic to a prime power first and then use the Chinese Remainder Theorem to extend any results. For any integer n, we factorize n into primes n=p1k1…pmkm and then use the Chinese Remainder Theorem to get

Zn=Zp1k1×…×Zpmkm

To prove statements in Zpk, one starts from Zp and inductively works up to Zpk. Thus the most important case to study is Zp.

Conclusion:

Using the Chinese Remainder Theorem, you can solve congruences and inequalities more efficiently than any remainder theorem or factor theorem. The Chinese Remainder Theorem aids in solving coding equations in C, C++, and Java.

faq

Frequently asked questions

Get answers to the most common queries related to the CSIR-UGC Examination Preparation.

What are the applications of this remainder and factor theorem?

Ans: Integers and remainders under division are involved in the Chinese Remainder Theorem. People h...Read full

Ans: Integers and remainders under division are involved in the Chinese Remainder Theorem. People had developed the theorem into abstract algebra for rings and main ideal domains. Furthermore, you can find the Chinese Remainder Theorem in computers, coding, and cryptography.

Crack CSIR-UGC NET Exam with Unacademy

Get subscription and access unlimited live and recorded courses from India’s best educators

  • Structured syllabus
  • Daily live classes
  • Ask doubts
  • Tests & practice
Learn more

Notifications

Get all the important information related to the CSIR UGC-NET Exam including the process of application, important calendar dates, eligibility criteria, exam centers etc.

CSIR UGC Eligibility Criteria
CSIR UGC Exam Pattern
CSIR UGC Previous Year Question Papers
CSIR UGC Sample Exam Paper
CSIR UGC Score Calculation
See all

Notifications

Get all the important information related to the CSIR UGC-NET Exam including the process of application, important calendar dates, eligibility criteria, exam centers etc.

CSIR UGC Eligibility Criteria
CSIR UGC Exam Pattern
CSIR UGC Previous Year Question Papers
CSIR UGC Sample Exam Paper
CSIR UGC Score Calculation
See all

Related articles

Learn more topics related to Mathematical Sciences
Vector Spaces

Vector Space is a mathematical concept for representing the dimensions of geometric space. The Vector Space Definition, Vector Space Axioms and Vector Space Properties prove facts about other vector space elements.

Variational Methods

Boundary value problems are problems related to first order differential equations that play a significant role in complex analysis in mathematical sciences.

Variation of a Functional

This Article will talk about the Variation of a Functional, Functional Derivative, Direct Variation Formula, Variation of Parameters and Differential Analyzer .

Understanding the Tests for Linear Hypotheses in Detail

Want to know about linear hypothesis tests? This article discusses how to perform tests of hypotheses, linear regression coefficients and also explains the methods in detail

See all
Access more than

4,529+ courses for CSIR-UGC NET

Get subscription

Trending Topics

  • Transgenic Plants
  • Extra Chromosomal Inheritance
  • Principles of Bioenergetics
freeliveclasses_csirugc

Related links

  • CSIR UGC Eligibility
  • CSIR UGC Exam Pattern
  • CSIR UGC PYQ
testseries_csirugc
Subscribe Now
.
Company Logo

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585

Company
About usShikshodayaCareers
we're hiring
BlogsPrivacy PolicyTerms and Conditions
Help & support
User GuidelinesSite MapRefund PolicyTakedown PolicyGrievance Redressal
Products
Learner appLearner appEducator appEducator appParent appParent app
Popular goals
IIT JEEUPSCSSCCSIR UGC NETNEET UG
Trending exams
GATECATCANTA UGC NETBank Exams
Study material
UPSC Study MaterialNEET UG Study MaterialCA Foundation Study MaterialJEE Study MaterialSSC Study Material

© 2025 Sorting Hat Technologies Pvt Ltd

Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA

Share via

COPY