ArticleslgStudy

physics

Magnetic Tower of Hanoi

Magnetic Tower of Hanoi is a physics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Magnetic Tower of Hanoi rather than just read about it. In short: The Magnetic Tower of Hanoi (MToH) puzzle is a variation of the classical Tower of Hanoi puzzle (ToH), where each disk has two distinct sides, for example, with different colors "red" and "blue". The rules of the MToH puzzle are the same as the rules of the original puzzle, with the added constraints that each disk is flipped as it is moved, and that two disks may not be placed one on another if their touching sides…

Magnetic Tower of Hanoi — main illustration
Magnetic Tower of Hanoi — illustration

Key takeaways

  • Magnetic Tower of Hanoi belongs to physics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Magnetic Tower of Hanoi to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Magnetic Tower of Hanoi from memory before moving on to harder problems.

Reference excerpt

The Magnetic Tower of Hanoi (MToH) puzzle is a variation of the classical Tower of Hanoi puzzle (ToH), where each disk has two distinct sides, for example, with different colors "red" and "blue". The rules of the MToH puzzle are the same as the rules of the original puzzle, with the added constraints that each disk is flipped as it is moved, and that two disks may not be placed one on another if their touching sides have the same color. Each disk has a North and South pole, with similar poles repelling one another and opposite poles attracting one another. Magnets inside each disk physically prevent illegal moves.

One of the striking features of the classical ToH puzzle is its relation to the base 2: the minimum number of total moves required to solve the puzzle is 2n − 1 (where n is the number of disks), while the minimum number of moves made by disk k is 2k − 1 (disks are numbered bottom up so that k = 1 being the largest disk, and k = n being the smallest). It will be shown below that just as the original ToH puzzle is related to base 2, so the MToH is related to base 3, though in a more complex manner.

Origin Mathematically equivalent puzzles to certain variations of the MToH have been known for some time. For example, an equivalent puzzle to one of the colored variations of the MToH appears in Concrete Mathematics. In this puzzle moves are only allowed between certain posts, which is equivalent to assigning permanent colors to the posts (e.g. if two posts have the same permanent color assigned to them, then direct moves are not allowed between the two posts). The free (non-colored) MToH first appeared publicly on the internet around 2000 (though under the name of "Domino Hanoi") as part of a detailed review by the Mathematician Fred Lunnon of the different variations of the original Tower of Hanoi puzzle. The MToH was independently invented by the Physicist Uri Levy in the summer of 1984, who also coined the name and the analogy to magnetism. Dr Levy later published a series of papers dealing with the mathematical aspects of the MToH.

Puzzle description

The MToH puzzle consists of three posts labeled source (S), destination (D), and intermediate (I), and a stack of n different sized disks with each side of a disk having a different color, either Red or Blue. At the beginning of the puzzle the disks are stacked on the S post in order of decreasing size (i.e. the largest disk is at the bottom), and such that all disks have their Red side facing upwards. The objective of the puzzle (in its "basic" version) is to move the entire stack, one disk at a time, to the D post, maintaining the order from largest to smallest disk, but with the Blue sides facing upwards.

The rules governing the movement of the disks are as follows:

A larger disk cannot be laid on top of a smaller disk (as in the original ToH) When a disk is moved, it is flipped, i.e. the color that was facing up now faces down Two sides of different disks with the same color may not touch each other (for example, a disk with its Blue side facing downwards cannot be placed on top of a disk that has its Blue side facing upwards).

Puzzle solution for n = 2 and n = 3 In order to illustrate the rules of the MToH, and also show the route to a more general solution, it is useful to work through examples for n = 2 and n = 3. For the case of n = 2, four steps are required, as shown in the accompanying figure, compared to three steps in the n = 2 case of the original ToH. The extra step is required because after the second step the small disk cannot be moved directly from the I post to the D post, as this would mean that its Blue side would be facing downwards. Thus, an extra step is required to flip the color of the small disk, so that it can then be placed on the D post with its Blue side facing upwards.

