Nepedia
Back to Discover
Independent Reader
🔢

Tower of Hanoi

math Maturity 7-9 Next article →

The Tower of Hanoi is a famous math puzzle.

Tower of Hanoi
Tower of Hanoi

It uses three rods and several disks. The disks have different sizes. They start in a stack on one rod. The smallest disk is at the top.

Tower of Hanoi 4
Tower of Hanoi 4

Your goal is to move the whole stack to another rod. You must follow two main rules. First, you can move only one disk at a time. Second, you cannot put a large disk on top of a smaller one.

A man named Édouard Lucas shared this game in 1883. Some old legends say monks move golden disks in a temple. These stories say the world ends when the task is done. If a tower had 64 disks, it would take a very long time. It would take 585 billion years to finish!

Iterative algorithm solving a 6 disks Tower of Hanoi
Iterative algorithm solving a 6 disks Tower of Hanoi

Math helps us find the best way to play. For a tower with three disks, you need seven moves. You can use a method called recursion. This means you break a big problem into smaller parts. You solve the small parts to finish the big puzzle.

175 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (8)
File:Tower of Hanoi.jpeg
Tower of Hanoi.jpeg
File:Tower of Hanoi 4.gif
Tower of Hanoi 4.gif
File:UniversumUNAM34.JPG
UniversumUNAM34.JPG
File:Iterative algorithm solving a 6 disks Tower of Hanoi.gif
Iterative algorithm solving a 6 disks...
File:tower_of_hanoi_graph.svg
tower_of_hanoi_graph.svg
File:Hanoi-Graph-7.svg
Hanoi-Graph-7.svg
File:BTOHIC.jpg
BTOHIC.jpg
File:BTOHFC.jpg
BTOHFC.jpg
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.