Collatz Problem
   HOME

TheInfoList



OR:

The Collatz conjecture is one of the most famous unsolved problems in
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
. The conjecture asks whether repeating two simple arithmetic operations will eventually transform every positive integer into 1. It concerns sequences of integers in which each term is obtained from the previous term as follows: if the previous term is
even Even may refer to: General * Even (given name), a Norwegian male personal name * Even (surname) * Even (people), an ethnic group from Siberia and Russian Far East ** Even language, a language spoken by the Evens * Odd and Even, a solitaire game w ...
, the next term is one half of the previous term. If the previous term is odd, the next term is 3 times the previous term plus 1. The conjecture is that these sequences always reach 1, no matter which positive integer is chosen to start the sequence. It is named after mathematician
Lothar Collatz Lothar Collatz (; July 6, 1910 – September 26, 1990) was a German mathematician, born in Arnsberg, Westphalia. The "3''x'' + 1" problem is also known as the Collatz conjecture, named after him and still unsolved. The Collatz–Wielandt formula ...
, who introduced the idea in 1937, two years after receiving his doctorate. It is also known as the problem, the conjecture, the Ulam conjecture (after
Stanisław Ulam Stanisław Marcin Ulam (; 13 April 1909 – 13 May 1984) was a Polish-American scientist in the fields of mathematics and nuclear physics. He participated in the Manhattan Project, originated the Teller–Ulam design of thermonuclear weapon ...
), Kakutani's problem (after
Shizuo Kakutani was a Japanese-American mathematician, best known for his eponymous fixed-point theorem. Biography Kakutani attended Tohoku University in Sendai, where his advisor was Tatsujirō Shimizu. At one point he spent two years at the Institute for ...
), the Thwaites conjecture (after Sir Bryan Thwaites), Hasse's algorithm (after Helmut Hasse), or the Syracuse problem. 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 Hail is a form of solid precipitation. It is distinct from ice pellets (American English "sleet"), though the two are often confused. It consists of balls or irregular lumps of ice, each of which is called a hailstone. Ice pellets generally fa ...
in a cloud), or as wondrous numbers.
Paul Erdős Paul Erdős ( hu, Erdős Pál ; 26 March 1913 – 20 September 1996) was a Hungarian mathematician. He was one of the most prolific mathematicians and producers of mathematical conjectures of the 20th century. pursued and proposed problems in ...
said about the Collatz conjecture: "Mathematics may not be ready for such problems." He also offered US$500 for its solution.
Jeffrey Lagarias Jeffrey Clark Lagarias (born November 16, 1949 in Pittsburgh, Pennsylvania, United States) is a mathematician and professor at the University of Michigan. Education While in high school in 1966, Lagarias studied astronomy at the Summer Science ...
stated in 2010 that the Collatz conjecture "is an extraordinarily difficult problem, completely out of reach of present day mathematics".


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 In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his book ...
notation, define the
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-oriente ...
as follows: f(n) = \begin \frac &\text n \equiv 0 \pmod\\ px3n+1 & \text n\equiv 1 \pmod .\end 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: a_i = \beginn & \text i = 0 \\ f(a_) & \text i > 0 \end (that is: is the value of applied to recursively times; ). The Collatz conjecture is: ''This process will eventually reach the number 1, regardless of which positive integer is chosen initially.'' 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 such that is called the stopping time of . Similarly, the smallest such that is called the total stopping time of . If one of the indexes or doesn't 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 is finite. It is also equivalent to saying that every has a finite stopping time. Since is even whenever is odd, one may instead use the "shortcut" form of the Collatz function: f(n) = \begin \frac &\text n \equiv 0 \pmod,\\ px\frac & \text n\equiv 1 \pmod. \end This definition yields smaller values for the stopping time and total stopping time without changing the overall dynamics of the process.


Empirical data

