The Collatz Conjecture is an unsolved problem in mathematics which asks if repeating two simple arithmetic operations will eventually transform any positive integer to 1.
The reason this is an unsolved problem is because no proof has yet been produced for whether or not this works for any positive integer.
Input: 10
As you can see, once the result hits 1 the steps will enter into a loop that repeats forever.
Since the process is so simple I haven't noticed too many things that yield unusual results. Probably the closest thing to "quirky" that I've observed is if the intput is some power of 2 you will get that many "divide by 2" operations until you reach 1. That's fairly obvious as the opposite of "divide by 2" is "multiply by 2" and it's not too drastic a leap to get to 2y. In the following example, let's input 2⁸ (256).
Input: 256
I am not a math professional, or even an amateur for that matter, so I have no idea how to go about finding anything truly interesting or odd. Maybe you'll have more luck in that regard.
Please note: Due to limitations with how JavaScript handles integers, I have set this up to limit the input to a maximum of 15 digits. If you want to try this out for yourself without such limits, clone this repository, remove or increase the limits, and upload it to your own server.
Please enter a number with fewer than 15 digits.Input:
Unique digits: