Mathematical Induction II
The Towers of Hanoi is a game played with a set of donut shaped disks stacked on one of three posts. The disks are graduated in size with the largest on the bottom. The object of the game is to transfer all the disks from post B to post A moving one disk at a time without placing a larger disk on top of a smaller one. What is the minimum number of moves required when there are n disks?
In order to visualize the most efficient procedure for winning the game consider the following:
Let mn be the number of moves required to transfer n disks per the rules in the most efficient manner possible from one post to another. Step 1 requires moving n – 1 disks or mn – 1 moves. Step 2 requires 1 move. Step 3 requires mn – 1 moves again. We have then,
|
mn |
= mn – 1 + 1 + mn – 1, for n ³ 2 |
|
|
= 2mn – 1 + 1 |
Because only one move is required to win the game with only one disk, the initial condition for this sequence is m1 = 1. Now we can determine the number of moves required to win the game, in the most efficient manner possible, for any number of disks.
|
m1 |
= 1 |
|
m2 |
= 2(1) + 1 = 3 |
|
m3 |
= 2(3) + 1 = 7 |
|
m4 |
= 2(7) + 1 = 15 |
|
m5 |
= 2(15) + 1 = 31 |
|
m6 |
= 2(31) + 1 = 63 |
|
m7 |
= 2(63) + 1 = 127 |
Unfortunately, this recursive method of determining the number of moves required is exhausting if we wanted to solve say a game with 69 disks. We have to calculate each previous term before we can determine the next.
Lets look for a pattern that may be useful in determining an explicit formula for mn. In looking for patterns it is often useful to forego simplification of terms. mn = 2mn – 1 + 1, m1= 1
|
m1 |
= 1 |
|
m2 |
= 2(1) + 1 = 2 + 1 |
|
m3 |
= 2(2 + 1) + 1 = 22 + 2 + 1 |
|
m4 |
= 2(22 + 2 + 1) + 1 = 23 + 22 + 2 + 1 |
|
m5 |
= 2(23 + 22 + 2 + 1) + 1 = 24 + 23 + 22 + 2 + 1 |
|
m6 |
= 2(24 + 23 + 22 + 2 + 1) + 1 = 25 + 24 + 23 + 22 + 2 + 1 |
|
m7 |
= 2(25 + 24 + 23 + 22 + 2 + 1) + 1 = 26 + 25 + 24 + 23 + 22 + 2 + 1 |
So we guess an explicit formula:
mk = 2k –1 + 2k – 2 + … + 22 + 2 + 1.
Recall Theorem 4.2.3 Sum of a Geometric Sequence:
For any real number r except 1, and any integer n ³ 0,
