Are You Ready For This? ◻
A recent xkcd comic brought to my attention the Collatz conjecture. It goes like this. Take any number, like 5. If the number you pick is even, divide by 2. If it’s odd multiply by 3 and add 1. For our number 5, since 5 is odd we get 3 * 5 + 1 = 16. Now apply the rule to the the number we got, and keep doing this. Starting with 5 we’d get 5, 16, 8, 4, 2, 1, etc. The conjecture is, and by conjecture we mean there’s no proof, if you apply this process to any number you’ll reach 1.
Now you might say, “What’s the big deal?” Yeah, it’s not impressive at first. The math involved is simple. But there’s no proof that you’ll always reach 1. And what’s more, the mathematician Paul ErdÅ‘s, who published more papers than any other mathematician in history, said “mathematics is not yet ready for such problems”. Wow. Just wow.
Anyway, wrote some Haskell code to play around with the conjecture. It’s online here.
Tagged: math programming