Apply recurrence to Towers of Hanoi (#726)

Apply recurrence to Towers of Hanoi (#726)

Use Tn=2Tn−1+1T_n = 2T_{n-1} + 1.