Skip to content
Tutorial · 6 min read
0% read

Understanding the Collatz conjecture — the 3n+1 sequence step by step

The Collatz conjecture — also known as the 3n+1 problem — follows a tiny rule: halve even numbers, and for odd numbers multiply by 3 and add 1. The astonishing part is that no matter where you start, you seemingly always end up at 1. We trace this with the starting number 6 (8 steps) and take a look at the infamous 27, which needs 111 steps. A classic number-theory enrichment topic from Grade 9 onwards.

Quick answer

The Collatz conjecture is one simple rule: if a number is even, halve it (n/2); if it's odd, compute 3n + 1. Repeat, and — so the conjecture claims — you always reach 1. Example: 6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1, which is 8 steps. To this day no one has proven it.

At a glance

Summary of this tutorial
Example6 → 3 → 10 → … → 1
Ruleeven → n/2, odd → 3n+1
Steps8
Peak value16
Stopping time of 27111 steps (peak 9232)
Grade levelGrade 9+ / Enrichment

Worked example: 6 → 3 → 10 → … → 1

EXAMPLE
6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1

We start at 6 and apply the rule until we reach 1.

How to compute a Collatz sequence

These steps work for any positive whole starting number.

  1. Step 1 · Start

    n = 6
    Starting number. 6 is even, so we halve it.
  2. Step 2 · ÷2

    6/2 = 3
    Even → divide by 2. The result 3 is odd.
  3. Step 3 · 3n+1

    3·3+1 = 10
    Odd → multiply by 3 and add 1.
  4. Step 4 · continue

    10 → 5 → 16 → 8 → 4 → 2 → 1
    Keep applying the rule until 1 appears (peak value 16).
  5. Step 5 · Stopping time

    = 8 steps
    It takes 8 steps to get from 6 down to 1.

Why the sequence (probably) always ends at 1

Halving shrinks a number, while the 3n + 1 step grows it at first — but the result is always even and is immediately halved again. On average shrinking wins: across many steps each odd number is effectively multiplied by about 3/4 rather than 3, so the sequence tends downward over time. Once you hit a power of two such as 16, 8, 4, 2, everything slides straight down to 1. A complete proof, however, still does not exist.

Practice it yourself

Frequently asked questions

End of tutorial
Cite this page: LearnMath, "Collatz conjecture", .