ScratchData LogoScratchData
Back to GamesIsMyMiddleName's profile

3n+1 Calculator

GAGamesIsMyMiddleName•Created February 18, 2022
3n+1 Calculator
2
2
34 views
View on Scratch

Instructions

Hi. If you don't know what 3x+1 is, then how it works is first you take a number, such as 3. If it's odd, you multiply it by 3 and add 1: 3, 10. If it's even, then divide by 2: 3, 10, 5, 16, 4, 2, 1, 4, 2, 1, 4, 2, 1... To avoid a loop, end the sequence at 1. Is there a number out there that doesn't end in 4, 2, 1.

Project Details

Project ID646952114
CreatedFebruary 18, 2022
Last ModifiedMarch 3, 2022
SharedFebruary 18, 2022
Visibilityvisible
CommentsAllowed