Tuesday, June 14, 2016

elementary number theory - Solve the following system of simultaneous congruences:



3x1(mod7)2x10(mod16)5x1(mod18)



Hi everyone, just a little bit stuck on this one. I think I am close, but I must be getting tripped up somewhere. Here is what I have so far:



from (2), 2x=10+16kx=5+8k



Putting this into (1):



3(5+8k)1(mod7)=15+24k1(mod7)=24k14(mod7)



By co-prime cancellation, I get 12k7(mod7)



And since 12k5k(mod7)5k2k(mod7) and 70(mod7), we conclude that
2k0(mod7)2k=7l for some integer l.




Multiplying by 48k=28l



It follows that, x=5+8k=528lx5(mod 28)



So now, solving (1), (2) and (3) is equivalent to solving:



x5(mod 28) (4)



5x1(mod 18) (3)




Then substitute x=528l into (3),



5(528l)1(mod 18)



= 25140l1(mod 18)



= 140l24(mod 18)



And since 140l14l(mod 18)14l4l(mod 18) and 246(mod 18)




we have, 4l6(mod 18)4l=6+18M for some integer M.



Multiplying by 7 28l=42+126M



Finally, substituting this back into x, x=528lx=5+42+126M=47+126Mx47(mod 126)



But when I substitute x=47 back into my original equations, it works for (1) and (3), but fails for (2).



Can anyone tell me where I went wrong? Many thanks!!


Answer




This is not an answer, but a guide to a simplification. The first congruence is fine. Note that the second congruence is equivalent to x5(mod8). Any solution of this congruence must be odd.



Now look at the third congruence. Note that as long as we know that x is odd, we automatically have 5x1(mod2). So in the presence of the second congruence, the third one can be replaced by 5x1(mod9).



Thus we are looking at the congruences 3x1(mod7), x5(mod8), and 5x1(mod9). Now the moduli are pairwise relatively prime. Relatively prime moduli are easier to handle, there is less risk of error.



There will be a unique solution modulo (7)(8)(9). In particular, your final modulus of 126 cannot be right.



It is probably worthwhile to simplify the congruences still further. Note that the congruence 3x1(mod7) has the solution x5(mod7). And the congruence 5x1(mod9) is equivalent to x2(mod9).




We got lucky, ended up with x5(mod7) and x5(mod8), which has as only solution x5(mod56).



So we are trying to solve x5(mod56), x2(mod9).



One can find a solution by a short search. Or else we want x=56a+5=9b+2. That gives 9b=56a+3, so 3 must divide a, say a=3c. We arrive at 56c+1=3b. Clearly c=1 works, so a=168. The solution is therefore x173(mod(56)(9)).


No comments:

Post a Comment

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...