Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Science Theatre
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Towers of Hanoi
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Why This Works == The Towers of Hanoi are a classic puzzle developed in 1883 by Édouard Lucas, a French Mathematician. The goal is to move a stack of rings from one peg to another in the fewest steps possible. However, you cannot move more than one ring at a time, and you cannot stack a larger ring on top of a smaller ring. This is easy to do with only two rings, and it isn't too hard with three, but it starts to get complicated with four rings. This is because it is an exercise in ''exponential growth'', or rapid growth within a system. {| class="wikitable" style="color:black; background-color:#ddd; text-align: left; margin-left: auto; float: right" | Number of Rings | Number of Steps |- | 1 | 1 |- | 2 | 3 |- | 3 | 7 |- | 4 | 15 |- | Rings = ''n'' | Steps = ''N'' |- |colspan="2" style="text-align:center;"|''N'' = 2<sup>''n''</sup> - 1 |} If we look at this chart, we see how the number of steps needed increases quickly as we add more rings. By looking at the number of steps versus the number of rings, we can see that there is a pattern to it: The number of steps increase each time by a multiple of two. The number of steps, however, are also one less than a multiple of two. This gives us enough information to solve for the equation: The number of steps (''N'') is equal to 2 to the power of the number of rings (''n'') minus 1. This number pattern with the rings can also be used to show how a binary counter works. We can think of each ring in the stack being equal to a value twice as much as the one above it, with the smallest ring equal to one, the next ring equal to two, the third ring equal to four, and the fourth ring equal to 8. If we assign these values to the rings, then we can solve how many steps it will take for a stack by adding up the ring values in the stack. Not only that, but we can then use the rings to count, and be able to count from 0 to 15 using only four inputs. If we were to add a fifth input, then the fifth ring would be equal to 16, and we could count from 0 to 31. This same counting method works just as well on your fingers! Using either hand, label your thumb as "1", your forefinger as "2", your middle finger as "4", your ring finger as "8" and your pinkie as "16". Start with your hand closed, and count by putting your fingers up. For example, if you count "11", then you would have your thumb "1", forefinger "2" and ring finger "8" up, which add to 11. This method allows you to count up to 31 on a single hand, and with both hands you could count all the way to 1,023!
Summary:
Please note that all contributions to Science Theatre are considered to be released under the Creative Commons Public Domain Dedication (see
Science Theatre:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Towers of Hanoi
(section)
Add topic