Skip to content
Toolcroft

Collatz Conjecture Sequence Visualizer - 3n+1 Problem

Math Calculators

Visualize Collatz sequences for integers from 1 to 1,000,000. Explore steps, peaks, parity, and the 3n+1 trajectory with a chart and table.

Enter a whole number. The calculation runs in this browser and is capped at 1,000,000.

Total stopping time (steps): 111
Peak value: 9,232
Peak at step: 77
Sequence length: 112
StartPeakEnd

This path rises more than 100× above its start; Log scale may make smaller values easier to compare.

Sequence112 values

27 → 82 → 41 → 124 → 62 → 31 → 94 → 47 → 142 → 71 → 214 → 107 → … → 1

Open the step-by-step sequence table and exports.
Collatz sequence terms with parity and the operation leading to the next value
StepValueParityOperation
027Odd3n+1
182Evenn/2
241Odd3n+1
3124Evenn/2
462Evenn/2
531Odd3n+1
694Evenn/2
747Odd3n+1
8142Evenn/2
971Odd3n+1
10214Evenn/2
11107Odd3n+1
12322Evenn/2
13161Odd3n+1
14484Evenn/2
15242Evenn/2
16121Odd3n+1
17364Evenn/2
18182Evenn/2
1991Odd3n+1
20274Evenn/2
21137Odd3n+1
22412Evenn/2
23206Evenn/2
24103Odd3n+1
25310Evenn/2
26155Odd3n+1
27466Evenn/2
28233Odd3n+1
29700Evenn/2
30350Evenn/2
31175Odd3n+1
32526Evenn/2
33263Odd3n+1
34790Evenn/2
35395Odd3n+1
361,186Evenn/2
37593Odd3n+1
381,780Evenn/2
39890Evenn/2
40445Odd3n+1
411,336Evenn/2
42668Evenn/2
43334Evenn/2
44167Odd3n+1
45502Evenn/2
46251Odd3n+1
47754Evenn/2
48377Odd3n+1
491,132Evenn/2
50566Evenn/2
51283Odd3n+1
52850Evenn/2
53425Odd3n+1
541,276Evenn/2
55638Evenn/2
56319Odd3n+1
57958Evenn/2
58479Odd3n+1
591,438Evenn/2
60719Odd3n+1
612,158Evenn/2
621,079Odd3n+1
633,238Evenn/2
641,619Odd3n+1
654,858Evenn/2
662,429Odd3n+1
677,288Evenn/2
683,644Evenn/2
691,822Evenn/2
70911Odd3n+1
712,734Evenn/2
721,367Odd3n+1
734,102Evenn/2
742,051Odd3n+1
756,154Evenn/2
763,077Odd3n+1
779,232Evenn/2
784,616Evenn/2
792,308Evenn/2
801,154Evenn/2
81577Odd3n+1
821,732Evenn/2
83866Evenn/2
84433Odd3n+1
851,300Evenn/2
86650Evenn/2
87325Odd3n+1
88976Evenn/2
89488Evenn/2
90244Evenn/2
91122Evenn/2
9261Odd3n+1
93184Evenn/2
9492Evenn/2
9546Evenn/2
9623Odd3n+1
9770Evenn/2
9835Odd3n+1
99106Evenn/2
Rows 1–100 of 112
Page 1 of 2
Try a starting value:

How to use this tool

  1. Enter a whole number from 1 to 1,000,000 and click Visualize.
  2. The chart shows the full hailstone sequence to 1.
  3. Switch between linear and logarithmic scales, then open the sequence table.

What is the Collatz conjecture?

Start with any positive integer n. If it is even, divide it by 2; if it is odd, multiply it by 3 and add 1. Repeat those steps. The resulting sequence is called a Collatz sequence or hailstone sequence because its values can rise and fall before reaching 1.

