Trace the Collatz (3n+1) sequence for any positive integer and count how many steps it takes to reach 1. Also displays the full sequence.
Trace the Collatz (3n+1) sequence for any positive integer and count how many steps it takes to reach 1. Also displays the full sequence.
Enter a positive integer to start the Collatz sequence
Start with any positive integer. If even, divide by 2. If odd, multiply by 3 and add 1. Repeat until reaching 1. The conjecture states this always happens.
How this calculator works
Start with any positive integer. If even, divide by 2. If odd, multiply by 3 and add 1. Repeat until reaching 1. The conjecture states this always happens.
Common questions about this calculator