There's a problem in maths, IIRC, yet unsolved, but I don't remember the name. Tried Googling, but to no luck.
Here's the essence of it.
Take any number. If the number is odd, multiply it by three and add 1. If not odd, divide by 2. Do the same with the result. In the end, you'll always come to 4,2,1, which repeat forever. Like:
40. Not odd, divide by 2 =20. 20:2=10. 10:2=5. 5 odd, 5*3+1=16. 16:2=8 8:2=4 4:2=2 2:2=1 1*3+1=4
Obviously, 4,2,1 will repeat itself.
There were some good docs on this problem online, but please someone help me get the name of it!
Here's the essence of it.
Take any number. If the number is odd, multiply it by three and add 1. If not odd, divide by 2. Do the same with the result. In the end, you'll always come to 4,2,1, which repeat forever. Like:
40. Not odd, divide by 2 =20. 20:2=10. 10:2=5. 5 odd, 5*3+1=16. 16:2=8 8:2=4 4:2=2 2:2=1 1*3+1=4
Obviously, 4,2,1 will repeat itself.
There were some good docs on this problem online, but please someone help me get the name of it!
Comment