For instance, starting with and applying the function without "shortcut", one gets the sequence 12, 6, 3, 10, 5, 16, 8, 4, 2, 1. The number takes longer to reach 1: 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. The sequence for , listed and graphed below, takes 111 steps (41 steps through odd numbers, in bold), climbing as high as 9232 before descending to 1. : 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, 1186, 593, 1780, 890, 445, 1336, 668, 334, 167, 502, 251, 754, 377, 1132, 566, 283, 850, 425, 1276, 638, 319, 958, 479, 1438, 719, 2158, 1079, 3238, 1619, 4858, 2429, 7288, 3644, 1822, 911, 2734, 1367, 4102, 2051, 6154, 3077, 9232, 4616, 2308, 1154, 577, 1732, 866, 433, 1300, 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 Numbers with a total stopping time longer than that of any smaller starting value form a sequence beginning with: :1, 2, 3, 6, 7, 9, 18, 25, 27, 54, 73, 97, 129, 171, 231, 313, 327, 649, 703, 871, 1161, 2223, 2463, 2919, 3711, 6171, ... . The starting values whose maximum trajectory point is greater than that of any smaller starting value are as follows: :1, 2, 3, 7, 15, 27, 255, 447, 639, 703, 1819, 4255, 4591, 9663, 20895, 26623, 31911, 60975, 77671, 113383, 138367, 159487, 270271, 665215, 704511, ... Number of steps for to reach 1 are :0, 1, 7, 2, 5, 8, 16, 3, 19, 6, 14, 9, 9, 17, 17, 4, 12, 20, 20, 7, 7, 15, 15, 10, 23, 10, 111, 18, 18, 18, 106, 5, 26, 13, 13, 21, 21, 21, 34, 8, 109, 8, 29, 16, 16, 16, 104, 11, 24, 24, ... The starting value having the largest total stopping time while being :less than 10 is 9, which has 19 steps, :less than 100 is 97, which has 118 steps, :less than 1000 is 871, which has 178 steps, :less than 104 is 6171, which has 261 steps, :less than 105 is , which has 350 steps, :less than 106 is , which has 524 steps, :less than 107 is , which has 685 steps, :less than 108 is , which has 949 steps, :less than 109 is , which has 986 steps, :less than 1010 is , which has 1132 steps, :less than 1011 is , which has 1228 steps, :less than 1012 is , which has 1348 steps. (Note: "Delay records" are total stopping time records.) These numbers are the lowest ones with the indicated step count, but not necessarily the only ones below the given limit. As an example, has 1132 steps, as does . The starting values having the smallest total stopping time with respect to their number of digits (in base 2) are the
powers of two A power of two is a number of the form where is an integer, that is, the result of exponentiation with number two as the base and integer  as the exponent. In a context where only integers are considered, is restricted to non-negative ...
since is halved times to reach 1, and is never increased.


Visualizations

File:Collatz orbits of the all integers up to 1000.svg, Directed graph showing the orbits of the first 1000 numbers. File:CollatzConjectureGraphMaxValues.jpg, The axis represents starting number, the axis represents the highest number reached during the chain to 1. This plot shows a restricted axis: some values produce intermediates as high as (for ) File:Collatz-max.png, The same plot on the left but on log scale, so all values are shown. The first thick line towards the middle of the plot corresponds to the tip at 27, which reaches a maximum at 4616. File:All Collatz sequences of a length inferior to 20.svg, The tree of all the numbers having fewer than 20 steps. File:Collatz Conjecture 100M.jpg, alt=Collatz Conjecture 100M, The number of iterations it takes to get to one for the first 100 million numbers.


Supporting arguments

Although the conjecture has not been proven, most mathematicians who have looked into the problem think the conjecture is true because experimental evidence and heuristic arguments support it.


Experimental evidence

