-Make sure you input an actual number and has no punctuation, you'll have to click the flag to try a different input! -number can (if you're insane) be: | #e+# | but replace hashtags with actual numbers. -If your number is too large, scratch will not be able to handle it and result in an infinity error :'( It will also error if your number equals 0 because 0 is neither even or odd or positive or negative, it is a placeholder. -Fun Fact, I actually made this so I didn't have to put in every equation into a calculator cuz im lazy :P -Letters and decimals do not plug into the equation.
How this works is when you input a number, if even it will divide it by 2, if odd it will multiply by 3 and add one, this is where 3x+1 comes from :O -The idea of this is that every single number no matter how large, will eventually condense down to 1. -You might be saying, "1 is odd, multiply it by 3 and add 1" well, I would, but it'll infinitely loop, because 3(1)+1=4 and 4/2=2 and 2/2=1 and so on forever. -For certain numbers, it will only divide by 2, for example: 590295810358705651712 although large, is always divisible by 2 :) -Version 1.18 (all bugs fixed :D finally *whew*) -Anyway, too much Math. Enjoy! :)