The guide
A rule a child can follow, a question nobody can answer, and a path that climbs before it falls
The 3n + 1 rule halves an even number and triples an odd one plus one. Every start tried by computer reaches 1, yet there is no proof, and some small starts climb thousands of times higher first.
- 111 steps for 27 to reach 1, 41 of them through odd numbers
- 9232 the highest value on the path of 27
- 524 steps the longest path of any start below one million
- 2^71 the limit up to which every start has been checked
Read the full guide Fold the guide
Two rules and a stopping point
Pick a positive whole number. If it is even, halve it. If it is odd, multiply it by three and add one. Then do the same to the result, and again, and keep going. That is the whole rule, and it is the reason the Collatz problem is famous: nothing in it needs more than school arithmetic.
Start at 6 and the path reads 6, 3, 10, 5, 16, 8, 4, 2, 1. Start at 7 and it takes sixteen steps instead of eight, wandering up to 52 on the way. Once a path reaches 1 the rule sends it round the loop 4, 2, 1 for ever, so the sensible place to stop counting is the first time the value equals 1.
Counting needs one decision, and it is where careless answers go wrong. The start is step 0, not step 1. A path with n values has n minus 1 steps, so the usual count for 27 is 111 steps, even though its list holds 112 numbers. Anyone who numbers the start as step 1 reports 112.
Two different counts get called “the stopping time”, and they are not the same thing. The total stopping time is the number of steps until the value is 1. The stopping time proper is the number of steps until the value first drops below the start. For 27 the total is 111 and the stopping time is 96, because the path stays above 27 for ninety-five steps before it finally dips under.
The two meet in an odd way. The conjecture says every total stopping time is finite. It turns out to be equivalent to saying that every start above 1 has a finite stopping time, since a path that always eventually falls below its start must in the end fall all the way to 1. Prove the smaller claim and the larger follows.
Why 27 is the example everyone uses
The path of 27 is the textbook case because it looks so unreasonable. It takes 111 steps, 41 of which are odd-number steps that triple and add one. It climbs to 9232, which is more than 340 times its start, before it begins the long slide down to 1. For a number you can say in two syllables, that is a lot of drama.
Not every small number behaves that way. The start 97 falls below itself after only 3 steps (97, 292, 146, 73), yet its total path is 118 steps and it also reaches 9232. So a short stopping time says almost nothing about how far the path will go afterwards, and the page keeps the two readouts side by side for that reason.
Some starts climb far higher. Below ten thousand, the start 9663 reaches 27,114,424 before it comes down, a rise of nearly three thousand times. The starts that set a new record for the highest point form a sparse list that begins 1, 2, 3, 7, 15, 27, 255, 447, 639, 703, 1819, and 9663 is on it.
Longest paths follow the same pattern of rare outliers. The starts that set a record for the number of steps begin 1, 2, 3, 6, 7, 9, 18, 25, 27, 54, 73, 97, and the list reaches 6171 with 261 steps, 77031 with 350 steps and 837799 with 524 steps. Those three are the winners below ten thousand, one hundred thousand and one million.
Those longest-path figures on the page were computed by the tool’s own code, and checked against a separate script, rather than quoted from a source. The table on the Wikipedia page lists the same starts for the same three limits, which is a useful second opinion but not where the numbers came from.
Why the paths go up as well as down
Tripling and adding one makes an odd number roughly three times bigger, while halving makes an even number half as big. The odd step always lands on an even number, so a halving follows at once. Merge the two and the “shortcut” map sends an odd number n to (3n + 1) / 2, about one and a half times n, while an even number goes to half of itself.
That merging explains a relation worth remembering: the total number of steps equals the shortcut steps plus the odd steps. For 27 that is 111 = 70 + 41. The page shows both counts so the identity can be seen, and it is checked on every start below twenty thousand.
The reason people expect paths to fall is a rough average. Looked at only through its odd numbers, a typical path multiplies by about three quarters at each odd number. That is less than one, so on average the path should shrink. The argument is a heuristic, not a proof, because it treats the ups and downs as independent chance events when they are fixed by the number itself.
A path climbs when odd steps cluster. Three odd steps in a row, in the shortcut map, multiply the value by about twenty-seven over eight, and nothing in the rule forbids a longer run. The heights are real, and they are why a tool that follows paths needs to handle values far past the size of its start.
What a computer has and has not shown
Computers have checked every start up to 2^71, about 2.36 times ten to the twenty-first, and every one of them reaches 1. That is an enormous amount of evidence. It is still not a proof, because a counterexample could sit beyond any finite limit, as it has for other conjectures that held for a very long time.
Checking is not wasted effort, though. A path that never reaches 1 would either grow without bound or fall into a loop that excludes 1. The only known loop for positive numbers is 4, 2, 1, which is 1, 2 in the shortcut map. A computer search that rules out small starts also rules out small loops, and the shortest possible new loop has been pushed to a very large number of steps.
Pure mathematics has made partial progress. A theorem credited to Terras shows that almost every start has a finite stopping time. In 2019 Terence Tao strengthened this to a statement about logarithmic density: for any function that grows without bound, however slowly, almost every orbit eventually goes below it. Krasikov and Lagarias proved by computer-aided methods that at least x to the power 0.84 of the numbers up to x reach 1.
Related results rule out small cycles in a precise sense. Hercher showed there is no cycle with 91 or fewer local minima, and noted what would have to be checked to push a related bound further. None of this settles the question, which Lagarias’s annotated bibliography still describes as unsolved after decades of work, and it is why this page says the conjecture is unproved and cannot promise a path ends.
What the tool does and does not do
Exactness is the first reason this is a program rather than a calculator sum. Plain JavaScript numbers lose exactness above 2^53 minus 1, which is 9,007,199,254,740,991. The page uses BigInt, which holds integers of any size, so a start of up to forty digits is followed without rounding. As a check, the 31-digit start 10^30 + 1 takes 764 steps and peaks at exactly 3,000,000,000,000,000,000,000,000,000,004.
Speed is the second. Following one path is instant, but asking for the start below ten million with the longest path means working through ten million numbers. The page does that in a background worker, so typing stays smooth, with a progress bar, a cancel button and a time limit. The search reuses what it has already found: each start is followed only until it first drops below itself, and the rest of its steps are read from a table.
Reading the results takes some care. Longest total stopping time, highest peak and stopping time are three different questions, and the winners differ: below one million, 837799 has the longest path but a smaller start, 704511, holds the highest peak. The page lists the top ten by steps and the record peak separately.
There are limits, and the page states them. A start may have up to forty digits, a path is stopped after 100,000 steps, the search limit is ten million and the range table holds a thousand rows. A path that reached the cap would be reported as unfinished, never as ending. The tool follows one rule exactly; it does not prove the conjecture, search for cycles, or work with other maps.
A worked example to reproduce: enter 27 and read 111 steps, a stopping time of 96, a peak of 9232 and 41 odd steps. Switch to the shortcut map and read 70 steps. Then enter 97 and see that a stopping time of 3 and a peak of 9232 can share one path. Finally set the limit to one million and look for 837799 and 524 steps at the top of the list.
Sources
Every source consulted for this guide. Links checked November 10, 2026.
- Collatz conjecture Wikipedia
- A006577 Number of halving and tripling steps to reach 1 in '3x+1' problem, or -1 if 1 is never reached The On-Line Encyclopedia of Integer Sequences
- A006877 In the '3x+1' problem, these starting values set new records for the number of steps to reach 1 The On-Line Encyclopedia of Integer Sequences
- A006884 In the '3x+1' problem, these starting value set new records for highest point of trajectory before reaching 1 The On-Line Encyclopedia of Integer Sequences
- A025586 Largest value in the '3x+1' trajectory of n, or 0 if the orbit is unbounded The On-Line Encyclopedia of Integer Sequences
- Almost all orbits of the Collatz map attain almost bounded values arXiv (Terence Tao)
- The 3x+1 problem: An annotated bibliography (1963 to 1999) (sorted by author) arXiv (Jeffrey C. Lagarias)
- Bounds for the 3x+1 Problem using Difference Inequalities arXiv (Ilia Krasikov and Jeffrey C. Lagarias)
- There are no Collatz-m-Cycles with m <= 91 arXiv (Christian Hercher)
- BigInt MDN Web Docs
- Number.MAX_SAFE_INTEGER MDN Web Docs
- Web Workers API MDN Web Docs