Loading [MathJax]/extensions/MathZoom.js
The Math Message Board @ Math2.org (math2.org/mmb)
Discussion Thread: Chinese remainder   [#39678] / General Questions
Read Thread
The Question by For A :
2007-06-26 at 22:18GMT

x=a_1 (mod m_1)
 
x=a_2 (mod m_2)
 
x=a_3 (mod m_3)
 
M_1=(m_1)*(m_2)*(m_3)/m_1
 
M_2=(m_1)*(m_2)*(m_3)/m_2
 
M_3=(m_1)*(m_2)(m_3)/m_3
 
 
N=(a_1)*(M_1)^fi(m_1)+(a_2)*(M_2)^fi(m_2)+(a_3)*(M_3)^fi(m_3)  
Esta expresión vista módulo (m_1)*(m_2)*(m_3)  
nos da la solución al teorema del resto chino.
 
Ejemplo:
 
x=4 (mod 5)      M_1=8*9=72
x=7 (mod 8)      M_2=5*9=45
x=3 (mod 9)      M_3=8*5=40
 
N=4*72^fi(5)+7*45^fi(8)+3*40^fi(9)=4*72^4+7*(45)^4+3*(40)^6= 144+135+120
(que recordemos que estamos módulo 5*8*9) nos da 39 mod 360
que es la solución del Resto Chino.
 
A Response by Mark Tiefenbruck :
2007-06-26 at 22:33GMT

Sorry, I can read most of that, but I'm not sure what the question is. Are you trying to prove that N is the solution to the set of equations? You'll need to assume that m1, m2, and m3 are (pairwise) relatively prime, or else it isn't true. If that's the case, then the Chinese Remainder Theorem states that there is a unique (mod m1m2m3) solution, so you just have to verify that N satisfies those three equations (which isn't very difficult to show).
A Response by For A :
2007-06-26 at 23:55GMT

Thank you
A Response by PC :
2007-06-27 at 00:59GMT

As Mark stated, everything is quite clear, except where is the question.

On the other hand, the derivation is very understandable, except for the notation fi(), probably because of my ignorance.

If I may resume the example, it states that N is a feasible solution, when it equals the sum of three numbers, each of which is a multiple of the other two modulo factors such that the given remainder is satisfied.

For example,
4*72^fi(5) = 72k where 72k (mod 5) = 4, (= 144)
7*45^fi(8) = 45l where 45l (mod 8) = 7, (= 135)
3*40^fi(9) = 40m where 40m (mod 9) = 3, (= 120)

A feasible solution is the sum of the three numbers, namely 399.
Since 399 mod(5*8*9)=39, so 39 is the smallest solution.

A detailed explanation can be found in:
http://www.math.hawaii.edu/~lee/courses/Chinese.pdf
A Response by Mark Tiefenbruck :
2007-06-27 at 01:01GMT

PC, I translated fi to [phi]. I don't know if this is common, but it makes the answer correct. 8)
A Response by PC :
2007-06-27 at 01:09GMT

Thanks Mark, I didn't think of that!  
I kept thinking the ^ sign means raised to the fi(5) power.  Too much programming is not good for math health!
A Response by Mark Tiefenbruck :
2007-06-27 at 01:10GMT

It does mean that. And I almost guarantee I do more programming than you do. 8)
A Response by Samoht :
2007-06-27 at 06:58GMT

 x = 4mod(5); x = 7mod(8); x = 3mod(9)

 Let x = 4+5k, k an integer, then

 4+5k = 7mod(8), 5k = 3mod(8), 15k = 9mod(8), -k = 1mod(8), k = 7mod(8).

Substitute: x = 4 +5[7mod(8)]; x = 4+35mod(40), x = 39mod(40).

Again let x =39+40k, then 39+40k =3mod(9),3+4k = 3mod(9), k = 0mod(9).

Substitute: x=39+40[0mod(9)]. x =39mod(360), x =39+360t, t an element of Z.

Check: 39+360t=4mod(5), 39+360t=7mod(8) and 39+360t = 3mod(9).

This I could do, but the rest is in Spanish or has symbols I don't understand.

 Chinese remainder theorem: 9 thieves steal a bag of gold coins and after dividing

 them up equally, 3 coins are left over. A quarrel resume and one of the thieves is killed.

The remaining 8 thieves redivide the coins and this time 7 coins remain over. Another

quarrel is initiated and in the resulting ruckus 3 more thieves are killed. The remaining

five thieves re-redivide the coins amongst themselves and lo and behold, this time 4 coins

are left over. What is the mimimum number of coins the thieves stole? 39.
A Response by Samoht :
2007-06-28 at 16:02GMT

 PC: A detailed explanation can be found in:

http://www.math.hawaii.edu/~lee/courses/Chinese.pdf

Going to this URL, I espy the following group of logically equivalent equations:

 x=1mod2; x=2mod3: x=3mod5: and x=1mod7 to solve. Now the solver goes

thru a bunch of hit and miss explanations to solve these equations which

isn't necessary. to wit:

x=1mod2 implies 2|x-1 implies x-1 =2k, k an integer, hence x = 1+2k.

Ergo, let x= 1+2k. 1+2k =2mod3, 2k =1mod3, 4k = 2mod3, k = 2mod3.

Substitute: x=1+2(2mod3),x = 1+4mod6, x = 5mod6, Let x=5+6k

5+6k =3mod5, k = 3mod5

Substitute: x= 5+6(3mod5),x=5+18mod30, x=23mod30, Let x=23+30k

23+30k=1mod7, 2+2k=1mod7, 2k=-1mod7, 8k=-4mod7,k=3mod7

Substitute: x = 23+30(3mod7), x=23+90mod210, x=113mod210 or x = 113 +210t, t an integer.

No guess work or hit or miss. Final solution is x = 113 + 210t, t an integer



  
A Response by PC :
2007-06-29 at 02:45GMT

If I understand correctly, there are two approaches to solve a Chinese remainder theorem, one is the one shown in Spanish, which is along the lines of the reference I quoted.  The other is by substitution, which you explained in detail.  So we have the best of both worlds!

The example you proposed created four integers, 105, 140, 168, 120, which translated to
533 + 210t, which simplifies to 113+210t.

Thread:

Post a Reply Message
Message Composition:
Title: Chinese remainder
Name:
MaRkEr1
spell check in preview.
All postings are subject to unrestricted use.
Optional Information:
Math Notation We have a number of options for inputting math symbols, from simple tags to advanced typesetting.
See How to Input Mathematical Symbols.
You may add drawings, diagrams, or custom mathematical symbols to your posting:
You may upload GIF, PNG, or JPG images into your message here. To conserve disk space and network bandwidth, please minimize the byte size on uploaded files.
To have all responses to this question sent to you via e-mail, type your e-mail address here:
I dislike SPAM. Your e-mail is used for responses only and is not made freely accessible.
To set or change the state of the thread, provide a new value here:
About This Site | M@TH en Ligne (Français) | Español | English | Report Abuse