![number of moves to solve the hanoi towers puzzle number of moves to solve the hanoi towers puzzle](https://www.javainterviewpoint.com/wp-content/uploads/2016/08/Towers-Of-Hanoi.png)
![number of moves to solve the hanoi towers puzzle number of moves to solve the hanoi towers puzzle](https://miro.medium.com/max/1400/1*vZj2mkVDrEAi77_V52SkvA.png)
You then repeat this process, dividing the pile into two twenties, two tens, and so on, until you narrow it down to the one coin. You can select the lighter pile and discard the other forty coins all at once. A faster way would be to divide the pile into two piles of forty and weigh these two piles against one another. To find this lighter coin, one solution would be to weigh and compare two coins at a time to see if there is any difference in weight – but this method would take ages. All the coins weigh the same, apart from one that weighs slightly less. For instance, imagine you have eighty coins and a set of balance scales. “Recursion is the extremely useful idea of solving a large problem by reducing it to smaller instances of the same problem,” says Dan. Professor Dan Romik, of the University of California, Davis, has investigated the Tower of Hanoi and, despite the puzzle’s apparent simplicity, has shown that it continues to yield new surprises. However, underlying the puzzle are some key mathematical ideas – even if we might not appreciate them when solving it. This puzzle quickly reached fame as the brainteaser now known as the Tower of Hanoi.ĭespite it seeming initially perplexing, in truth the Tower of Hanoi is a problem that even amateur puzzlers can solve with a bit of lateral thinking. However, the catch is, a larger disc can never sit on top of a smaller disc. The aim is to move the tower, one disc at a time, over to the right-hand pole.
#NUMBER OF MOVES TO SOLVE THE HANOI TOWERS PUZZLE SERIES#
There are three poles in a row, the one on the left containing a series of discs of decreasing size, with the other two, empty. In 1883, a French mathematician named Édouard Lucas came up with an intriguing scenario.