Professional Documents
Culture Documents
Tower of Hanoi (And Beyond)
Tower of Hanoi (And Beyond)
The Tower of
Hanoi
5 Tower
A
Illegal Move
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
3 Tower
A
Demo 3
tower
The Tower of
Hanoi
3 Tower
The Tower of
Hanoi
3 Tower
The Tower of
Hanoi
3 Tower
The Tower of
Hanoi
3 Tower
The Tower of
Hanoi
3 Tower
The Tower of
Hanoi
3 Tower
The Tower of
Hanoi
3 Tower
7 Moves
Investigation
The Tower of
Hanoi
4 Tower
A
4 Tower show
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
The Tower of
Hanoi
4 Tower
15
Moves
The Tower of
Hanoi
5 Tower
A
5 Tower show
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
The Tower of
Hanoi
5 Tower
31
Moves
Moves
15
31
63
127
255
64
264? -1
2n?- 1
Un = 2Un-1 + 1
This is called a
recursive function.
4294967296
x
4294967296
2 5 7 6 9 8 0 3 7 7 6
3 8 6 5 4 7 0 5 6 6 4 0
8 5 8 9 9 3 4 5 9 2 0 0
3 0 0 6 4 7 7 1 0 7 2 0 0 0
2 5 7 6 9 8 0 3 7 7 6 0 0 0 0
3 8 6 5 4 7 0 5 6 6 4 0 0 0 0 0
1 7 1 7 9 8 6 9 1 8 4 0 0 0 0 0 0
3 8 6 5 4 7 0 5 6 6 4 0 0 0 0 0 0
0 5 8 9 9 3 4 5 9 2 0 0 0 0 0 0 0 0
8
1 7 1 7 9 8 6 9 1 8 4 0 0 0 0 0 0 0 0 0
264 1 =
1 8 4 4 6 7 4 4 0 7 3 7 0 9 5 5 1 6 1 65
Trillions
Billions
Millions
18446744073709551615
Moves needed to transfer all 64 discs.
How long would it take if 1 disc/second was moved?
264 1
5.85x 1011 years
(60x 60x 24x 365)
585 000 000 000 years
Seconds in a year.
Moves
15
31
63
127
255
2n - 1
This is called a
recursive function.
Un = 2Un-1 + 1
2
1
3
5
Points
Regions
5
n
16
2n-1
31
A counter example!
Historical Note
Edouard Lucas
(1842-1891)
Fn
(1 5)n (1 5)n
(1180-1250)
2n 5
Lucas also has his own related sequence named after him: 2,1,3,4,7,11, He
went on to devise methods for testing the primality of large numbers and
in 1876 he proved that the Mersenne number 2127 1 was prime. This
remains the largest prime ever found without the aid of a computer.
2127 1 = 170,141,183,460,469,231,731,687,303,715,884,105,727
Histori
cal
Note
Kings
Chessboard
16
32
64
nth
2n-1
64
-1
Large
numbers
The numbers given below are the original (British) definitions which are
based on powers of a thousand. They are easier to remember however if you
write them as powers of a million. They are mostly obsolete these days as the
American definitions (smaller) apply in most cases.
Million
Billion*
Trillion
Quadrillion
1 000 0004 = 1 000 000 000 000 000 000 000 000 = 10 24
Quintillion
1 000 0005 = 1 000 000 000 000 000 000 000 000 000 000 = 10 30
Sextillion
Septillion
Googol 10
100
10100
Googolplex 10
Upper limit
of a
scientific
calculator.
* The American billion is = 1 000 000 000 and is the one in common usage. A
world population of 6.4 billion means 6 400 000 000.
Edouard Lucas
(1842-1891)
2127 1 = 170 141 183 460 469 231 731 687 303 715 884 105 727
One hundred and seventy sextillion,
one hundred and forty one thousand, one hundred and eighty three quintillion,
four hundred and sixty thousand, four hundred and sixty nine quadrillion,
two hundred and thirty one thousand, seven hundred and thirty one trillion,
six hundred and eighty seven thousand, three hundred and three billion,
seven hundred and fifteen thousand, eight hundred and eighty four million,
one hundred and five thousand, seven hundred and twenty seven.
M
Q
B
T
41 183 460 385 231 191 687 317 716 884
Q
Q
M
T
B
57 786 765 432 167 876 564 875 432 897 675 432
Q
Q
T
S
M
B
9 412 675 987 453 256 645 321 786 765 786 444 329 576
Q
S
Q
T
M
B
S
678 876 543 786 543 987 579 953 237 896 764 345 675 876 453 231
Googol 10
100
Upper limit
of a
scientific
calculator.
10 000 000 000 000 000 000 000 000 000 000 000 000 000
000 000 000 000 000 000 000 000 000 000 000 000 000 000
000 000 000 000 000 000.
1 followed by 100 zeros
The googol was introduced to the world by the American
mathematician Edward Kasner (1878-1955). The story goes that
when he asked his 8 year old nephew, Milton, what name he
would like to give to a really large number, he replied googol.
Kasner also defined the Googolplex as 10googol, that is 1 followed
by a googol of zeros.
Do we need a number this large? Does it have any physical meaning?
Google
Googol 10100
10 000 000 000 000 000 000 000 000 000 000 000 000 000
000 000 000 000 000 000 000 000 000 000 000 000 000 000
000 000 000 000 000 000.
1 followed by 100 zeros
We saw how big 264 was when we converted that many seconds
to years: 585 000 000 000 years. What about a googol of
seconds? Who many times bigger is a googol than 2 64? Use your
scientific calculator to get an approximation.
100
10
80
5.4
x
10
264
Google
Googol 10
100
Upper limit
of a
scientific
calculator.
5.98x 1027
51
3.58
x
10
Googol
24
1.67x 10
The total number of a atoms in the
universe has been estimated at 1080.
Hydrogen atom
Mass = 1.67 x 10-24g
1 2
1 2 3
1, 2
3, 1, 2
2, 1
2
4, 3, 1, 2
4, 1, 2, 3
4, 2, 3, 1
1, 3, 2
1, 2, 3
3, 4, 1, 2
1, 4, 2, 3
2, 4, 3, 1
3, 1, 4, 2
1, 2, 4, 3
2, 3, 4, 1
3, 2, 1
3, 1, 2, 4
1, 2, 3, 4
2, 3, 1, 4
4, 1, 3, 2
4, 3, 2, 1
4, 2, 1, 3
1, 4, 3, 2
3, 4, 2, 1
2, 4, 1, 3
1, 3, 4, 2
1, 3, 2, 4
3, 2, 4, 1
3, 2, 1, 4
2, 1, 4, 3
2, 3, 1
2, 1, 3
Objects
arrangements
n!
2x1
3x2x1
24
4x3x2x1
120
5x4x3x2x1
Factorials
1 2 3 4
2, 1, 3, 4
n! is read as n factorial).
1 2 3 4 5
120
8! = 40 320
16 3 2 13
5 10 11 8
9 6
7 12
4 15 14 1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
How many arrangements are there
for the letters of the Alphabet?
26! = 4 x 1026
2.4 x 1018
30!
2.7 x 1032
40!
8.2 x 1047
50!
3.0 x 1064
52!
8.1 x 1067
60!
8.3 x 1081
69!
1.7 x 1098
70!
Error
A Googolplex 10
googol
10
106
10
10
1012
10
10100
18
1030
1036
10
10
10
42
10
Googolplex
And
Finally
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000.
10100
A Googolplex 10
10100
96
Pages needed
5
x
10
2x103
The End!
Tower of Hanoi
Confirm that you can move a 3 tower to another peg in a minimum
of 7 moves.
Investigate the minimum number of moves required to move
different sized towers to another peg.
Try to devise a recording system that helps you keep track of
the position of the discs in each tower.
Try to get a feel for how the individual discs move. A good way
to start is to learn how to move a 3 tower from any peg to
another of your choice in the minimum number of 7 moves.
Record moves for each tower, tabulate results look for patterns
make predictions (conjecture) about the minimum number of
moves for larger towers, 8, 9, 10,64 discs. Justification is
needed.
How many moves for n disks?
2
1
Points
2
3
4
5
n
3
5
Regions
57 786 765 432 167 876 564 875 432 897 675 432
9 412 675 987 453 256 645 321 786 765 786 444 329 576
678 876 543 786 543 987 579 953 237 896 764 345 675 876 453 231