The Collatz Conjecture
Two rules, any starting number, and a question nobody can answer.
See the rules111 steps to reach 1highest value 9,232
- 27
- 82
- 41
- 124
- 62
- 31
- 94
- 47
- 142
- 71
- 214
- 107
- 322
- 161
- 484
- 242
- 121
- 364
- 182
- 91
- 274
- 137
- 412
- 206
- 103
- 310
- 155
- 466
- 233
- 700
- 350
- 175
- 526
- 263
- 790
- 395
- 1,186
- 593
- 1,780
- 890
- 445
- 1,336
- 668
- 334
- 167
- 502
- 251
- 754
- 377
- 1,132
- 566
- 283
- 850
- 425
- 1,276
- 638
- 319
- 958
- 479
- 1,438
- 719
- 2,158
- 1,079
- 3,238
- 1,619
- 4,858
- 2,429
- 7,288
- 3,644
- 1,822
- 911
- 2,734
- 1,367
- 4,102
- 2,051
- 6,154
- 3,077
- 9,232
- 4,616
- 2,308
- 1,154
- 577
- 1,732
- 866
- 433
- 1,300
- 650
- 325
- 976
- 488
- 244
- 122
- 61
- 184
- 92
- 46
- 23
- 70
- 35
- 106
- 53
- 160
- 80
- 40
- 20
- 10
- 5
- 16
- 8
- 4
- 2
- 1
112 numbers in all; scroll the list to see them. Odd numbers, where the 3n + 1 rule applies, are in bold.
What are the two rules?
Take a positive whole number $n$. If it is even, halve it. If it is odd, multiply it by three and add one. Then do the same to the answer, again and again. Written as a function:
Starting from 6, the rules give
$$6 \to 3 \to 10 \to 5 \to 16 \to 8 \to 4 \to 2 \to 1$$which reaches 1 in eight steps.
Where does every number end?
The conjecture says: whatever number you start from, you always reach 1.
In symbols, where $f^{k}(n)$ means applying $f$ to $n$ a total of $k$ times:
$$\text{for every } n \ge 1, \quad f^{k}(n) = 1 \ \text{ for some } k \ge 0$$Every starting number anyone has tried reaches 1. But trying is not proving: a single number that never arrives would break the conjecture.
Why does it stop at 1?
Because 1 starts a loop. It is odd, so $f(1) = 3 \cdot 1 + 1 = 4$. Then $f(4) = 2$ and $f(2) = 1$:
$$1 \to 4 \to 2 \to 1 \to 4 \to 2 \to \cdots$$Past 1 the sequence only repeats, so reaching 1 is where we stop counting. The conjecture really says that every sequence falls into this one loop.
Can a number climb forever?
Nobody knows, because the rules pull both ways. An odd number can be written $n = 2m + 1$, so
$$3n + 1 = 6m + 4 = 2(3m + 2)$$which is always even. Every odd step is therefore followed by a halving, and the pair takes $n$ to $\frac{3n+1}{2}$, a little more than $\frac{3}{2}n$. A halving on its own takes $n$ to $\frac{1}{2}n$. Climbs and falls compete, and no one has proved that the falls always win.
How far do small numbers travel?
The longest journey below each limit, found by running every starting number. Select one to run it.
| Below | Starting number | Steps | Highest value |
|---|---|---|---|
| 10 | 19 | 52 | |
| 100 | 118 | 9,232 | |
| 1,000 | 178 | 190,996 | |
| 10,000 | 261 | 975,400 |
Any whole number up to 30 digits long.