👩💻 Join our community of thousands of amazing developers!
The Collatz conjecture, a.k.a. the 3n + 1 problem, a.k.a. the hailstone conjecture, asks whether the following sequence always terminates. Start with a positive integer n. If n is even, set n ← n /2. Otherwise n ← 3n + 1. If n = 1, stop. Otherwise go back to step 1. The Collatz conjecture […] The post Polynomial analog of the Collatz conjecture first appeared on John D. Cook....