ScratchData LogoScratchData
Back to SuperDragon2014's profile

3n+1 Calculator and Grapher

SUSuperDragon2014•Created January 8, 2016
3n+1 Calculator and Grapher
9
7
886 views
View on Scratch

Instructions

Enter a number and calculate away! If you don't know, the 3n+1 problem states that no matter what number you replace 'n' with, as long as it's positive or '0', you will eventually reach an infinite string of '421421421421...' This is the 3x+2 problem: {if n is even, n = n/2 if n is odd, n = 2n+1 repeat} This calculator will tell you how many steps/iterations it takes to go from your input to '1'. It will also graph the process so that you can tell how high the numbers got relative to 'n'.

Description

I'd like to give credit to the provider of my text engine, but I actually can't remember who it was. I'll do some more searching and see if I can find them.

Project Details

Project ID93502174
CreatedJanuary 8, 2016
Last ModifiedJanuary 8, 2016
SharedJanuary 8, 2016
Visibilityvisible
CommentsAllowed