You have a wallet with four kinds of coins with the value of \$1, \$5, \$10, and \$25. Every kind of coin is unlimited. Every time you take money from the wallet, you have an equal chance of getting one of these coins, i.e., \$1, \$5, \$10, or \$25.
Now you need to buy something that costs $x$ dollar, and you keep taking coins out of your wallet until you have enough money to buy. When $x$=30, what is the expected value of money left in your hand after your purchase?
i.e., if you take out a \$25 the first time, you have to take more coins since the price is \$30. And suppose you get a \$10 in the second time, you can stop. You pay \$30 and you have \$5 left in your hand.
How about when $x$=300, $x$=3000000?