How to use it
- Enter a positive whole number.
- Read the number of steps and the highest value.
- The sequence list shows the first terms; the copy button copies all of them.
How it works
The rule is n → n/2 if n is even and n → 3n + 1 if n is odd. The calculator stops at 1. If the sequence has not reached 1 after 100000 steps it stops with a message; no starting number is known to do that.
Worked example
Start at 6:
- 6, 3, 10, 5, 16, 8, 4, 2, 1
- 8 steps: 2 odd (3 and 5), 6 even
- Highest value: 16
Tips
- Commas, spaces and underscores in the number are ignored.
- Different starting numbers can merge: 6 and 12 share every term from 6 onward.