For the n = 3 case, the solution involves the following steps:

Numbering the disks 1 to 3 from largest to smallest, one first moves disks 2 and 3 from the S post to the I post (four moves) This first stage is similar to the n = 2 puzzle described above, which also takes four moves, where the D and I posts are interchanged. However, it is not identical to the n = 2 puzzle due to the presence of the large disk on the S post, which "colors" it red. This means that a disk can only be placed on this post with its red side facing upwards.

Move disk 1 from S to D (one move) At this stage one might be tempted to again make use of the n = 2 puzzle, and try to move disks 2 and 3 from I to D in 4 moves. However, here again care is needed. Due to the presence of disk 1 on D, D is now "colored" Blue, i.e. another disk can be placed on it only if it has its Blue side facing up. Furthermore, with the n = 2 puzzle the disks have their red side facing upwards in the starting position, whereas here they have their blue sides facing upwards. Thus, this intermediate configuration is not equivalent to the n = 2 MToH. Instead, we proceed as follows:

Move disk 3 from I to D via S (2 moves) Move disk 2 from I to S (1 move) Move disk 3 from D to I (1 move) Move disk 2 from S to D (1 move) Move disk 3 from I to D (1 move) Thus, the solution requires 11 steps altogether. As just shown, it is natural to try to use the n = 2 solution to solve parts of the n = 3 puzzle in a recursive manner, as typically used for solving the classical ToH puzzle. However, in contrast to the classical ToH, here the n = 2 solution cannot be blindly applied due to the coloring of the posts and disks. This point illustrates that to achieve a more general solution for the n-disk MToH puzzle, it is necessary to consider variants of the puzzle where the posts are pre-colored (either Blue or Red). By considering these variants it is possible to develop full recursive relations for the MToH puzzle, and thus find a general solution.

Colored variations of the MToH puzzle

… excerpt ends here. Continue reading the full article.

Illustrations

Magnetic Tower of Hanoi: The Magnetic Tower of Hanoi (MToH) puzzle
The Magnetic Tower of Hanoi (MToH) puzzle
Magnetic Tower of Hanoi: An illustration of the magnetism: Disks magnetically repel each other if their touching sides have the same color
An illustration of the magnetism: Disks magnetically repel each other if their touching sides have the same color
Magnetic Tower of Hanoi: The initial position of the puzzle
The initial position of the puzzle
Magnetic Tower of Hanoi: The final position of the puzzle
The final position of the puzzle
Magnetic Tower of Hanoi: The solution of the n = 2 puzzle
The solution of the n = 2 puzzle

Worked examples

Example 1 — a first encounter with Magnetic Tower of Hanoi

Start with the simplest possible case. Write down what Magnetic Tower of Hanoi claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In physics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Magnetic Tower of Hanoi before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Magnetic Tower of Hanoi ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Magnetic Tower of Hanoi

In research
Magnetic Tower of Hanoi appears in physics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Magnetic Tower of Hanoi in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Magnetic Tower of Hanoi is common in secondary-school and first-year university syllabi. It links to neighbouring topics Magnetic devices, Mechanical puzzles, so understanding it makes those chapters shorter.
In everyday life
Look for Magnetic Tower of Hanoi outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Magnetic Tower of Hanoi” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Magnetic Tower of Hanoi in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Magnetic Tower of Hanoi means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Magnetic Tower of Hanoi out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Magnetic Tower of Hanoi in simple terms?

The Magnetic Tower of Hanoi (MToH) puzzle is a variation of the classical Tower of Hanoi puzzle (ToH), where each disk has two distinct sides, for example, with different colors "red" and "blue". The rules of the MToH puzzle are the same as the rules of the original puzzle, with the added constrain…

Why does Magnetic Tower of Hanoi matter?

Because it connects several physics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Magnetic Tower of Hanoi?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Magnetic Tower of Hanoi.

Tags

  • Magnetic devices
  • Mechanical puzzles

Keep exploring