Math
Tower of Hanoi
Solve the Tower of Hanoi with a visible recursive move sequence or legal manual moves. Compare your move count with the exact minimum 2^n − 1.

Try this
Follow the recursive solution or click a source peg and a destination peg for a legal manual move. Larger discs cannot cover smaller ones. Reset before resuming the recorded solution.
Equations used in the module
Equations T(n) = 2 T(n−1) + 1; T(0) = 0 T(n) = 2^n − 1 Move n−1 to spare; move largest; move n−1 to target


