Magic Knight's Tours
A knight visits every square once, and the step numbers make every row and column add to 260.
Intermediate Olympiad · Senior · Junior
The Rajah of Mysore (1852). Step 1 of 64.
What the numbers mean
The number in a square is the step on which the knight landed there. The move from to is one knight move, so following traces the whole tour.
While the knight is still jumping, a row or column total counts only the numbers already placed on that line. It can reach 260 only after the knight has visited all eight squares of that line.
Why the total is 260
These squares use each whole number from 1 to 64 once. Added together they make
There are eight rows. If they share that total equally, each row is
The same arithmetic fixes the columns. On an board filled with the numbers from 1 to , equal lines must each add to . Here , so the total is 260.
That formula says what the lines must equal if they agree. It does not make a tour magic by itself. Almost every knight's tour scatters the large and small numbers, and the lines come out different. These two tours are special: the large and small steps are balanced across every row and every column.
Closed and open
After step 64, the Rajah of Mysore's knight can still move to the square numbered 1. The tour is closed: it could go on forever. Carl Jaenisch's step 64 is not a knight move from 1, so that tour is open. The row and column sums do not depend on whether the tour closes.
The diagonals
The two long diagonals are different.
- The Rajah of Mysore: 208 and 312.
- Carl Jaenisch: 228 and 264.
So these tours are sometimes called semi-magic: every row and every column matches, and the diagonals do not. On an ordinary chessboard that is as far as a knight's tour can go. A complete computer search, finished on 5 August 2003, found 140 tours whose rows and columns are all 260. None of them makes both main diagonals 260 as well.
A short history
Knight's tours are much older than the question of equal sums. Euler studied them mathematically in 1759.
Asking the visit numbers to make every row and column the same total is a nineteenth-century puzzle. William Beverley published the first such tour in Europe, in the Philosophical Magazine of April 1848.
The closed tour in the board above is credited to Krishnaraja Wodeyar III, the Rajah of Mysore. It is dated 31 July 1852, and he had it printed on silk. It was not widely known in Europe until the twentieth century. Édouard Francony found the same tour independently in 1882.
The open tour was published by Carl Jaenisch of St Petersburg in 1862, in his treatise on the mathematics of chess, Traité des applications de l'analyse mathématique au jeu des échecs. He had already published other tours of this kind in 1859. The drawing here is one of his; he published several.