Collatz sequence

6 → 8 steps

You can also choose a level by clicking a star.

About the course

Description
Divide an even number by two, multiply an odd one by three and add 1 – how many steps to one?
More information
An algorithm is a precise sequence of steps. Code examples are in Python.
Sample question
6 → 8 steps
Author
Jiří Preisler
Version
1.0