, the conjecture has been checked by computer for all starting values up to 268 ≈ . All initial values tested so far eventually end in the repeating cycle of period 3. This computer evidence is not sufficient to prove that the conjecture is true for all starting values. As in the case of some disproved conjectures, like the
Pólya conjecture In number theory, the Pólya conjecture (or Pólya's conjecture) stated that "most" (i.e., 50% or more) of the natural numbers less than any given number have an ''odd'' number of prime factors. The conjecture was set forth by the Hungarian mat ...
,
counterexamples A counterexample is any exception to a generalization. In logic a counterexample disproves the generalization, and does so rigorously in the fields of mathematics and philosophy. For example, the fact that "John Smith is not a lazy student" is ...
might be found when considering very large numbers. However, such verifications may have other implications. For example, one can derive additional constraints on the period and structural form of a non-trivial cycle.


A probabilistic heuristic

If one considers only the ''odd'' numbers in the sequence generated by the Collatz process, then each odd number is on average of the previous one. (More precisely, the geometric mean of the ratios of outcomes is .) This yields a heuristic argument that every Hailstone sequence should decrease in the long run, although this is not evidence against other cycles, only against divergence. The argument is not a proof because it assumes that Hailstone sequences are assembled from uncorrelated probabilistic events. (It does rigorously establish that the 2-adic extension of the Collatz process has two division steps for every multiplication step for
almost all In mathematics, the term "almost all" means "all but a negligible amount". More precisely, if X is a set, "almost all elements of X" means "all elements of X but those in a negligible subset of X". The meaning of "negligible" depends on the math ...
2-adic starting values.)


Stopping times

As proven by
Riho Terras Riho Terras (born 17 April 1967) is an Estonian politician and a former military officer who is serving as a member of the European Parliament since 1 February 2020. He was the Commander of the Estonian Defence Forces from 2011 to 2018. He w ...
, almost every positive integer has a finite stopping time. In other words, almost every Collatz sequence reaches a point that is strictly below its initial value. The proof is based on the distribution of parity vectors and uses the
central limit theorem In probability theory, the central limit theorem (CLT) establishes that, in many situations, when independent random variables are summed up, their properly normalized sum tends toward a normal distribution even if the original variables themselv ...
. In 2019,
Terence Tao Terence Chi-Shen Tao (; born 17 July 1975) is an Australian-American mathematician. He is a professor of mathematics at the University of California, Los Angeles (UCLA), where he holds the James and Carol Collins chair. His research includes ...
improved this result by showing, using logarithmic
density Density (volumetric mass density or specific mass) is the substance's mass per unit of volume. The symbol most often used for density is ''ρ'' (the lower case Greek letter rho), although the Latin letter ''D'' can also be used. Mathematical ...
, that
almost all In mathematics, the term "almost all" means "all but a negligible amount". More precisely, if X is a set, "almost all elements of X" means "all elements of X but those in a negligible subset of X". The meaning of "negligible" depends on the math ...
Collatz orbits are descending below any given function of the starting point, provided that this function diverges to infinity, no matter how slowly. Responding to this work, '' Quanta Magazine'' wrote that Tao "came away with one of the most significant results on the Collatz conjecture in decades".


Lower bounds

In a computer-aided proof, Krasikov and Lagarias showed that the number of integers in the interval that eventually reach 1 is at least equal to for all sufficiently large .


Cycles

In this part, consider the shortcut form of the Collatz function f(n) = \begin \frac &\text n \equiv 0 \pmod,\\ px\frac & \text n \equiv 1 \pmod. \end A cycle is a sequence of distinct positive integers where , , ..., and . The only known cycle is of period 2, called the trivial cycle.


Cycle length

The length of a non-trivial cycle is known to be at least . In fact, Eliahou (1993) proved that the period of any non-trivial cycle is of the form p = 301994 a + 17087915 b + 85137581 c where , and are non-negative integers, and . This result is based on the
continued fraction In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integer ...
expansion of .


-cycles

A -cycle is a cycle that can be partitioned into contiguous subsequences: increasing sequences of odd numbers alternating with decreasing sequences of even numbers. For instance, if the cycle consists of a single increasing sequence of odd numbers followed by a decreasing sequence of even numbers, it is called a ''1-cycle''. Steiner (1977) proved that there is no 1-cycle other than the trivial . Simons (2005) used Steiner's method to prove that there is no 2-cycle. Simons & de Weger (2005) extended this proof up to 68-cycles: there is no -cycle up to . For each beyond 68, this method gives an upper bound for the smallest term of a -cycle: for example, if there is a 77-cycle, then at least one element of the cycle is less than . Along with the verification of the conjecture up to , this implies the nonexistence of a non-trivial -cycle up to . As exhaustive computer searches continue, larger values may be ruled out. To state the argument more intuitively: we need not look for cycles that have at most 77 circuits, where each circuit consists of consecutive ups followed by consecutive downs.


Other formulations of the conjecture


In reverse

There is another approach to prove the conjecture, which considers the bottom-up method of growing the so-called ''Collatz graph''. The ''Collatz graph'' is a
graph Graph may refer to: Mathematics *Graph (discrete mathematics), a structure made of vertices and edges **Graph theory, the study of such graphs and their properties *Graph (topology), a topological space resembling a graph in the sense of discre ...
defined by the inverse
relation Relation or relations may refer to: General uses *International relations, the study of interconnection of politics, economics, and law on a global level *Interpersonal relationship, association or acquaintance between two or more people *Public ...
R(n) = \begin \ & \text n\equiv 0,1,2,3,5 \\ px\left\ & \text n\equiv 4 \end \pmod 6. So, instead of proving that all positive integers eventually lead to 1, we can try to prove that 1 leads backwards to all positive integers. For any integer ,
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bicondi ...
. Equivalently, if and only if . Conjecturally, this inverse relation forms a
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, including only woody plants with secondary growth, plants that are ...
except for the 1–2–4 loop (the inverse of the 4–2–1 loop of the unaltered function defined in the Statement of the problem section of this article). When the relation of the function is replaced by the common substitute "shortcut" relation , the Collatz graph is defined by the inverse relation, R(n) = \begin \ & \text n\equiv 0,1 \\ px\left\ & \text n\equiv 2 \end \pmod 3. For any integer , if and only if . Equivalently, if and only if . Conjecturally, this inverse relation forms a tree except for a 1–2 loop (the inverse of the 1–2 loop of the function f(n) revised as indicated above). Alternatively, replace the with where and is the highest
power of 2 A power of two is a number of the form where is an integer, that is, the result of exponentiation with number two as the base and integer  as the exponent. In a context where only integers are considered, is restricted to non-negative ...
that divides (with no
remainder In mathematics, the remainder is the amount "left over" after performing some computation. In arithmetic, the remainder is the integer "left over" after dividing one integer by another to produce an integer quotient ( integer division). In algeb ...
). The resulting function maps from
odd number In mathematics, parity is the property of an integer of whether it is even or odd. An integer is even if it is a multiple of two, and odd if it is not.. For example, −4, 0, 82 are even because \begin -2 \cdot 2 &= -4 \\ 0 \cdot 2 &= 0 \\ 41 ...
s to odd numbers. Now suppose that for some odd number , applying this operation times yields the number 1 (that is, ). Then in
binary Binary may refer to: Science and technology Mathematics * Binary number, a representation of numbers using only two digits (0 and 1) * Binary function, a function that takes two arguments * Binary operation, a mathematical operation that ta ...
, the number can be written as the concatenation of
strings String or strings may refer to: *String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects Arts, entertainment, and media Films * ''Strings'' (1991 film), a Canadian anim ...
where each is a finite and contiguous extract from the representation of . The representation of therefore holds the repetends of , where each repetend is optionally rotated and then replicated up to a finite number of bits. It is only in binary that this occurs. Conjecturally, every binary string that ends with a '1' can be reached by a representation of this form (where we may add or delete leading '0's to ).


As an abstract machine that computes in base two

Repeated applications of the Collatz function can be represented as an
abstract machine An abstract machine is a computer science theoretical model that allows for a detailed and precise analysis of how a computer system functions. It is analogous to a mathematical function in that it receives inputs and produces outputs based on pr ...
that handles
strings String or strings may refer to: *String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects Arts, entertainment, and media Films * ''Strings'' (1991 film), a Canadian anim ...
of
bit The bit is the most basic unit of information in computing and digital communications. The name is a portmanteau of binary digit. The bit represents a logical state with one of two possible values. These values are most commonly represente ...
s. The machine will perform the following three steps on any odd number until only one remains: # Append to the (right) end of the number in binary (giving ); # Add this to the original number by binary addition (giving ); # Remove all trailing s (that is, repeatedly divide by 2 until the result is odd).


Example

The starting number 7 is written in base two as . The resulting Collatz sequence is:
111 1111 10110 10111 100010 100011 110100 11011 101000 1011 10000


As a parity sequence

For this section, consider the Collatz function in the slightly modified form f(n) = \begin \frac &\text n \equiv 0 \\ px\frac & \text n \equiv 1 \end \pmod. This can be done because when is odd, is always even. If is the parity of a number, that is and , then we can define the Collatz parity sequence (or parity vector) for a number as , where , and . Which operation is performed, or , depends on the parity. The parity sequence is the same as the sequence of operations. Using this form for , it can be shown that the parity sequences for two numbers and will agree in the first terms if and only if and are equivalent modulo . This implies that every number is uniquely identified by its parity sequence, and moreover that if there are multiple Hailstone cycles, then their corresponding parity cycles must be different. Applying the function times to the number will give the result , where is the result of applying the function times to , and is how many increases were encountered during that sequence. For example, for there are 3 increases as 1 iterates to 2, 1, 2, 1, and finally to 2 so the result is ; for there is only 1 increase as 1 rises to 2 and falls to 1 so the result is . When is then there will be rises and the result will be . The factor of 3 multiplying is independent of the value of ; it depends only on the behavior of . This allows one to predict that certain forms of numbers will always lead to a smaller number after a certain number of iterations: for example, becomes after two applications of and becomes after 4 applications of . Whether those smaller numbers continue to 1, however, depends on the value of .


As a tag system

For the Collatz function in the form f(n) = \begin \frac &\text n \equiv 0 \\ px\frac & \text n \equiv 1. \end \pmod Hailstone sequences can be computed by the 2-tag system with production rules :, , . In this system, the positive integer is represented by a string of copies of , and iteration of the tag operation halts on any word of length less than 2. (Adapted from De Mol.) The Collatz conjecture equivalently states that this tag system, with an arbitrary finite string of as the initial word, eventually halts (see ''
Tag system A tag system is a deterministic computational model published by Emil Leon Post in 1943 as a simple form of a Post canonical system. A tag system may also be viewed as an abstract machine, called a Post tag machine (not to be confused with Post–T ...
'' for a worked example).


Extensions to larger domains


Iterating on all integers

An extension to the Collatz conjecture is to include all integers, not just positive integers. Leaving aside the cycle 0 → 0 which cannot be entered from outside, there are a total of four known cycles, which all nonzero integers seem to eventually fall into under iteration of . These cycles are listed here, starting with the well-known cycle for positive : Odd values are listed in large bold. Each cycle is listed with its member of least absolute value (which is always odd) first. The generalized Collatz conjecture is the assertion that every integer, under iteration by , eventually falls into one of the four cycles above or the cycle 0 → 0. (The 0 → 0 cycle is only included for the sake of completeness.)


Iterating on rationals with odd denominators

The Collatz map can be extended to (positive or negative) rational numbers which have odd denominators when written in lowest terms. The number is taken to be 'odd' or 'even' according to whether its numerator is odd or even. Then the formula for the map is exactly the same as when the domain is the integers: an 'even' such rational is divided by 2; an 'odd' such rational is multiplied by 3 and then 1 is added. A closely related fact is that the Collatz map extends to the ring of 2-adic integers, which contains the ring of rationals with odd denominators as a subring. When using the "shortcut" definition of the Collatz map, it is known that any periodic parity sequence is generated by exactly one rational. Conversely, it is conjectured that every rational with an odd denominator has an eventually cyclic parity sequence (Periodicity Conjecture). If a parity cycle has length and includes odd numbers exactly times at indices , then the unique rational which generates immediately and periodically this parity cycle is For example, the parity cycle has length 7 and four odd terms at indices 0, 2, 3, and 6. It is repeatedly generated by the fraction \frac = \frac as the latter leads to the rational cycle \frac \rightarrow \frac \rightarrow \frac \rightarrow \frac \rightarrow \frac \rightarrow \frac \rightarrow \frac \rightarrow \frac . Any cyclic permutation of is associated to one of the above fractions. For instance, the cycle is produced by the fraction \frac = \frac . For a one-to-one correspondence, a parity cycle should be ''irreducible'', that is, not partitionable into identical sub-cycles. As an illustration of this, the parity cycle and its sub-cycle are associated to the same fraction when reduced to lowest terms. In this context, assuming the validity of the Collatz conjecture implies that and are the only parity cycles generated by positive whole numbers (1 and 2, respectively). If the odd denominator of a rational is not a multiple of 3, then all the iterates have the same denominator and the sequence of numerators can be obtained by applying the " " generalization of the Collatz function T_d(x) = \begin \frac &\text x \equiv 0 \pmod,\\ px \frac & \text x\equiv 1 \pmod. \end


2-adic extension

The function T(x) = \begin \frac &\text x \equiv 0 \pmod\\ px\frac & \text x\equiv 1 \pmod \end is well-defined on the ring \mathbb_2 of 2-adic integers, where it is continuous and
measure-preserving In mathematics, a measure-preserving dynamical system is an object of study in the abstract formulation of dynamical systems, and ergodic theory in particular. Measure-preserving systems obey the Poincaré recurrence theorem, and are a special cas ...
with respect to the 2-adic measure. Moreover, its dynamics is known to be ergodic. Define the ''parity vector'' function acting on \mathbb_2 as Q(x) = \sum_^ \left( T^k (x) \mod 2 \right) 2^k . The function is a 2-adic
isometry In mathematics, an isometry (or congruence, or congruent transformation) is a distance-preserving transformation between metric spaces, usually assumed to be bijective. The word isometry is derived from the Ancient Greek: ἴσος ''isos'' mea ...
. Consequently, every infinite parity sequence occurs for exactly one 2-adic integer, so that
almost all In mathematics, the term "almost all" means "all but a negligible amount". More precisely, if X is a set, "almost all elements of X" means "all elements of X but those in a negligible subset of X". The meaning of "negligible" depends on the math ...
trajectories are acyclic in \mathbb_2. An equivalent formulation of the Collatz conjecture is that Q\left(\mathbb^\right) \subset \tfrac13 \mathbb.


Iterating on real or complex numbers

The Collatz map (with shortcut) can be viewed as the restriction to the integers of the
smooth Smooth may refer to: Mathematics * Smooth function, a function that is infinitely differentiable; used in calculus and topology * Smooth manifold, a differentiable manifold for which all the transition maps are smooth functions * Smooth algebrai ...
map A map is a symbolic depiction emphasizing relationships between elements of some space, such as objects, regions, or themes. Many maps are static, fixed to paper or some other durable medium, while others are dynamic or interactive. Although ...
f(z)=\frac z \cos^2\left(\frac z\right)+\frac \sin^2\left(\frac z\right). The
iterations Iteration is the repetition of a process in order to generate a (possibly unbounded) sequence of outcomes. Each repetition of the process is a single iteration, and the outcome of each iteration is then the starting point of the next iteration. ...
of this map on the
real line In elementary mathematics, a number line is a picture of a graduated straight line (geometry), line that serves as visual representation of the real numbers. Every point of a number line is assumed to correspond to a real number, and every real ...
lead to a
dynamical system In mathematics, a dynamical system is a system in which a Function (mathematics), function describes the time dependence of a Point (geometry), point in an ambient space. Examples include the mathematical models that describe the swinging of a ...
, further investigated by Chamberland. He showed that the conjecture does not hold for positive real numbers since there are infinitely many fixed points, as well as orbits escaping monotonically to infinity. The function has two attracting cycles of period 2, and . Moreover, the set of unbounded orbits is conjectured to be of
measure Measure may refer to: * Measurement, the assignment of a number to a characteristic of an object or event Law * Ballot measure, proposed legislation in the United States * Church of England Measure, legislation of the Church of England * Mea ...
0. Letherman, Schleicher, and Wood extended the study to the
complex plane In mathematics, the complex plane is the plane formed by the complex numbers, with a Cartesian coordinate system such that the -axis, called the real axis, is formed by the real numbers, and the -axis, called the imaginary axis, is formed by the ...
, where most of the points have orbits that diverge to infinity (colored region on the illustration). The boundary between the colored region and the black components, namely the
Julia set In the context of complex dynamics, a branch of mathematics, the Julia set and the Fatou set are two complementary sets (Julia "laces" and Fatou "dusts") defined from a function. Informally, the Fatou set of the function consists of values wi ...
of , is a
fractal In mathematics, a fractal is a geometric shape containing detailed structure at arbitrarily small scales, usually having a fractal dimension strictly exceeding the topological dimension. Many fractals appear similar at various scales, as illu ...
pattern, sometimes called the "Collatz fractal".


Optimizations


Time–space tradeoff

The section '' As a parity sequence'' above gives a way to speed up simulation of the sequence. To jump ahead steps on each iteration (using the function from that section), break up the current number into two parts, (the least significant bits, interpreted as an integer), and (the rest of the bits as an integer). The result of jumping ahead is given by :. The values of (or better ) and can be precalculated for all possible -bit numbers , where is the result of applying the function times to , and is the number of odd numbers encountered on the way. For example, if , one can jump ahead 5 steps on each iteration by separating out the 5 least significant bits of a number and using : (0...31, 5) = , : (0...31, 5) = . This requires
precomputation In algorithms, precomputation is the act of performing an initial computation before run time to generate a lookup table that can be used by an algorithm to avoid repeated computation each time it is executed. Precomputation is often used in al ...
and storage to speed up the resulting calculation by a factor of , a
space–time tradeoff A space–time trade-off or time–memory trade-off in computer science is a case where an algorithm or program trades increased space usage with decreased time. Here, ''space'' refers to the data storage consumed in performing a given task (RA ...
.


Modular restrictions

For the special purpose of searching for a counterexample to the Collatz conjecture, this precomputation leads to an even more important acceleration, used by Tomás Oliveira e Silva in his computational confirmations of the Collatz conjecture up to large values of . If, for some given and , the inequality : holds for all , then the first counterexample, if it exists, cannot be modulo . For instance, the first counterexample must be odd because , smaller than ; and it must be 3 mod 4 because , smaller than . For each starting value which is not a counterexample to the Collatz conjecture, there is a for which such an inequality holds, so checking the Collatz conjecture for one starting value is as good as checking an entire congruence class. As increases, the search only needs to check those residues that are not eliminated by lower values of . Only an exponentially small fraction of the residues survive. For example, the only surviving residues mod 32 are 7, 15, 27, and 31.


Syracuse function

If is an odd integer, then is even, so with odd and . The Syracuse function is the function from the set of odd integers into itself, for which . Some properties of the Syracuse function are: * For all , . (Because .) * In more generality: For all and odd , . (Here is function iteration notation.) * For all odd , The Collatz conjecture is equivalent to the statement that, for all in , there exists an integer such that .


Undecidable generalizations

In 1972,
John Horton Conway John Horton Conway (26 December 1937 – 11 April 2020) was an English mathematician active in the theory of finite groups, knot theory, number theory, combinatorial game theory and coding theory. He also made contributions to many branches ...
proved that a natural generalization of the Collatz problem is algorithmically undecidable. Specifically, he considered functions of the form \;\;, \text \; and are rational numbers which are so chosen that is always an integer. The standard Collatz function is given by , , , , . Conway proved that the problem: : Given and , does the sequence of iterates reach 1? is undecidable, by representing the
halting problem In computability theory, the halting problem is the problem of determining, from a description of an arbitrary computer program and an input, whether the program will finish running, or continue to run forever. Alan Turing proved in 1936 that a ...
in this way. Closer to the Collatz problem is the following ''universally quantified'' problem: : Given does the sequence of iterates reach 1, for all ? Modifying the condition in this way can make a problem either harder or easier to solve (intuitively, it is harder to justify a positive answer but might be easier to justify a negative one). Kurtz and Simon A
PDF
/ref> proved that the above problem is, in fact, undecidable and even higher in the
arithmetical hierarchy In mathematical logic, the arithmetical hierarchy, arithmetic hierarchy or Kleene–Mostowski hierarchy (after mathematicians Stephen Cole Kleene and Andrzej Mostowski) classifies certain sets based on the complexity of formulas that define th ...
, specifically -complete. This hardness result holds even if one restricts the class of functions by fixing the modulus to 6480.


In popular culture

In the movie '' Incendies'', a graduate student in pure mathematics explains the Collatz conjecture to a group of undergraduates. She puts her studies on hold for a time to address some unresolved questions about her family's past. Late in the movie, the Collatz conjecture turns out to have foreshadowed a disturbing and difficult discovery that she makes about her family.


See also

* semigroup *
Arithmetic dynamics Arithmetic dynamics is a field that amalgamates two areas of mathematics, dynamical systems and number theory. Classically, discrete dynamics refers to the study of the iteration of self-maps of the complex plane or real line. Arithmetic dynamics is ...
*
Modular arithmetic In mathematics, modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" when reaching a certain value, called the modulus. The modern approach to modular arithmetic was developed by Carl Friedrich Gauss in his book ...
* Residue-class-wise affine group


Further reading

:* ''The Ultimate Challenge: The Problem'', published in 2010 by the
American Mathematical Society The American Mathematical Society (AMS) is an association of professional mathematicians dedicated to the interests of mathematical research and scholarship, and serves the national and international community through its publications, meetings, ...
and edited by
Jeffrey Lagarias Jeffrey Clark Lagarias (born November 16, 1949 in Pittsburgh, Pennsylvania, United States) is a mathematician and professor at the University of Michigan. Education While in high school in 1966, Lagarias studied astronomy at the Summer Science ...
, is a compendium of information on the Collatz conjecture, methods of approaching it, and generalizations. It includes two survey papers by the editor and five by other authors concerning the history of the problem, generalizations, statistical approaches, and results from the
theory of computation In theoretical computer science and mathematics, the theory of computation is the branch that deals with what problems can be solved on a model of computation, using an algorithm, how algorithmic efficiency, efficiently they can be solved or t ...
. It also includes reprints of early papers on the subject, including the paper by
Lothar Collatz Lothar Collatz (; July 6, 1910 – September 26, 1990) was a German mathematician, born in Arnsberg, Westphalia. The "3''x'' + 1" problem is also known as the Collatz conjecture, named after him and still unsolved. The Collatz–Wielandt formula ...
.


References


External links

* * An ongoing
volunteer computing Volunteer computing is a type of distributed computing in which people donate their computers' unused resources to a research-oriented project, and sometimes in exchange for credit points. The fundamental idea behind it is that a modern desktop co ...
br>project
by David Bařina verifies Convergence of the Collatz conjecture for large values. (furthest progress so far) * (
BOINC The Berkeley Open Infrastructure for Network Computing (BOINC, pronounced – rhymes with "oink") is an open-source middleware system for volunteer computing (a type of distributed computing). Developed originally to support SETI@home, it beca ...
) volunteer computin
project
that verifies the Collatz conjecture for larger values. * An ongoing volunteer computin

by Eric Roosendaal verifies the Collatz conjecture for larger and larger values. * Another ongoing volunteer computin

by Tomás Oliveira e Silva continues to verify the Collatz conjecture (with fewer statistics than Eric Roosendaal's page but with further progress made). * * . * * * * {{cite AV media , medium=short video , people={{ill, Alex Kontorovich, de (featuring) , title=The simplest math problem no one can solve , date=30 July 2021 , series=Veritasium , via=YouTube , url=https://www.youtube.com/watch?v=094y1Z2wpJg
Are computers ready to solve this notoriously unwieldy math problem?
Conjectures Arithmetic dynamics Integer sequences Unsolved problems in number theory