[math-fun] Tower of Hanoi problem