Problem:
\$ 100\$ 0.01\$ 0.05\$ 0.10\$ 0.25 each). Prove that she can split her coins into two piles, each with total value exactly \$ 50$.
Problem:
\$ 100\$ 0.01\$ 0.05\$ 0.10\$ 0.25 each). Prove that she can split her coins into two piles, each with total value exactly \$ 50$.
Solution:
First, observe that if there are pennies in the mix, there must be a multiple of 5 pennies (since ), so we can treat each group of 5 pennies as nickels and reduce the problem to the case of no pennies, treated below.
Indeed, suppose there are no pennies and that we are solving the problem with only quarters, dimes, and nickels. So we have (or equivalently, ), where is the number of quarters, is the number of dimes, and is the number of nickels. Notice that if , , or , then we can just take a subset of 200 quarters, 500 dimes, or 1000 nickels, respectively, and make that our first pile and the remaining coins our second pile.
Thus, we can assume that , , . Now if there are only quarters and dimes, we have , so there must be nickels in the mix. By similar reasoning, there must be dimes and quarters in the mix.
So to make our first pile, we throw all the quarters in that pile. The total money in the pile is at most , so now,
- if possible, we keep adding in dimes until we get an amount equal to or greater than . If it is , then we are done. Otherwise, it must be since the total money value before the last dime is either or . In that case, we take out the last dime and replace it with a nickel, giving us .
- if not possible (i.e. we run out of dimes before reaching ), then all the quarters and dimes have been used up, so we only have nickels left. Of course, our money value now has a hundredth's place of 5 or 0 and is less than , so we simply keep adding nickels until we are done.
Solution:
First, observe that if there are pennies in the mix, there must be a multiple of 5 pennies (since ), so we can treat each group of 5 pennies as nickels and reduce the problem to the case of no pennies, treated below. Similarly, we can treat each group of 2 nickels as dimes, and reduce the problem to the case of at most one nickel. We have two cases:
Case 1. There are no nickels. Then, either the dimes alone total to at least , in which case \$ indy can form a pile with \$ 50 worth of dimes and a pile with the rest of the money, or the quarters alone total to at least \$ 50\$ indy can form a pile with worth of quarters and a pile with the rest of the money.
Case 2. There is exactly one nickel. By examining the value of the money modulo , we find that there must be at least two dimes. Then, we treat the nickel and two dimes as a quarter, and reduce the problem to the previously solved case.