Saturday, August 4, 2018

elementary number theory - Chinese Remainder Theorem/Simultaneous congruences



Find an integer N , 0 ≤ N < 105 such that




N ≡ 2 mod 3,



N ≡ 1 mod 5, and



N ≡ 4 mod 7.



What I have done:



So I have been able to start by splitting up the summation of x into 3 sections:




x=57+37+35



with the first multiplication corresponding with the mod 3 equation, the second multiplication corresponding with the mod 5 equation and the third multiplication corresponding with the mod 7 equation.



Therefore:



x=35+21+15



However, I know that this isn't complete. But I am not exactly sure on how to proceed.




Any help?


Answer



N2mod3 so N=2+3a.



N1mod5 so N=1+5b



So 2+3a=1+5b so 5b3a=1. One solution is b=2 and a=3



So N2+33=1+25=11mod35.




So N=11+15c.



N4mod7 so N=4+7d.



So 11+15c=4+7d so 15c7d=7. c=0 and d=1 is a solution.



So N11=4+711mod357=105.



And, indeed, 112mod3 and 111mod5 and 114mod7.







Trying to follow your partition reasoning.



57=352mod3 so that satisfies.



37=211mod5 so that satisifies.



35=1514mod7 so that does not satisfy.




But 4354mod7 so that does.



So 57+37+60=116 solves all three. But 116>105. But any k116mod105 so do so 116105=11 will do.



.... or ... when we hae 351mod7 and we could have figured 43mod7 so 3354mod7.



So N=57+37335=11. (by taking a negative we know we won't get a number too large).



Actually, I had never done the "partitioning" before.




It works well. I like it.


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...