Collatz Conjecture (3n+1) Sequence
The Collatz conjecture, also called the 3n+1 problem or the hailstone sequence, applies a simple rule to a positive integer: if it is even, divide by two; if it is odd, multiply by three and add one. Repeat and, as far as anyone has tested, you always reach 1. Enter a starting number and this tool lists the entire sequence, counts the steps (the stopping time), and reports the highest value reached along the way. Arbitrarily large numbers are handled exactly with big integers. Everything is computed locally in your browser.
How to use
- Enter a positive whole number.
- Read the number of steps, the peak value and the sequence length.
- Scroll the full sequence and copy it with one click.
- Try famous starters like 27 (111 steps, peak 9232) to see how wildly the path can swing.
Frequently asked questions
- What is the rule exactly?
- Start with any positive integer n. If n is even, the next term is n / 2; if n is odd, the next term is 3n + 1. Repeat until you reach 1. The number of steps to reach 1 is called the total stopping time.
- Does every number reach 1?
- It is conjectured — and verified for every number ever tested by computers — but never proven in general. That open question is the Collatz conjecture.
- Why does 27 take so long?
- Although 27 is small, its sequence climbs to a peak of 9232 and takes 111 steps before falling to 1, which makes it a popular example of how unpredictable the path can be.
Related tools
Fibonacci Sequence Generator
Generate the first N Fibonacci numbers — 0, 1, 1, 2, 3, 5, 8 … — with exact big-integer precision, and see the last term, the running sum and the golden-ratio approximation of the final two terms.
Pace Calculator
Compute running pace, finish time, or distance from any two of them. Presets for 5K, 10K, half, and marathon.
Time Card Calculator
Sum daily start/end times into a weekly total, subtract breaks, and split regular vs overtime. Optional hourly rate computes the paycheck.
CAGR Calculator (Compound Annual Growth Rate)
Compute the compound annual growth rate that connects a starting value to an ending value over N years — or solve for the end value or the time needed instead.
Password Strength Checker
Estimate password strength via entropy and crack-time. Detects common passwords, sequences, and repeated characters. Nothing leaves your browser.
Percentage Calculator
Work out percentages, what-percent, and percent change in one place.