ScratchData LogoScratchData
Back to powercakecoder's profile

Colltatz Conjecture Hailstone Numbers Interactive

POpowercakecoder•Created January 9, 2023
Colltatz Conjecture Hailstone Numbers Interactive
0
0
6 views
View on Scratch

Instructions

This is a short little project for messing around with. It generates a hailstone number sequence. Type in any number (Negatives work, but will not cease oscillating because I did not code that part. And integers are what the Conjecture is about, though any rational number will work in this simulation only (not with the actual conjecture)). No matter what number you choose, you will end up with a 4, 2, 1 at the end. It would loop, but I made it stop at one instead of repeating. The conjecture relies on two options. If a number is odd, multiply by three and add one. If even, divide by two. Then do the same with the result. It will always end in 4, 2, 1. Scratch can only handle numbers up to a certain size, so if a number is too big it may say infinity and break. If an invalid character or a 0 is in there, it will fill up completely with 0s. If a number does not end in 421 after the 200,000 list limit, you may be the first person ever to disprove the conjecture. It has never been proven or disproven before. Though, more than likely it just takes over 200,000 iterations to reach the loop. If so, just put in the last value to the interactive again. If you disprove it, then let me know in the comments (but you probably won't. Nobody has ever proven or disproven it).

Description

Thanks to techthings.ca on Youtube for a tutorial on even or odd number detection. Veratasium on Youtube has a good video on this, so you may wanna check it out. Please remix! Yes, this is my first project in over a year. My next one may be big, though, so hand in there.

Project Details

Project ID785575035
CreatedJanuary 9, 2023
Last ModifiedJanuary 10, 2023
SharedJanuary 10, 2023
Visibilityvisible
CommentsAllowed