2.8 Math Induction
Induction is one of the most powerful and commonly-used proof techniques in mathematics, especially discrete mathematics. Many problems that involve integers can be solved using induction. The general steps for proof by induction are the following:
- State that the proof uses induction and define an appropriate predicate .
- Prove the base case , or any other smallest number for the predicate to be true.
- Prove that implies for every integer . Alternatively, in a strong induction argument, you prove that and together imply .
In most cases, the real difficulty lies not in the induction step, but to formulate the problem as an induction problem and come up with the appropriate predicate . The simplified version of the problem can often help you identify .
Coin split problem
You split 1000 coins into two piles and count the number of coins in each pile. If there are coins in pile one and coins in pile two, you multiple by to get . Then you split both piles further, repeat the same counting and multiplication process, and add the new multiplication results to the original. For example, you split to and , to and , then the sum is . The same process is repeated until you only have piles of 1 stone each. What is the final sum? (The final 1’s are not included in the sum.) Prove that you always get the same answer no matter how the piles are divided.
28Solution: Let be the number of the coins and be the final sum. It is unlikely that a solution will jump to our mind since the number is a large number. If you aren’t sure how to approach the problem, it never hurts to begin with the simplest cases and try to find a pattern. For this problem, the base case has . Clearly the only split is and the final sum is 1. When , the first split is and we have and the 2-coin pile will further give an extra multiplication result 1, so the final sum is 3. This analysis also gives the hint that when coins are split into and coins, the total sum will be . 4 coins can be split into or . For either case we can apply and yields the same final sum 6.
Claim: For coins, independent of intermediate splits, the final sum is . 17
So how do we prove it? The answer should be clear to you: by strong induction. We have proved the claim for the base cases . Assume the claim is true for coins, we need to prove that it holds for coins as well. Again we apply the equation . If coins are split into coins and coins, we have
So indeed it holds for as well and is true for any . Applying the conclusion to , we have .
Chocolate bar problem
A chocolate bar has 6 rows and 8 columns (48 small squares). You break it into individual squares by making a number of breaks. Each time, break one rectangle into two smaller rectangles. For example, in the first step you can break the chocolate bar into a one and a one. What is the total number of breaks needed in order to break the chocolate bar into 48 small squares?
29Solution: Let be the number of the rows of the chocolate bar and be the number of columns. Since there is nothing special for the case and , we should find a general solution for all and . Let’s begin with the base case where and . The number of breaks needed is clearly 0. For and , the number of breaks is ; similarly for and , the number of breaks is . So for any and , if we break the chocolate into rows first, which takes breaks, and then break each row into small pieces, which takes breaks, the total number of breaks is . If we breaks it into columns first and then break each column into small pieces, the total number of breaks is also . But is the total number of breaks always for other sequences of breaks? Of course it is. We can prove it using strong induction.
We have shown the number of breaks is for base cases and . To prove it for a general case, let’s assume the statement is true for cases where and . If the first break is along a row and it is broken into two smaller pieces and , then the total number of breaks is . Here we use the results for . Similarly, if it is broken into two pieces and , the total number of breaks is . So the total number of breaks is always in order to break the chocolate bar into small pieces. For the case and , the number of breaks is 47.
Although induction is the standard approach used to solve this problem, there is actually a simpler solution if you’ve noticed an important fact: the number of pieces always increases by 1 with each break since it always breaks one piece into two. In the beginning, we have a single piece. In the end, we will have pieces. So the number of breaks must be .
Race track
Suppose that you are on a one-way circular race track. There are gas cans randomly placed on different locations of the track and the total sum of the gas in these cans is enough for your car to run exactly one circle. Assume that your car has no gas in the gas tank initially, but you can put your car at any location on the track and you can pick up the gas cans along the way to fill in your gas tank. Can you always choose a starting position on the track so that your car can complete the entire circle? 18
30Solution: If you get stuck as to how to solve the problem, again start with the simplest cases () and consider using an induction approach. Without loss of generality, let’s assume that the circle has circumference of 1. For , the problem is trivial. Just start at where the gas can is. For , The problem is still simple. Let’s use a figure to visualize the approach. As shown in Figure 2.4A, the amount of gas in can 1 and can 2, expressed as the distance the car can travel, are and respectively, so . The corresponding segments are and , so . Since and , we must have or ( and cannot both be true). If , we can start at gas can 1, which has enough gas to reach gas can 2, and get more gas from gas can 2 to finish the whole circle. Otherwise, we will just start at gas can 2 and pick up gas can 1 along the way to finish the whole circle.
The argument for also gives us the hint for the induction step. Now we want to show that if the statement holds for , then the same statement also holds for . As shown in Figure 2.4B, we have and for . So there must exist at least one , that has . That means whenever the car reaches , it can reach with more gas (For , it goes to instead). In other words, we can actually “combine” and to one gas can at the position of with an amount of gas (and eliminate the gas can ). But such combination reduces the problem to , for 31 which the statement holds. So the statement also holds for . Hence we can always choose a starting position on the track to complete the entire circle for any .
There is also an alternative approach to this problem that provides a solution to the starting point. Let’s imagine that you have another car with enough gas to finish the circle. You put that car at the position of a randomly chosen gas can and drive the car for a full circle. Whenever you reach a gas can (including at the initial position), you measure the amount of gas in your gas tank before you add the gas from the can to your gas tank. After you finish the circle, read through your measurement records and find the lowest measurement. The gas can position corresponding to the lowest measurement should be your starting position if the car has no gas initially. (It may take some thinking to fully understand this argument. I’d recommend that you again draw a figure and give this argument some careful thoughts if you don’t find the reasoning obvious.)