1000 Coins and 10 Bags

Puzzles:
How will u divide 1000 one Rs. Coins in ten bag so that u can give any amount between 1-1000 by just giving the bags without changing the no of coins in each bag.

Solution:

You set the no. of coins as powers of 2 except for the last bag where you just place whatever remains.
Bag 1 = 1 coin
Bag 2 = 2 coins
Bag 3 = 4 coins
Bag 4 = 8 coins
Bag 5= 16coins
Bag 6= 32coins
Bag 7=64 coins
Bag 8= 128 coins
Bag 9= 256 coins
Bag 10= 488 coins ( If the total no = 1024 coins this should be 512)

Now any number from 1 to 1000 could be obtained by combining these bags. 
Notice bag #10 is a little short of 2*256, or 512. That’s because you only have 1000 coins. The previous 9 bags have 511 coins in total, leaving only 489 for bag 10.

Anyway, you can dispense any amount of coins from 1 – 1000 by just choosing bags here.

Try any number: 617. Bag #10 + bag #8