How to calculate
If n is even, divide it by two. If n is odd, multiply it by three and add one. Stop on one or at the selected limit.
Worked example
Use Positive starting integer 21 · Step limit 100. The result is 7 steps to 1.
Input and result notes
The calculation checks a finite run and reports whether that run reached one. It supports up to 1,000 steps.