From the book "Concrete mathematics", I tried to solve the following warmup exercise:
Find the shortest sequence of moves that transfers a tower of n disks from the left peg A to the right peg B, if direct moves between A and B are disallowed. (Each move must be to or from the middle peg. As usual, a larger disk must never appear above a smaller one.)
By resolving this manually I came up with the following table:
| n | f (n) |
|---|---|
| 0 | 0 |
| 1 | 2 |
| 2 | 8 |
| 3 | 26 |
| 4 | 80 |
And I came with this formula:
f(0) = 0
f(1) = 2
f(n) = 4f(n-1)-3f(n-2) for n >=2
Now, my problem comes when I try to perform the "Math Induction", according to the steps:
Stage 1 : Write down what the proposition asserts for the case n = k. This is what you are going to assume. It is often called the inductive hypothesis.
Stage 2 Write down what the proposition asserts for the case n = k +1. This is what you have to prove. Keep this clearly in mind as you go.
Stage 3 Prove the statement in Stage 2, using the assumption in Stage 1.
I do not have any idea of how to do this, I tried replacing n for n+1 but that does not provide any hint.
My only experience with Math Induction was the "Josephus problem" on the same book.
Note: I am not 100% sure my hypotesis is 100% correct; I found on the internet a different answer, but that's what math induction is for, right? So, I'd like to perform it on my formula, even if that proves am wrong.
What I want is to perform Math Induction on my own recurrence/hypothesis, even if this proves my answer is incorrect, that is the purpose of these warmup exercises.
– Eduardo Jul 14 '23 at 15:37