Difference between revisions of "Chinese Remainder Theorem"

(theorem)
(rmv superficial history section, add theorem)
Line 1: Line 1:
The '''Chinese Remainder Theorem''' is a [[number theory | number theoretic]] result.  
+
The '''Chinese Remainder Theorem''' is a [[number theory | number theoretic]] result. it is one of the only [[theorem]]s named for an oriental person or place, due to the closed development of mathematics in the western world.
 +
== Theorem ==
  
==History==
+
Let <math>\displaystyle m</math> be [[relatively prime]] to <math>\displaystyle n</math>Then each [[residue class]] mod <math>\displaystyle mn</math> is equal to the [[intersection]] of a unique residue class mod <math>\displaystyle m</math> and a unique residue class mod <math>\displaystyle n</math>, and the intersection of each residue class mod <math>\displaystyle m</math> with a residue class mod <math>\displaystyle n</math> is a residue class mod <math>\displaystyle mn</math>.
When the ancient Chinese army was at its peak, it was said that the emperor developed a way to count the soldiersRather than count his hordes one man at a time, he developed a system.  He would have his soldiers divide into groups of 3, and count the men who didn't have a group.  He would then do groups of 5, etc.  Eventually, using these remainders, he could calculate the size of his army using a technique we now call the Chinese Remainder Theorem.
 
  
 
== Proof ==
 
== Proof ==

Revision as of 17:02, 25 December 2007

The Chinese Remainder Theorem is a number theoretic result. it is one of the only theorems named for an oriental person or place, due to the closed development of mathematics in the western world.

Theorem

Let $\displaystyle m$ be relatively prime to $\displaystyle n$. Then each residue class mod $\displaystyle mn$ is equal to the intersection of a unique residue class mod $\displaystyle m$ and a unique residue class mod $\displaystyle n$, and the intersection of each residue class mod $\displaystyle m$ with a residue class mod $\displaystyle n$ is a residue class mod $\displaystyle mn$.

Proof

If $a \equiv b \pmod{mn}$, then $a$ and $b$ clearly differ by a multiple of $mn$, so $a \equiv b \pmod{m}$ and $a \equiv b \pmod{n}$. This is the first part of the theorem. The converse follows because $a$ and $b$ must differ by a multiple of $m$ and $n$, and $\mbox{lcm}(m,n) = mn$. This is the second part of the theorem.

Applicability

Much like the Fundamental Theorem of Arithmetic, many people seem to take this theorem for granted before they consciously turn their attention to it. It ubiquity derives from the fact that many results can be easily proven mod (a power of a prime), and can then be generalized to mod $m$ using the Chinese Remainder Theorem. For intance, Fermat's Little Theorem may be generalized to the Fermat-Euler Theorem in this manner. Its application in problem-solving is similar.


General Case: the proof of the general case follows by repeatedly applying to above result (k-1) times.

Extended version of the theorem

Suppose one tried to divide a group of objects into $2$, $3$ and $4$ parts instead and found $1$, $1$ and $2$ fish left over, respectively. One can show this to be impossible, because any number giving remainder $1$ modulo $2$ must be odd and any number giving remainder $2$ modulo $4$ must be even. Thus, the number of objects must be odd and even simultaneously, which is absurd. Thus, there must be some restrictions on the numbers $a_1,\dots,a_n$ to ensure that at least one solution exists. It turns out (and this is the extended version of the theorem) that

The solution exists if and only if $a_i\equiv a_j\mod \gcd(m_i,m_j)$ for all $i,j$ where $\gcd$ stands for the greatest common divisor. Moreover, in the case when the problem is solvable, any two solutions differ by some common multiple of $m_1,\ldots,m_n$.


Discussion

  • Here is an AoPS thread in which the Chinese Remainder Theorem is discussed and implemented.