Johny has entrusted John with 1000 Gold Coins. They are to be kept safely in 10 sealed bags. John should give Johny any number of coins on demand without opening the bags. How should the gold coins be devided and kept in sealed bags?
Gold Coins in the first bage = 1
Gold Coins in the second bag = 2
Gold Coins in the third bag = (2+2)= 4
Gold Coins in the fourth bag = (4+4)= 8
Gold Coins in the fifth bag = (8+8)= 16
Gold Coins in the sixth bag = (16+16)= 32
Gold Coins in the seventh bag = (32+32)= 64
Gold Coins in the eighth bag = (64+64)= 128
Gold Coins in the ninth bag = (128+128) 256
The total gold coins in the bag upto 9 =
1+2+4+8+16+32+64+128+256=511
The Gold coins in the tenth bag = 1000-511 = 489
For exaple,If 300 coins are requested he can give the bags such as 256+32+8+4. In this way any number of coins can be given.