A remainder problem

A positive integer n n leaves the same remainder of 35 when divided by both 2009 and 2010.

What is the remainder when n n is divided by 42?


The answer is 35.

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.

4 solutions

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 n is equal to some integer multiple of that, plus 35:

n n = 4038090k + 35

But 4038090 is evenly divisible by 42, so the remainder will be 35 35 .

Same Here!

Ivan Martinez - 4 years, 4 months ago

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.

Pranshu Gaba - 4 years, 4 months ago

Log in to reply

Right. we can easily show that gcd(X,X+1) = 1 using Extended Euclidean algorithm .

Pi Han Goh - 4 years, 3 months ago

Given that n { 35 (mod 2009) 35 (mod 2010) n \equiv \begin{cases} 35 \text{ (mod 2009)} \\ 35 \text{ (mod 2010)} \end{cases}

n 2009 2010 m + 35 where m is an integer. 35 (mod 42) Note that 42 2009 2010 \begin{aligned} \implies n & \equiv 2009 \cdot 2010 {\color{#3D99F6}m} + 35 & \small \color{#3D99F6} \text{where }m \text{ is an integer.} \\ & \equiv \boxed{35} \text{ (mod 42)} & \small \color{#3D99F6} \text{Note that } 42 \ | \ 2009 \cdot 2010 \end{aligned}

Moderator note:

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 35 n-35 instead of n n in which case the results mod 2009 and 2010 are both 0.

Right. Another way to phrase it is to state that n 35 n-35 is both divisible by 2009 and 2010, so n 35 n-35 divides 2009 × 2010 2009 \times 2010 . And because 2009 × 2010 2009 \times2010 is divisible 42, then it follows that n 35 n-35 divides 42. The result follows.

Pi Han Goh - 4 years, 4 months ago

how does modular arithmetic work? We haven't been taught it in school yet

Mudit Tulsianey - 2 years, 4 months ago

Log in to reply

See modular arithmetic .

Pi Han Goh - 2 years, 4 months ago
Djordje Veljkovic
Jan 28, 2017

Given that n 35 ( m o d 2009 ) n≡35 \space\ (mod \space\ 2009) , we can conclude that n = 2009 p + 35 n=2009p+35 , for p N 0 p∈N_0 . From this we can conclude that n + 7 = 2009 p + 42 n+7=2009p+42 . This can be simplified as n + 7 = 7 × ( 287 p + 6 ) n+7=7 \times\ (287p+6) , meaning that 7 n + 7 7|n+7 . We can also see that n 35 ( m o d 2010 ) n≡35 \space\ (mod \space\ 2010) , meaning that n = 2010 q + 35 n=2010q+35 for q N 0 q∈N_0 , from which we conclude that n + 7 = 2010 q + 42 n+7=2010q+42 , which can further be simplified as n + 7 = 6 × ( 335 q + 6 ) n+7=6 \times\ (335q+6) . This means that 6 n + 7 6|n+7 . Because 7 n + 7 7|n+7 , and 6 n + 7 6|n+7 , we can say that 42 n + 7 42|n+7 . From this, we can see that the remainder we get when dividing n + 7 n+7 by 42 42 is 35 .

How would we tackle this problem if there were more than two such equations?

Agnishom Chattopadhyay - 4 years, 4 months ago

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.

Djordje Veljkovic - 4 years, 4 months ago

Log in to reply

I see. That's an interesting observation.

Agnishom Chattopadhyay - 4 years, 4 months ago

Chinese remainder theorem will able to handle this excess of data with relative ease.

Pi Han Goh - 4 years, 4 months ago

nice solution, the last line shouldn't it be " we can see that the remainder we get when dividing n by 42 is 35"?

Mehdi K. - 3 years, 7 months ago
Adam Hufstetler
Feb 15, 2017

Assume n = 35 n=35 . Therefore n m o d 42 35 m o d 42 n \bmod{42}\equiv 35\bmod{42} .

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

Michael F - 3 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...