The Collatz Conjecture

Two rules, any starting number, and a question nobody can answer.

See the rules

111 steps to reach 1highest value 9,232

9,232
  1. 27
  2. 82
  3. 41
  4. 124
  5. 62
  6. 31
  7. 94
  8. 47
  9. 142
  10. 71
  11. 214
  12. 107
  13. 322
  14. 161
  15. 484
  16. 242
  17. 121
  18. 364
  19. 182
  20. 91
  21. 274
  22. 137
  23. 412
  24. 206
  25. 103
  26. 310
  27. 155
  28. 466
  29. 233
  30. 700
  31. 350
  32. 175
  33. 526
  34. 263
  35. 790
  36. 395
  37. 1,186
  38. 593
  39. 1,780
  40. 890
  41. 445
  42. 1,336
  43. 668
  44. 334
  45. 167
  46. 502
  47. 251
  48. 754
  49. 377
  50. 1,132
  51. 566
  52. 283
  53. 850
  54. 425
  55. 1,276
  56. 638
  57. 319
  58. 958
  59. 479
  60. 1,438
  61. 719
  62. 2,158
  63. 1,079
  64. 3,238
  65. 1,619
  66. 4,858
  67. 2,429
  68. 7,288
  69. 3,644
  70. 1,822
  71. 911
  72. 2,734
  73. 1,367
  74. 4,102
  75. 2,051
  76. 6,154
  77. 3,077
  78. 9,232
  79. 4,616
  80. 2,308
  81. 1,154
  82. 577
  83. 1,732
  84. 866
  85. 433
  86. 1,300
  87. 650
  88. 325
  89. 976
  90. 488
  91. 244
  92. 122
  93. 61
  94. 184
  95. 92
  96. 46
  97. 23
  98. 70
  99. 35
  100. 106
  101. 53
  102. 160
  103. 80
  104. 40
  105. 20
  106. 10
  107. 5
  108. 16
  109. 8
  110. 4
  111. 2
  112. 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:

$$f(n) = \begin{cases} \dfrac{n}{2} & \text{if } n \text{ is even} \\[4pt] 3n + 1 & \text{if } n \text{ is odd} \end{cases}$$

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.

BelowStarting numberStepsHighest value
101952
1001189,232
1,000178190,996
10,000261975,400

Try a number of your own

Any whole number up to 30 digits long.