ScratchData LogoScratchData
Back to CraylenGD's profile

The 3x+1 Conjecture

CRCraylenGD•Created December 22, 2024
The 3x+1 Conjecture
1
1
7 views
View on Scratch

Instructions

To put it simply, the 3x+1 Conjecture (a.k.a the Collatz Conjecture) is a list where, you choose a positive integer, and if it's odd, then you multiply it by 3 and then add 1. If it's even, then you divide it by 2. I'll give an example, I'll pick 15. Since it's odd, I'll multiply it by 3 and then add 1. We will end up getting 46. 46 is even, so we will divide it by 2 and end up getting 23. 23 is odd, so we will multiply by 3 and add 1, we will get 70. Repeat that formula and then we will get 4, 2, 1. Since 1 is odd, it goes back to 4. The theory is that every positive integer will eventually go into an infinite 4, 2, 1 loop. This is a visualization using scratch y - 180 to demonstrate this conjecture, ending at 1 instead of infinitely looping. For a visual explanation, go here: https://www.youtube.com/watch?v=8fNFd2Xswjs

Project Details

Project ID1113744972
CreatedDecember 22, 2024
Last ModifiedApril 12, 2025
SharedDecember 22, 2024
Visibilityvisible
CommentsAllowed