Tower Of Hanoi
In the large temple of Benares, underneath the dome that marks the centre of the word, there are three diamond needles on a brass slab, each one cubit tall and the same thickness as a bee. At the beginning of time God placed sixty four discs of pure gold on the first needle, the widest resting on the brass and the others, getting narrower, were placed on top.
This was the sacred tower of Brahma.
From that moment, night and day, the priests began to move the discs from one needle to another, always one at a time, and always making sure that the stack followed the rule that a wider disc cannot be placed on top of a narrower disc.
When the priests finally move all of the discs to the third needle, the tower will fall and it will be the end of worlds!
This is the tale of the Tower Of Hanoi, created by Édouard Lucas under the name of M. Claus in 1883.
Interestingly the priests will require 264 - 1 moves to complete the task, which, at one disc per second would take:
18,446,744,073,709,551,615 seconds (nearly 585 billion years)!
Your task is a little easier, as you can select between 2 and 8 discs (which would take the priests anywhere between 3 and 255 seconds).