ScratchData LogoScratchData
Back to scratch3223's profile

hailstone sequence calculator

SCscratch3223•Created September 10, 2016
hailstone sequence calculator
0
0
275 views
View on Scratch

Instructions

this project calculates whether a number (n) will end in 4,2,1 if you apply these rules 1. if n is even, divide it by 2 2. if n is odd multiply n by 3 and add 1 this program can be used to check a specific number or check many numbers ranging from 1- infinity. there is no proof that all numbers end in 4,2,1 but from this program we can tell that all integers up to 45 million (so far) end in a cycle of 4,2,1!

Description

based on a worksheet in math class scripting by me

Project Details

Project ID120688508
CreatedSeptember 10, 2016
Last ModifiedOctober 8, 2016
SharedSeptember 13, 2016
Visibilityvisible
CommentsAllowed