Source: http://maths-au-quotidien.fr/lycee/docs/tours_de_hanoi.pdf