Back to catalogue
PuzzlesRecreational mathematicsSolved

Tower of Hanoi

Move a stack of discs between three pegs under a simple set of rules.

Problem statement

With n discs on one peg, moving one disc at a time and never placing a larger disc on a smaller one, what is the minimum number of moves to transfer the whole stack?

In plain language

Move a stack of discs one at a time without putting a big one on a small one. The moves double plus one whenever you add a disc.

How it came about

Edouard Lucas published the puzzle in 1883 with a story about monks moving sixty four golden discs. The story is folklore, but the recursion it illustrates became a standard teaching example.

Details
Originator
Édouard Lucas
Proposed
1883
Prize
None recorded
Editorial status
Solved
Monetary award
None recorded
What this status means

A solution has been accepted by the relevant expert community.

Keywords and what they mean
recursionDefining something in terms of a smaller version of itself.
combinatoricsCounting and arranging discrete objects.
puzzleA self contained challenge with a definite answer.
Sources (1)
Proof sketch

Move the top n-1 discs to the spare peg, move the largest disc to the target, then move the n-1 discs onto it. This gives T(n) = 2T(n-1) + 1 with T(1) = 1, so T(n) = 2^n - 1 moves.

What a machine check proves ->

Tracking history
See all tracking updates ->
Editorial note

The minimum is 2^n - 1 moves. The recursive solution is a standard example in algorithm design.

Found an error or a missing source? Open a public correction thread ↗

Public discussion
All public threads ↗

Comments are public and need a GitHub account. A comment does not change the editorial status of this entry. For a claimed proof, link the manuscript, its date and the step you believe is new.

Start a public thread ↗How claims are handled ->

If the thread does not load, open it on GitHub ↗

Keep exploring

More in Puzzles

View discipline ->
PuzzlesCash awardPartial

The Bitcoin puzzle transaction

A 2015 transaction hid coins behind keys drawn from steadily larger search ranges.

PuzzlesCash awardOpen

Bitcoin puzzle 71

A key hidden in a 71 bit range, with no public key exposed.

PuzzlesCash awardSolved

Bitcoin puzzle 135

A large lot with an exposed public key that was claimed in 2026.