Suppose the Tower of Hanoi rules are changed so that stones may only be transferred to an adjacent clearing in one move. Let In be the minimum number of moves required to transfer tower from clearing A to clearing C? For example, it takes two moves to move a one stone tower from A to C: One move from A to B, then a second move from B to C. So I1 = 2

Respuesta :

Answer:

[tex]l_n=3^n-1[/tex]

Step-by-step explanation:

We will prove by mathematical induction that, for every natural n,  

[tex]l_n=3^n-1[/tex]

We will prove our base case (when n=1) to be true:

Base case:

As stated in the qustion, [tex]l_1=2=3^1-1[/tex]

Inductive hypothesis:  

Given a natural n,  

[tex]l_n=3^n-1[/tex]

Now, we will assume the inductive hypothesis and then use this assumption, involving n, to prove the statement for n + 1.

Inductive step:

Let´s analyze the problem with n+1 stones. In order to move the n+1 stones from A to C we have to:

  1. Move the first n stones from A to C ([tex]l_n[/tex] moves).
  2. Move the biggest stone from A to B (1 move).
  3. Move the first n stones from C to A ([tex]l_n[/tex] moves).
  4. Move the biggest stone from B to C (1 move).
  5. Move the first n stones from A to C ([tex]l_n[/tex] moves).

Then,

[tex]l_{n+1}=3l_n+2[/tex].

Therefore, using the inductive hypothesis,

[tex]l_{n+1}=3l_n+2=3(3^n-1)+2=3^{n+1}-3+2=3^{n+1}-1[/tex]

With this we have proved our statement to be true for n+1.    

In conlusion, for every natural n,

[tex]l_n=3^n-1[/tex]