Rajiv has 1000 marbles. He wants to store them separately in different bags, so that each bag contains a different number of marbles. What is the maximum number of bags that Rajiv will use?
Details and assumptions
Rajiv will not place a bag within another bag.
Each bag that is used will contain at least 1 marble. Empty bags are not counted.
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.
Suppose Rajiv uses n > 0 bags. Let the number of marbles in each bag be m 1 , m 2 , … m n . Reorder the numbers so that they are in strictly increasing order (since the number of marbles is distinct from each other), to obtain 1 ≤ m 1 < m 2 < m 3 < … m n . Since each of these numbers are integers, we can conclude (inductively) that m i ≥ i . Hence, we have
1 0 0 0 = m 1 + m 2 + … + m n ≥ 1 + 2 + … + n = 2 n ( n + 1 ) .
Since 4 4 × 4 5 = 1 9 8 0 and 4 5 × 4 6 = 2 0 7 0 , this gives that n ≤ 4 4 (since n is an integer).
To see that 4 4 bags is possible, we have m 1 = 1 , m 2 = 2 , … m 4 3 = 4 3 , and then place the remaining 5 4 marbles in the last bag. Hence, the maximum number of bags that Rajiv will use is 4 4 .