Collatz Conjecture Visualizer — 3n+1 Sequence
Animated Collatz (3n+1) sequence as a line chart — watch the trajectory climb and fall to 1. Step controls. Runs in your browser.
Pseudocode
Run an operation to see its steps.
Avg · Worst
How to use
- 1 Type a starting number and press Run sequence.
- 2 At each step: if the number is even, halve it; if odd, triple it and add one.
- 3 Watch the trajectory until it reaches 1.
- 4 Try 27 for a famously long, spiky path, or use Random.
Why use this tool
- See the surprising up-and-down trajectories the Collatz rule produces.
- Watch even/odd steps and the peak value before the sequence collapses to 1.
- Explore an unsolved problem — no counterexample has ever been found.
- Runs entirely in your browser. No signup, no uploads.
Frequently asked questions
What is the Collatz conjecture?
Start with any positive integer. If it is even, divide by 2; if odd, compute 3n+1. The conjecture states that this process always eventually reaches 1, no matter the starting number.
Is the Collatz conjecture proven?
No. It remains unproven despite enormous effort, though it has been verified by computer for every starting value up to astronomically large numbers.
Why is the number 27 interesting?
Starting from 27 the sequence takes 111 steps and climbs as high as 9232 before finally descending to 1 — surprisingly dramatic for such a small start.
What are these numbers called?
The sequence of values is the Collatz (or 3n+1) trajectory, and the number of steps to reach 1 is its total stopping time.
What is Collatz Conjecture Visualizer?
A Collatz Conjecture Visualizer plots the 3n+1 sequence: from a starting number it halves even values and computes 3n+1 for odd values, charting the trajectory until it reaches 1. The conjecture that every start reaches 1 remains unproven.
Collatz Conjecture Visualizer is a free algorithm utility by Zerethon Tools. Animated Collatz (3n+1) sequence as a line chart — watch the trajectory climb and fall to 1. Step controls. Runs in your browser. Runs entirely in the browser — no signup, no upload.
- Category
- Algorithm
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
Privacy
Your data never leaves your browser unless explicitly stated. Collatz Conjecture Visualizer runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
Bubble Sort Visualizer
Animated bubble sort with step controls, speed, custom input, live comparison/swap counters and pseudocode. Runs entirely in your browser.
Open toolInsertion Sort Visualizer
Animated insertion sort with step controls, speed, custom input, live comparison/write counters and pseudocode. Runs in your browser.
Open toolSelection Sort Visualizer
Animated selection sort with step controls, speed, custom input, live comparison/swap counters and pseudocode. Runs in your browser.
Open toolMerge Sort Visualizer
Animated merge sort with step controls, speed, custom input, live comparison/write counters and pseudocode. Runs in your browser.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.