Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

The Tower of Hanoi

From ZeroWiki
Revision as of 05:28, 7 February 2021 by imported>Unknown
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Recurrent Problems - The Tower of Hanoi

T<sub>n</sub> is the minimum number of moves that will transfer n disks from one peg to another under Lucas's rules.

small cases

T<sub>0</sub> = 0, T<sub>1</sub> = 1, T<sub>2</sub> = 3 .....

mathematical expression

T<sub>0</sub> = 0, T<sub>n</sub> = 2T<sub>n - 1</sub> + 1, for n > 0

closed form

T<sub>n</sub> = 2<sup>n</sup> - 1, for n >= 0