The conjecture says that every positive integer eventually reaches 1, then enters the cycle 1 → 4 → 2 → 1. It has not been proved for all positive integers. As of 2025, computer calculations have verified convergence for every integer below 271. This is a finite computational verification, not a proof of the conjecture for all integers. See Barina’s 2025 paper and the project verification log.

How to read the visualization

Enter a starting number and the chart plots its sequence down to 1. The horizontal axis is the step number and the vertical axis is the value at that step; the chart offers linear and logarithmic vertical scales. A high peak does not mean a long sequence: the path from 27 reaches 9,232 at step 77, then takes 34 more steps to reach 1. The total stopping time is the number of transitions needed to reach 1, so a sequence with 111 steps contains 112 values including its start and end. In some Collatz literature, “stopping time” means the first step where a value falls below its starting value; that is a different measurement.

Notable starting numbers

Small changes to the starting value can produce sequences with very different lengths and peaks. For example, powers of 2 descend by repeated halving, while odd values can first grow under the 3n + 1 rule. These examples are useful for checking the chart and for seeing why sequence length and peak height describe different parts of a trajectory.

  • 27 takes 111 steps and reaches a peak of 9,232 at step 77. It has the longest sequence among starting values below 54.
  • 97 is the record below 100: it takes 118 steps to reach 1.
  • 871 reaches a peak of 190,996 and takes 178 steps.
  • 837,799 is the record below 1,000,000, with 524 steps.
  • Powers of 2 halve directly to 1 and have no odd transitions.

Why it matters

The Collatz rule is simple to state, but its sequences can behave in ways that are hard to predict from the starting value. The problem connects elementary arithmetic with questions in number theory and dynamical systems. Paul Erdős reportedly said, “Mathematics is not yet ready for such problems.” Despite extensive computation, no proof or counterexample is known.

Comparing starting numbers

Comparing two sequences on paper or in separate runs shows how different starting values can have very different paths. For example, 27 takes 111 steps and rises to 9,232, while 32 halves monotonically to 1 in five steps. A power of 2 descends at every step because each value remains even until it reaches 1. The visualizer plots one starting value at a time, so this comparison is a mathematical explanation rather than an overlaid comparison view.

Stopping times across starting values

Total stopping time counts the transitions from a chosen starting number all the way to 1. A related stopping time is the first transition where a sequence falls below its starting value. Researchers can compare either quantity across many starting values; the resulting counts have irregular peaks and valleys rather than a simple known formula. Numbers that set a new record for total stopping time over a growing range are sometimes called record holders or champion numbers. This page currently visualizes one sequence at a time and does not plot a range or distribution.

Frequently asked questions

What is the Collatz conjecture?

Start with any positive integer. If even, divide by 2. If odd, multiply by 3 and add 1. The conjecture states this sequence always eventually reaches 1 - but it has never been proven.

What is a hailstone sequence?

The values rise and fall unpredictably like hailstones before always (as far as we know) hitting 1.

What is total stopping time?

Total stopping time is the number of transitions needed to reach 1. The sequence contains one more value than its total stopping time because it includes both the starting value and 1.

Why is 27 a notable Collatz number?

The sequence starting at 27 takes 111 steps and peaks at 9,232 at step 77. It is the longest sequence for a starting value below 54; 97 holds the record below 100 with 118 steps.

Which starting number has the longest sequence below 1,000,000?

837,799 takes 524 steps to reach 1, the longest total stopping time among starting values below 1,000,000. A longer sequence does not necessarily have the highest peak.

Has the Collatz conjecture been proved?

No. As of 2025, computational work verified convergence for every positive integer below 2^71, but checking a finite range does not prove the conjecture for all positive integers.

Does this visualizer use shortcut mode?

No. It uses the classic rule: odd values become 3n+1, then each even value is halved on a following step. Shortcut mode combines an odd step and the next halving into one step, so its step counts differ.

Why does a Collatz chart rise before it falls?

Odd values are transformed to 3n+1, which is larger than the starting value. The result is even and may then be halved repeatedly, so the trajectory can rise and fall before reaching 1.

Browse all math calculators