Tuesday, 26 February 2019

discrete mathematics - Solving systems of basic congruences



I'm having some difficulty with a problem and I was hoping I could find some help here.



We've been covering congruences in my Discrete Math class, and, while I understand what they mean, I can't seem to solve systems of congruences greater than 2 equations in size.



What I mean is, I can solve problems that look like this:




x4mod5



x7mod8



I understand that I can solve this by doing something along the lines of:



x=5k+4



5k+47mod8




5k3mod8



k=7



x=57+4



therefore x=39



But I can't seem to figure out how to expand this to three (or more) equations, like so:




x4mod5



x7mod8



x3mod6



Disclaimer: I made these numbers up and I'm assuming there's always an answer. If this system doesn't work, any example problem will do. I'm just confused about the process.



Thank you!


Answer




To construct an x equal to x1modm1, x2modm1 and x3modm3.



we would like some expression x=A+B+C such that mod m1 kills B and C, mod m2 kills A and C etc.. and gives the correct values (x1, x2, ..)



For the things to get killed in the right we we should have x=m2m3A+m1m3B+m1m2C so e.g. reduction mod m1 gives m2m3A so we should set A=x1inverse of (m2m3) mod m1 and similarly with the other two.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...