Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Linear and Abstract Algebra
Reply
 
Thread Tools Display Modes
  #1  
Old December 15th, 2008, 03:23 PM
Newbie
 
Join Date: Oct 2008
Location: Montreal, Canada
Posts: 7
Country:
Thanks: 1
Thanked 2 Times in 2 Posts
kooker is on a distinguished road
Default Chinese remainder theorem

Hello everyone.
This is not really a homework but it is very urgent.
I have a Discrete math exam in one day and this problem is giving me so much headache!

x\equiv 1(\bmod 4) (1)
x\equiv 2(\bmod 5) (2)
x\equiv 3(\bmod 7) (3)

I tried finding inverses as well as reducing these three equations to two equations like:

x+3\equiv 0(\bmod 28)
x+3\equiv 0(\bmod 5)

and in both cases the result does not work out for the equation (3).
Could anyone please explain me why it is so and how to do this in a right way?
Reply With Quote
Advertisement
 
  #2  
Old December 15th, 2008, 04:18 PM
galactus's Avatar
Eater of Worlds

 
Join Date: Jul 2006
Location: Chaneysville, PA
Posts: 2,883
Country:
Thanks: 121
Thanked 1,105 Times in 993 Posts
galactus has much to be proud ofgalactus has much to be proud ofgalactus has much to be proud ofgalactus has much to be proud ofgalactus has much to be proud ofgalactus has much to be proud ofgalactus has much to be proud ofgalactus has much to be proud ofgalactus has much to be proud of
Default

The LCD is (4)(5)(7)=140

I like to do it like this:

Divide by the 'mods':

140/4=35, 140/5=28, 140/7=20

Now, find the inverses.

35p_{1}\equiv 1(mod \;\ 4)\Rightarrow p_{1}=3

28p_{2}\equiv 1(mod \;\ 5)\Rightarrow p_{2}=2

20p_{3}\equiv 1(mod \;\ 7)\Rightarrow p_{3}=6

Now, multiply:

(1)(35)(3)+(2)(28)(2)+(3)(20)(6)=577

x\equiv 577(mod 140)

\boxed{x=17}

Check the solution here:

Javascript Calculator

or the old-fashioned way:

\frac{17-1}{4}=4
\frac{17-2}{5}=3
\frac{17-3}{7}=2

Check.
Reply With Quote
The Following 2 Users Say Thank You to galactus For This Useful Post:
Donate to MHF
  #3  
Old December 15th, 2008, 08:12 PM
Newbie
 
Join Date: Oct 2008
Location: Montreal, Canada
Posts: 7
Country:
Thanks: 1
Thanked 2 Times in 2 Posts
kooker is on a distinguished road
Default

Thank you very much! It turns out I made a miscalculation... few times in a row . {shame on me} But anyway, thank you for your answer and for you time.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 03:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.