There are precious dragon balls you'd like to put into the bags of any sizes. A bag can also be placed completely in another bag.
If every containing bag must have distinct prime number of balls, what will be the maximum number of bags you can use?
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.
Let the set {} denote a bag.
Then the first bag will have 2 balls: { 2 } .
The second bag contains the first bag plus 1 ball, having total of 3 balls: { 1 , { 2 } } .
The third bag contains the second bag plus 2 balls, having total of 5 balls: { { 1 , { 2 } } , 2 } .
Finally, the fourth bag contains the third bag plus 2 balls, having total of 7 balls: { { { 1 , { 2 } } 2 } , 2 } .
Therefore, we can use up to 4 bags to contain distinct number of balls in every bag.