Raj, an artifacts dealer, has to sell artifacts to the other corner of the city. He has three bags, with each bag containing 30 artifacts which totals to 90 artifacts. He is carrying all the three bags with him.
Now in his way are 30 checkpoints. Each checkpoint being a few kilometers away from each other. He has to pass through all 30 checkpoints. While crossing through a checkpoint he will have to give one artifact from each bag, otherwise he will not be allowed to pass through the checkpoint.
There is no other way except the way in which the 30 checkpoint exist.
After passing through all the checkpoints, how many artifacts is he left with?
Stipulation and Assumptions: If required the bags can be disposed off. Transfer of artifacts from one bag to another is allowed. No other ways are possible to save the artifacts.
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.
What Raj will try to do first is that, to get rid of the bags one by one as soon as he can. For this he, after passing through each check point will transfer artifacts from one bag to other bag, like
After passing through f i r s t checkpoint. Raj will be left with 2 9 artifacts in each bag. He will transfer two artifacts from one bag to the other two bags, which makes 3 0 artifacts in two bag, and 2 7 in the other.
Like this 3 artifacts gets subtracted from one bag after every checkpoint.
That means, after the t e n t h checkpoint one bag will become empty which he can dispose. Raj will be left with only two bags now(each with 30 artifacts). He will repeat the process again and after the 2 5 t h checkpoint he will be left with one bag only with 30 artifacts.
After crossing the 3 0 t h checkpoint he is left with 2 5 artifacts.