ScratchData LogoScratchData
Back to _youtubeN1's profile

Collatz Visualizer

_Y_youtubeN1•Created November 2, 2016
Collatz Visualizer
0
0
35 views
View on Scratch

Instructions

Click flag to see the tree visualization of the Collatz sequences. x position shows the last digit of each number y position shows the number of steps taken to collapse to 1 Press space to see how a starting number progresses under the Collatz sequence. x position shows the number of steps taken to collapse to 1 y position shows each number

Description

https://en.wikipedia.org/wiki/Collatz_conjecture given any starting natural number, repeat: if even, halve it if odd, triple it and add one The unsolved conjecture states: that all Collatz sequences eventually reach 1, no matter the starting value. Ex. 7 -> 22 -> 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1; 15 -> 46 -> 23 -> 70 -> 35 -> 106 -> 53 -> 160 -> 80 ->

Project Details

Project ID128802064
CreatedNovember 2, 2016
Last ModifiedApril 17, 2017
SharedNovember 3, 2016
Visibilityvisible
CommentsAllowed