TOPICS
Search

Collatz Conjecture


The Collatz conjecture is a problem traditionally attributed to L. Collatz. Its exact date of origin is unclear, although Collatz traced its development to investigations of iterations of arithmetic functions begun during his student years from 1928 to 1933 (Lagarias 1985; Wirsching 1998, p. 11; Collatz 2010, pp. 241-245). It is also called the 3x+1 mapping, 3n+1 problem, Hasse's algorithm, Kakutani's problem, Syracuse algorithm, Syracuse problem, Thwaites conjecture, and Ulam's problem (Lagarias 1985). To state the conjecture, let a_0 be an integer and recursively define a sequence by

 a_(n+1)={1/2a_n   if a_n is even; 3a_n+1   if a_n is odd.
(1)

The Collatz conjecture states that this sequence eventually reaches 1 for every positive integer a_0.

The members of the sequence produced by this process are sometimes known as hailstone numbers. Conway proved that the original Collatz conjecture has no nontrivial cycles of length <400. Lagarias (1985) showed that there are no nontrivial cycles with length <275000. Conway (1972) also proved that Collatz-type problems can be formally undecidable. Kurtz and Simon (2007) proved that a natural generalization of the Collatz problem is undecidable; unfortunately, this proof cannot be applied to the original Collatz conjecture.

The following table summarizes reported computational verification limits for the Collatz conjecture.

starting values verified belowsource
5.6×10^(13)Leavens and Vermeulen (1992)
10^(15)Vardi (1991, p. 129)
19·2^(58)Oliveira e Silva (2008)
2^(71)Barina (2025)
2075·2^(60) approx 2^(71.02)Barina (2026)

Tao (2022) proved a strong almost-everywhere result: for every function f(N) tending to infinity, the Collatz orbit of N reaches a value below f(N) for almost all positive integers N in the sense of logarithmic density. This does not prove that every orbit reaches 1, but it shows that almost every orbit eventually falls below any prescribed slowly growing threshold.

Because of the difficulty in solving this problem, Erdős commented that "mathematics is not yet ready for such problems" (Lagarias 1985). Thwaites (1996) offered a £1000 reward for resolving the conjecture.

The following table gives the sequences obtained for the first few starting values (OEIS A070165).

a_0a_0, a_1, a_2, ...
11
22, 1
33, 10, 5, 16, 8, 4, 2, 1
44, 2, 1
55, 16, 8, 4, 2, 1
66, 3, 10, 5, 16, 8, 4, 2, 1
CollatzSteps

The numbers of steps required for the algorithm to reach 1 for a_0=1, 2, ... are 0, 1, 7, 2, 5, 8, 16, 3, 19, 6, 14, 9, 9, 17, 17, 4, 12, 20, 20, 7, ... (OEIS A006577; illustrated above). Of these, the numbers of tripling steps are 0, 0, 2, 0, 1, 2, 5, 0, 6, ... (OEIS A006667), and the number of halving steps are 0, 1, 5, 2, 4, 6, 11, 3, 13, ... (OEIS A006666). The smallest starting values of a_0 that yields a Collatz sequence containing n=1, 2, ... are 1, 2, 3, 3, 3, 6, 7, 3, 9, 3, 7, 12, 7, 9, 15, 3, 7, 18, 19, ... (OEIS A070167).

The Collatz conjecture can be implemented as an 8-register machine (Wolfram 2002, p. 100), quasi-cellular automaton (Cloney et al. 1987, Bruschi 2005), or 6-color one-dimensional quasi-cellular automaton with local rules but which wraps first and last digits around (Zeleny). In general, the difficulty in constructing true local-rule cellular automata arises from the necessity of a carry operation when multiplying by 3 which, in the worst case, can extend the entire length of the base-b representation of digits (and thus require propagating information at faster than the CA's speed of light).

The Terras map was introduced by Terras (1976, 1979), who asked if iterating

 t_n={1/2t_(n-1)   for t_(n-1) even; 1/2(3t_(n-1)+1)   for t_(n-1) odd
(2)

always returns to 1 for initial integer value t_0 (e.g., Lagarias 1985, Cloney et al. 1987). This is simply the original statement above but combining the division by two into the addition step if t_(n-1) is odd, thus compressing the number of steps. The following table gives the sequences for the first few starting values t_0=1, 2, ... (OEIS A070168).

t_0t_1, t_2, ...
11
22, 1
33, 5, 8, 4, 2, 1
44, 2, 1
55, 8, 4, 2, 1
66, 3, 5, 8, 4, 2, 1
77, 11, 17, 26, 13, 20, 10, 5, 8, 4, 2, 1

For the Terras map, if negative numbers are included, there are 4 known cycles: (1, 2), (-1), (-5, -7, -10), and (-17, -25, -37, -55, -82, -41, -61, -91, -136, -68, -34). It is a special case of the "generalized Collatz problem" with d=2, m_0=1, m_1=3, r_0=0, and r_1=-1. Terras (1976, 1979) also proved that the set of integers S_k={n:n has stopping time <=k} has a limiting asymptotic density F(k), such that if N_x(k) is the number of n such that n<=x and sigma(n)<=k, then the limit

 F(k)=lim_(x->infty)(N_x(k))/x,
(3)

exists. Furthermore, F(k)->1 as k->infty, so almost all integers have a finite stopping time. Finally, for all k>=1,

 1-F(k)<=2^(-etak),
(4)

where

H(x)=-xlgx-(1-x)lg(1-x)
(5)
theta=1/(lg3)
(6)
eta=1-H(theta)=0.05004...
(7)

(Lagarias 1985).

The Matthews map generalizes this construction to a broader family of piecewise integer iterations, with analogous questions about cycles and divergence.


See also

Hailstone Number, Juggler Sequence, Logarithmic Density, Matthews Map, Terras Map, Wolfram Sequences

Explore with Wolfram|Alpha

References

Applegate, D. and Lagarias, J. C. "Density Bounds for the 3x+1 Problem 1. Tree-Search Method." Math. Comput. 64, 411-426, 1995.Applegate, D. and Lagarias, J. C. "Density Bounds for the 3x+1 Problem 2. Krasikov Inequalities." Math. Comput. 64, 427-438, 1995.Barina, D. "Improved Verification Limit for the Convergence of the Collatz Conjecture." J. Supercomput. 81, Article 810, 2025. https://doi.org/10.1007/s11227-025-07337-0.Barina, D. "Collatz Conjecture Verification." Sep. 6, 2026. https://pcbarina.fit.vut.cz/.Bruschi, M. "Two Cellular Automata for the 3x+1 Map." 26 Feb, 2005. https://arxiv.org/abs/nlin/0502061.Burckel, S. "Functional Equations Associated with Congruential Functions." Theor. Comp. Sci. 123, 397-406, 1994.Cloney, T.; Goles, E.; and Vichniac, G. Y. "The 3x+1 Problem: A Quasi Cellular Automaton." Complex Sys. 1, 349-360, 1987.Collatz, L. "On the Motivation and Origin of the (3n+1)-Problem." In The Ultimate Challenge: The 3x+1 Problem (Ed. J. C. Lagarias). Providence, RI: Amer. Math. Soc., pp. 241-245, 2010.Conway, J. H. "Unpredictable Iterations." Proc. 1972 Number Th. Conf., University of Colorado, Boulder, Colorado, pp. 49-52, 1972.Crandall, R. "On the '3x+1' Problem." Math. Comput. 32, 1281-1292, 1978.De Mol, L. "Tag Systems and Collatz-Like Functions." Theor. Comput. Sci. 390, 92-101, 2008.Everett, C. "Iteration of the Number Theoretic Function f(2n)=n, f(2n+1)=f(3n+2)." Adv. Math. 25, 42-45, 1977.Guy, R. K. "Collatz's Sequence." §E16 in Unsolved Problems in Number Theory, 2nd ed. New York: Springer-Verlag, pp. 215-218, 1994.Kurtz, S. A. and Simon, J. "The Undecidability of the Generalized Collatz Problem." In Theory and Applications of Models of Computation: Proceedings of the 4th International Conference (TAMC 2007) Held in Shanghai, May 22-25, 2007 (Ed. J.-Y. Cai, S. B. Cooper, and H. Zhu). Berlin, Germany: Springer, pp. 542-553, 2007.Lagarias, J. C. "The 3x+1 Problem and Its Generalizations." Amer. Math. Monthly 92, 3-23, 1985.Leavens, G. T. and Vermeulen, M. "3x+1 Search Programs." Comput. Math. Appl. 24, 79-99, 1992.Margenstern, M. and Matiyasevich, Y. "A Binomial Representation of the 3x+1 Problem." Acta Arith. 91, 367-378, 1999.Numberphile. "UNCRACKABLE? The Collatz Conjecture." Featuring D. Eisenbud; video by B. Haran. Aug. 8, 2016. https://www.youtube.com/watch?v=5mFpVDpKX70.Oliveira e Silva, T. "Maximum Excursion and Stopping Time Record-Holders for the 3x+1 Problem: Computational Results." Math. Comput. 68, 371-384, 1999.Oliveira e Silva, T. "Computational Verification of the 3x+1 Conjecture." Sep. 19, 2008. https://sweet.ua.pt/tos/3x+1.html.Schroeppel, R.; Gosper, R. W.; Henneman, W.; and Banks, R. Item 133 in Beeler, M.; Gosper, R. W.; and Schroeppel, R. HAKMEM. Cambridge, MA: MIT Artificial Intelligence Laboratory, Memo AIM-239, p. 64, Feb. 1972. https://www.inwap.com/pdp10/hbaker/hakmem/flows.html#item133.Sloane, N. J. A. Sequences A006577/M4323, A006666/M3733, A006667/M0019, A070165, A070166, A070167, A070168, in "The On-Line Encyclopedia of Integer Sequences."Tao, T. "Almost All Orbits of the Collatz Map Attain Almost Bounded Values." Forum Math. Pi 10, e12, 2022. https://doi.org/10.1017/fmp.2022.8.Terras, R. "A Stopping Time Problem on the Positive Integers." Acta Arith. 30, 241-252, 1976.Terras, R. "On the Existence of a Density." Acta Arith. 35, 101-102, 1979.Thwaites, B. "Two Conjectures, or How to Win £1100." Math. Gaz. 80, 35-36, 1996.Vardi, I. "The 3x+1 Problem." Ch. 7 in Computational Recreations in Mathematica. Redwood City, CA: Addison-Wesley, pp. 129-137, 1991.Veritasium. "The Simplest Math Problem No One Can Solve-Collatz Conjecture." Jul. 30, 2021. https://www.youtube.com/watch?v=094y1Z2wpJg.Wirsching, G. J. The Dynamical System Generated by the 3n+1 Function. Berlin, Germany: Springer-Verlag, 1998.Wirsching, G. J. "Über das 3n+1 Problem." Elem. Math. 55, 142-155, 2000.Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, pp. 100, 122, and 904, 2002. Zeleny, E. "Collatz Problem as a Cellular Automaton." 2007. https://demonstrations.wolfram.com/CollatzProblemAsACellularAutomaton/.

Cite this as:

Weisstein, Eric W. "Collatz Conjecture." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CollatzConjecture.html

Subject classifications