I have a box which contains amount of balls.
If I take them out 1 at a time, no balls would be left in the box.
If I take them out 2 at a time, 1 ball would be left in the box.
If I take them out 3 at a time, no balls would be left in the box.
If I take them out 4 at a time, 1 ball would be left in the box.
If I take them out 5 at a time, 4 balls would be left in the box.
If I take them out 6 at a time, 3 balls would be left in the box.
If I take them out 7 at a time, no balls would be left in the box.
If I take them out 8 at a time, 1 ball would be left in the box.
If I take them out 9 at a time, no balls would be left in the box.
What is the least number of balls I have?
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.
First, let's look at the no-remainder divisions, and those are 1, 3, 7 and 9. So the number we are looking for is a multiple of LCM of the 4 numbers, which is 63. Now look at division by 2 (or any other even number at that), clearly we can see that our number is an odd one. Division by 5 told us that the number would have either 4 or 9 at the ones place, but as we already confirmed before, we are looking for an odd number, so 9 it is. Now if some number with a last digit 9 is a multiple of 63, then the multiplicator (or multiplier or multiplicand) can only have 3 as its own last digit. Thus, 63 x (10n + 3) would produce the desired answer. n = 2 will get us the smallest of answers which is 1449.