This is a program I made to graph the "Hailstone Sequence" which is:
If y is even, the next y=y/2
If y is odd, the next y=3y+1
To change the starting number, first press the flag, change StartNumber, and then press START.
If the y of the pen is> 360, if the x of the pen is > 480, or if it repeats endlessly in the 4-2-1-4 pattern, the program will stop, and you will have to try again, pressing the flag first.
To get to the far side, you will have to find a number that can go through 160 iterations, and be in the constraints above.
PLEASE post your number and the x and y it got to in the "Comments" box.
Comments
You need to be logged in to post comments
Add a Comment