Hailstone numbers
Start with a random number.
If it is even then divide by 2.
If it
is odd, multiply by 3 and add 1.
If you
keep going you will find that no matter where you started you will eventually
hit 1. Like hailstones, the
number will go up, and inevitably come back
down. This is an example with 7:
7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5,
16, 8, 4, 2, 1
Comments
Post a Comment