DEV Community

Ramesh Sighn
Ramesh Sighn

Posted on

Other Collatz conjecture approach

The Collatz conjecture states that for any positive integer ( n ):
If ( n ) is even, divide it by 2 (i.e., ( n \to \frac{n}{2} )).
If ( n ) is odd, multiply it by 3 and add 1 (i.e., ( n \to 3n + 1 )).

Top comments (0)