Tower of Hanoi - Solution

Solution

The puzzle can be played with any number of disks, although many toy versions have around seven to nine of them. The number of moves required to solve a Tower of Hanoi puzzle is 2n -1, where n is the number of disks.

Read more about this topic:  Tower Of Hanoi

Famous quotes containing the word solution:

    There’s one solution that ends all life’s problems.
    Chinese proverb.

    The Settlement ... is an experimental effort to aid in the solution of the social and industrial problems which are engendered by the modern conditions of life in a great city. It insists that these problems are not confined to any one portion of the city. It is an attempt to relieve, at the same time, the overaccumulation at one end of society and the destitution at the other ...
    Jane Addams (1860–1935)

    Give a scientist a problem and he will probably provide a solution; historians and sociologists, by contrast, can offer only opinions. Ask a dozen chemists the composition of an organic compound such as methane, and within a short time all twelve will have come up with the same solution of CH4. Ask, however, a dozen economists or sociologists to provide policies to reduce unemployment or the level of crime and twelve widely differing opinions are likely to be offered.
    Derek Gjertsen, British scientist, author. Science and Philosophy: Past and Present, ch. 3, Penguin (1989)