3x≡1(mod7)2x≡10(mod16)5x≡1(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+16k⟹x=5+8k
Putting this into (1):
3(5+8k)≡1(mod7)=15+24k≡1(mod7)=24k≡−14(mod7)
By co-prime cancellation, I get 12k≡−7(mod7)
And since 12k≡5k(mod7)⟹5k≡−2k(mod7) and −7≡0(mod7), we conclude that
−2k≡0(mod7)⟹−2k=7l for some integer l.
Multiplying by −4⟹8k=−28l
It follows that, x=5+8k=5−28l⟹x≡5(mod −28)
So now, solving (1), (2) and (3) is equivalent to solving:
x≡5(mod −28) (4)
5x≡1(mod 18) (3)
Then substitute x=5−28l into (3),
5(5−28l)≡1(mod 18)
= 25−140l≡1(mod 18)
= 140l≡24(mod 18)
And since 140l≡14l(mod 18)⟹14l≡−4l(mod 18) and 24≡6(mod 18)
we have, −4l≡6(mod 18)⟹−4l=6+18M for some integer M.
Multiplying by 7 ⟹−28l=42+126M
Finally, substituting this back into x, x=5−28l⟹x=5+42+126M=47+126M⟹x≡47(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 x≡5(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 5x≡1(mod2). So in the presence of the second congruence, the third one can be replaced by 5x≡1(mod9).
Thus we are looking at the congruences 3x≡1(mod7), x≡5(mod8), and 5x≡1(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 3x≡1(mod7) has the solution x≡5(mod7). And the congruence 5x≡1(mod9) is equivalent to x≡2(mod9).
We got lucky, ended up with x≡5(mod7) and x≡5(mod8), which has as only solution x≡5(mod56).
So we are trying to solve x≡5(mod56), x≡2(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 x≡173(mod(56)(9)).
No comments:
Post a Comment