The Tower of Hanoi

2 comments

  1. I have always liked the fact that once you know the order in which to move the disks it is easy to extend the pattern. Assume there are four disks and that we call the smallest disk A,the next one B, the next one C and, finally, the largest one D. Then we have to move the smallest one first so we have the trivial sequence A. The rule to extend the sequence goes as follows: “Double the sequence and replace the last letter with the next one in the alphabet”. In our case the doubling of the sequence gives “AA” and replacing the last letter gives “AB”. So, possibly not surprisingly, we move disk B second.
    A re-application of the whole rule gives the sequence “ABAC” so the next two disks to move are A and C. The next application of the rule gives the sequence “ABACABAD” which matches the solution for three disks shown above. The final sequence for four disks is, therefore, “ABACABADABACABAE”.
    The divisions of an inch on a standard school ruler show a remarkably similar pattern.

    Like

Leave a comment