ScratchData LogoScratchData
Back to Techie31415's profile

Hailstone Sequence

TETechie31415•Created April 18, 2008
Hailstone Sequence
0
0
153 views
View on Scratch

Description

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.

Project Details

Project ID144166
CreatedApril 18, 2008
Last ModifiedApril 18, 2008
SharedApril 18, 2008
Visibilityvisible
CommentsAllowed