ScratchData LogoScratchData
Back to BreadBam's profile

hailstone sequence in scratch

BRBreadBam•Created January 1, 2025
hailstone sequence in scratch
1
1
2 views
View on Scratch

Instructions

the hailstone sequence is simple, start at 1-10. if its odd; multiply by 3 and add 1. if its even; divide by 2. it always ends up on a 4 - 2 - 1 repeat pattern.

Description

Better explanation here: https://www.youtube.com/shorts/8fNFd2Xswjs cause for loop; 4/2=2, 2/2=1, 1*3+1=4. 4=even 2=even 1=odd similar to the step loop, 1= do 2: 2= do 3: 3= do 1:

Project Details

Project ID1115670018
CreatedJanuary 1, 2025
Last ModifiedJanuary 1, 2025
SharedJanuary 1, 2025
Visibilityvisible
CommentsAllowed