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=5∗7+3∗7+3∗5
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
N≡2mod3 so N=2+3a.
N≡1mod5 so N=1+5b
So 2+3a=1+5b so 5b−3a=1. One solution is b=2 and a=3
So N≡2+3∗3=1+2∗5=11mod3∗5.
So N=11+15c.
N≡4mod7 so N=4+7d.
So 11+15c=4+7d so 15c−7d=−7. c=0 and d=1 is a solution.
So N≡11=4+7≡11mod3∗5∗7=105.
And, indeed, 11≡2mod3 and 11≡1mod5 and 11≡4mod7.
Trying to follow your partition reasoning.
5∗7=35≡2mod3 so that satisfies.
3∗7=21≡1mod5 so that satisifies.
3∗5=15≡1≢4mod7 so that does not satisfy.
But 4*3*5 \equiv 4 \mod 7 so that does.
So 5*7 + 3*7 + 60 = 116 solves all three. But 116 > 105. But any k \equiv 116 \mod 105 so do so 116 - 105 = 11 will do.
.... or ... when we hae 3*5 \equiv 1 \mod 7 and we could have figured 4 \equiv -3 \mod 7 so -3*3*5 \equiv 4 \mod 7.
So N = 5*7 + 3*7 - 3*3*5 = 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