A gentleman decided to treat a few children in the following manner. He gives half of his total stock of toffees and one extra to the first child, and then the half of the remaining stock along with one extra to the second and continues giving away in this fashion. His total stock exhausts after he takes care of 5 children. How many toffees were there in his stock initially?
Correct Answer: 62
Let the initial number of chocolates be 64x.
First child gets 32x+1 and 32x-1 are left.
2nd child gets 16x+1/2 and 16x-3/2 are left
3rd child gets 8x+1/4 and 8x-7/4 are left
4th child gets 4x+1/8 and 4x-15/8 are left
5th child gets 2x+1/16 and 2x-31/16 are left.
Given, 2x-31/16=0=> 2x=31/16 => x=31/32.
.'. Initially the Gentleman has 64x i.e. 64*31/32 =62 chocolates.