Collatz Conjecture Calculator – 3x+1 Sequence Explorer

Explore the Collatz conjecture (3x+1 problem) with an interactive calculator that showcases hailstone sequences, stopping times, and orbit peaks for any positive starting integer.

Enter any positive integer ≥ 1. Classic examples: 6, 7, 19, 27, 871.

Safety cap prevents runaway sequences; raise it for deeper dives.

Switch to log scale for large peaks.

Note: This tool is for exploration only and does not constitute a proof of the Collatz conjecture.

How to use this Collatz explorer responsibly

Use the controls to simulate hailstone sequences, inspect stopping-time behavior, and compare peaks across starting values.

  • Teaching and learning about iteration, orbits, and discrete dynamical systems.
  • Gaining intuition for stopping times, convergence speed, and peak values.
  • Exploratory experimentation in number theory and computer science education.

For serious research, rely on dedicated high-performance implementations that handle extremely large starting values with rigorous record-keeping and numerical safeguards.

Methodology

This calculator steps through the 3x+1 rule (even numbers halve, odd numbers triple-plus-one) while tracking stopping times, total stopping time, and the orbit peak. The simulation halts when the sequence reaches 1 or the iteration cap is hit.

Results are deterministic; they document each iterate until the conjecture’s termination or the chosen safety cap, so you can audit every step.

Full original guide (expanded)

The Collatz conjecture remains one of the most famous unsolved problems in elementary number theory. Despite a deceptively simple rule, it resists proof. Lothar Collatz introduced the 3x+1 iteration in 1937, and computers have since verified it for numbers up to over 268, yet no general proof is known.

In the words of Jeffrey Lagarias, the problem is “extraordinarily difficult” and “completely out of reach of present-day mathematics.”

References & further reading

  • Wikipedia, “Collatz conjecture” – formal definition, history, and computational records.
  • Quanta Magazine, “The Simple Math Problem We Still Can’t Solve” – accessible overview of recent work.
  • Jeffrey C. Lagarias, “The 3x+1 Problem and Its Generalizations” – research-level survey of the 3x+1 problem.

More in Core Math & Algebra

Suggested explorations

Try these sequences and compare the stopping times and peaks.

  • n = 7 – short orbit with a moderate peak.
  • n = 27 – famous for its surprisingly long trajectory.
  • n = 97 – long total stopping time compared with smaller numbers.
  • n = 871 – classic example in many Collatz discussions.

For classroom use, compare stopping times and peak values across these examples.

Formulas

Collatz iteration:

\[f(n) = \begin{cases} n/2 & \text{if } n \equiv 0 \pmod{2}, \\ 3n+1 & \text{if } n \equiv 1 \pmod{2}. \end{cases}\]

The calculator steps through each apply-for-step until hitting 1 or the iteration cap.

Citations

NIST — Weights and Measures — nist.gov · Accessed 2026-01-19
https://www.nist.gov/pml/weights-and-measures

FTC — Consumer Advice — consumer.ftc.gov · Accessed 2026-01-19
https://consumer.ftc.gov/

Changelog
  • 0.1.0-draft — 2026-01-19: Initial audit spec draft plus Collatz explorer layout, formulas, and timeline.
  • 0.1.0-draft — 2026-01-19: Verify formulas match the calculator engine and convert text-only formulas to LaTeX.
  • 0.1.0-draft — 2026-01-19: Confirm sources are authoritative and relevant to the methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0