A positive integer n leaves the same remainder of 35 when divided by both 2009 and 2010.
What is the remainder when n is divided by 42?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Same Here!
I really liked how you presented your solution :) It is clearly written and is easy to follow. It helped me understand the working of the problem.
We can say that 2009 and 2010 don't have common factors without actually finding their factors, since any two consecutive numbers have no common factors.
Log in to reply
Right. we can easily show that gcd(X,X+1) = 1 using Extended Euclidean algorithm .
Given that n ≡ { 3 5 (mod 2009) 3 5 (mod 2010)
⟹ n ≡ 2 0 0 9 ⋅ 2 0 1 0 m + 3 5 ≡ 3 5 (mod 42) where m is an integer. Note that 4 2 ∣ 2 0 0 9 ⋅ 2 0 1 0
When a problem involving remainders in involved, writing the statements with a modulus is almost universally helpful.
As noted in the comments and in a different answer, it's possible to use n − 3 5 instead of n in which case the results mod 2009 and 2010 are both 0.
Right. Another way to phrase it is to state that n − 3 5 is both divisible by 2009 and 2010, so n − 3 5 divides 2 0 0 9 × 2 0 1 0 . And because 2 0 0 9 × 2 0 1 0 is divisible 42, then it follows that n − 3 5 divides 42. The result follows.
how does modular arithmetic work? We haven't been taught it in school yet
Given that n ≡ 3 5 ( m o d 2 0 0 9 ) , we can conclude that n = 2 0 0 9 p + 3 5 , for p ∈ N 0 . From this we can conclude that n + 7 = 2 0 0 9 p + 4 2 . This can be simplified as n + 7 = 7 × ( 2 8 7 p + 6 ) , meaning that 7 ∣ n + 7 . We can also see that n ≡ 3 5 ( m o d 2 0 1 0 ) , meaning that n = 2 0 1 0 q + 3 5 for q ∈ N 0 , from which we conclude that n + 7 = 2 0 1 0 q + 4 2 , which can further be simplified as n + 7 = 6 × ( 3 3 5 q + 6 ) . This means that 6 ∣ n + 7 . Because 7 ∣ n + 7 , and 6 ∣ n + 7 , we can say that 4 2 ∣ n + 7 . From this, we can see that the remainder we get when dividing n + 7 by 4 2 is 35 .
How would we tackle this problem if there were more than two such equations?
Log in to reply
In my opinion, any other equation added would be just an excess of data. Two equations are just enough to solve this type of task. The only thing a third, fourth, fifth etc. equation would change is your liberty to do this task in many different ways.
Log in to reply
I see. That's an interesting observation.
Chinese remainder theorem will able to handle this excess of data with relative ease.
nice solution, the last line shouldn't it be " we can see that the remainder we get when dividing n by 42 is 35"?
Assume n = 3 5 . Therefore n m o d 4 2 ≡ 3 5 m o d 4 2 .
Yep, all this complicated modulus work seems pointless when it's self evident 35 is smaller than 2009, 2010 and 42 and thus dividing 35 by all of them will be 0 remainder 35
Problem Loading...
Note Loading...
Set Loading...
If we subtract 35 from the number, then the number has 2009 and 2010 as factors (with no remainder)
The prime factorization of 2009 and 2010,
2009 = 7² * 41
2010 = 2 * 3 * 5 * 67
Observed that they have no common factor so their lowest common multiple is their product:
LCM = 2009 * 2010 = 4038090
So n is equal to some integer multiple of that, plus 35:
n = 4038090k + 35
But 4038090 is evenly divisible by 42, so the remainder will be 3 5 .