Recitation 18
In section D, I discussed the following puzzle.
Suppose there are 1000 coins. You can split them into two piles and calculate the product of the number of coins in each pile. And then for each pile, keep splitting it into two smaller piles and calculate the product of the number of coins in each smaller pile. And keep going until every pile has only one coin. Prove the sum of the products created along the way is independent from how you split the coins.
We are going to prove that if we start with coins, then the sum of the products is always . And we prove this by induction.
Base case: if , then the sum is $$. On the other hand, .
Induction step: Suppose for all , if we start with coins, then the sum of the products is always . Now we have coins. And assume at the first we split them into coins and coins. The product we gain on the first split is . For the first pile of coins, by the induction hypothesis, the sum the products we are going to get is . Similarly, for the second pile, the sum is going to be . Thus the total sum is .