Re:All numbers lead to one
by Natsu on Wednesday October 05, 2011 @03:22AM
(#3074619)
It's very interesting to watch in binary, actually.
You first check if the LSB is 1. If not, you right shift it until it is. Once the LSB is 1, you add it to itself shifted left by one bit, then increment.
Watching the bits go by and shrink over time reminds me of cellular automata in a way.
You first check if the LSB is 1. If not, you right shift it until it is. Once the LSB is 1, you add it to itself shifted left by one bit, then increment.
Watching the bits go by and shrink over time reminds me of cellular automata in a way.