Lably
Skip to content

Collatz conjecture

Open problem on 3x+1 and x/2 functions

  • 22 min read
  • 11 chapters
  • 1 lab on Lably

Learn it on Lably

It is named after the mathematician Lothar Collatz, who introduced the idea in 1937, two years after receiving his doctorate. The sequence of numbers involved is sometimes referred to as the hailstone sequence, hailstone numbers or hailstone numerals (because the values are usually subject to multiple descents and ascents like hailstones in a cloud), or as wondrous numbers.

Paul Erdős said about the Collatz conjecture: "Mathematics may not be ready for such problems." Jeffrey Lagarias stated in 2010 that the Collatz conjecture "is an extraordinarily difficult problem, completely out of reach of present day mathematics". However, though the Collatz conjecture itself remains open, efforts to solve the problem have led to new techniques and many partial results.

Statement of the problem

Consider the following operation on an arbitrary positive integer:

  • If the number is even, divide it by two.
  • If the number is odd, triple it and add one.

In modular arithmetic notation, define the function f as follows: f(n)={n/2if n≡0(mod2),3n+1if n≡1(mod2).

Now form a sequence by performing this operation repeatedly, beginning with any positive integer, and taking the result at each step as the input at the next.

In notation: ai={nfor i=0,f(ai−1)for i>0 (that is: ai is the value of f applied to n recursively i times; ai = f i(n)).

The Collatz conjecture is: This process will eventually reach the number 1, regardless of which positive integer is chosen initially. That is, for each n, there is some i with ai=1.

If the conjecture is false, it can only be because there is some starting number which gives rise to a sequence that does not contain 1. Such a sequence would either enter a repeating cycle that excludes 1, or increase without bound. No such sequence has been found.

The smallest i such that ai < a0 (i.e., how many iterations to reach a number less than the starting number) is called the stopping time of n. Similarly, the smallest k such that ak = 1 (i.e., how many iterations to reach 1) is called the total stopping time of n. If one of the indexes i or k does not exist, we say that the stopping time or the total stopping time, respectively, is infinite.

The Collatz conjecture asserts that the total stopping time of every n is finite. It is also equivalent to saying that every n ≥ 2 has a finite stopping time.

Since 3n + 1 is even whenever n is odd, one may instead use the "shortcut" form of the Collatz function: f(n)={n2if n≡0(mod2),3n+12if n≡1(mod2). This definition yields smaller values for the stopping time and total stopping time without changing the overall dynamics of the process.

Sign in to keep reading

10 more chapters are free with a Lably account.

More in Number theory