Nearly divisible by all

Find a positive integer less than 3000 which satisfy the conditions below.

  • When divided by 1, it leaves a remainder of 0.

  • When divided by 2, it leaves a remainder of 1.

  • When divided by 3, it leaves a remainder of 2.

  • \ldots

  • When divided by 9, it leaves a remainder of 8.

  • When divided by 10, it leaves a remainder of 9.


The answer is 2519.

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.

1 solution

Mathh Mathh
May 13, 2015

1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 x + 1 lcm ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ) x + 1 1,2,3,4,5,6,7,8,9,10\mid x+1\iff \text{lcm}(1,2,3,4,5,6,7,8,9,10)\mid x+1

2 3 3 2 5 7 x + 1 2520 x + 1 \iff 2^3\cdot 3^2\cdot 5\cdot 7\mid x+1\iff 2520\mid x+1

with 0 x < 3000 0\le x<3000 gives x = 2519 x=\boxed{2519} .

Moderator note:

Nice. Bonus question: Would there be any solution if I added another constraint: "When divided by 11, it leaves a remainder of 10."?

Challenger Master: It would be equivalent to finding x x such that

2 3 3 2 5 7 11 x + 1 27 720 x + 1 2^3\cdot 3^2\cdot 5\cdot 7\cdot 11\mid x+1\iff 27\, 720\mid x+1 , which with 0 x < 3000 0\le x<3000 is impossible. Least nonnegative such x x is 27 719 27\, 719 .

mathh mathh - 6 years, 1 month ago

Its perfect

Vraj Mistry - 6 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...