Professional Documents
Culture Documents
Background
Towers of Hanoi is one of the most known and interesting puzzles. The characteristic of the
game that intrigues me is that Towers of Hanoi is a game for all a
Step 1
Step 2
Step 1
Step 0
Step 3
Step 2
Step 0
Step 1
Step 2
Step 4
Step 6
Step 3
Step 5
Step 7
Observations
Although the investigation of the Towers of Hanoi puzzle is at an early stage, we can make
some very important observations. While drawing the figure, I realized that each opposite steps
are mirror images of each other. This observation stands for all three cases. In the first case,
step 0 and step 1 are mirror images. In the second case, step 0 is mirror image with step 3 and
step 1 with step 2. Last, in the third case, the mirror image pairs are 0-7, 1-6, 2-5, 3-4. In this
way, we can guess that all numbers of minimum steps will be odd numbers, so that all figures
(number of steps + 1) have a mirror image. If we make this observation more general, we reach
conclusion that there is one unique move, which is obviously the middle one and the others are
opposite to each other. In case three, we can see that we reach mirror images by making
opposite moves. In order, to move from step 6 to step 7, we have to do the opposite move of
the one that we did when moving from step 0 to step 1. This also stands for the rest mirror
images. However, since the moves are 7, there is a unique move, the middle one, so in this case
the move number 4. If we pay attention to the middle moves in all three cases, they are exactly
the same, as the biggest disc moves from the first pole to the last. As we go from case 1 to case
3, moves increase, steps increase, but the unique move remains constant and equal to 1.
I will
draw
the
figures
and
add
them
Number of discs
Minimum
Number of Moves
Unique Move(s)
Arrangement Of
Moves
1
2
3
4
5
1
3
7
15
31
0
1
3
7
15
1
1
1
1
1
0+1+0
1+1+1
3+1+3
7+1+7
15+1+15
In order to find the pattern of the minimum number of moves I added a best fit line. However,
this attempt wasnt particularly successful. This is kind of normal since the minimum number of
moves doesnt increase uniformly but in an increasing rate. As a result, in my opinion an
exponential would fit better.
In the previous graph, starting with the least possible base of an exponential function
we can see that the curve increases exactly with the same rate as the points. However there is a
constant different between all points and the curve. So, we can try to transform the curve by 1
unit downwards and see the result.
We can see that the function fits perfectly to our points and so the function that we can use to
calculate the minimum number of moves for each number of discs is M(x) = 2x 1.
Suppose that it is also valid for k, M(k) = 2k 1 , we will prove that it is also valid for the next
term k + 1.
M(k+1) = 2k+1 1
M(k+1) = 2 x M(k) + 1
M(k+1) = 2(2k-1) + 1
M(k+1) = 2 x 2k 2 + 1
M(k+1) = 2k+1 1
The legend
The legend of Towers of Hanoi is very interesting. It is said that in the beginning of time, the
priests of the Hindu Temple were given the Towers of Hanoi puzzle with 64 discs! So, the
legend says that when the priests complete the Towers of Hanoi puzzle with 64 discs, the world
will end. Using the formula found, we can calculate the minimum number of moves that are
required to complete the purpose.
264 1 = 18,446,744,073,709,551,615
To understand the magnitude of this number. This number in second is a lot more that the life of earth.