Fact-checked by Grok 2 weeks ago

Collatz conjecture

The Collatz conjecture, also known as the 3n + 1 problem or 3x + 1 conjecture, posits that for any positive n, the sequence generated by iteratively applying the rule—divide by 2 if n is even, or replace with $3n + 1 if n is odd—will eventually reach the number 1, after which it cycles through 4, 2, 1 indefinitely. Proposed by German mathematician Lothar Collatz in 1937, the conjecture has resisted proof despite its deceptively simple formulation, earning it a reputation as one of ' most enduring unsolved problems. It has been computationally verified to hold for all starting values up to $2^{71} \approx 2.36 \times 10^{21} as of 2025, with no counterexamples found, though this exhaustive checking covers only a minuscule fraction of all positive integers. The problem's sequences, termed hailstone numbers due to their fluctuating "up and down" behavior, have been analyzed for properties like stopping times and maximum excursions, revealing patterns but no general resolution. Despite partial results—such as Riho Terras's 1976 proof that the orbit falls below the starting value for almost all numbers, and Terence Tao's 2019 demonstration that sequences for almost all starting points reach values much smaller than logarithmic in n—the conjecture remains open, with mathematicians like noting that current tools are inadequate for its solution. Its significance lies in challenging assumptions about dynamical systems and iteration in , inspiring variants and computational projects while highlighting the gap between empirical evidence and rigorous proof.

Core Statement and Background

Problem Statement

The Collatz conjecture, proposed by German mathematician Lothar Collatz in 1937, posits that for every n, repeatedly applying a specific transformation will eventually yield the number 1. The transformation, often denoted as the Collatz map C(n), is defined piecewise as follows: C(n) = \begin{cases} \frac{n}{2} & \text{if } n \text{ is even}, \\ 3n + 1 & \text{if } n \text{ is odd}. \end{cases} Starting with any positive n_0, the sequence is generated by n_{k+1} = C(n_k) for k \geq 0, and the asserts that there exists some finite k such that n_k = [1](/page/1), regardless of the initial n_0 > 0. Applying the map to produces the trivial $1 \to 4 \to 2 \to [1](/page/1), which repeats indefinitely and represents the only known among positive s under this .

Historical Context

The Collatz conjecture originated in the work of German mathematician Lothar Collatz, who formulated it in 1937 while working as an assistant and completing his at the Technical University of Karlsruhe. Collatz was exploring iterative functions on integers, motivated by problems in , and posed the question of whether repeated application of the specified rule would always lead positive integers to 1, though he did not publish it formally at the time. He circulated the problem informally among colleagues, including at the 1950 in , where it began to attract attention within the mathematical community. The conjecture was independently discovered in 1952 by British mathematician , who arrived at the same iterative process while studying sequences of integers. Thwaites later offered a £1000 prize for its resolution, underscoring its allure despite the lack of progress. By the mid-1950s, early computational efforts, using rudimentary electronic calculators, had verified the conjecture for all starting positive integers up to 100,000, providing initial empirical support but no proof. The problem gained broader popularity in the 1970s, particularly through Martin Gardner's "Mathematical Games" column in , which featured it in 1972 and highlighted its deceptive simplicity. Hungarian mathematician , known for his work in , famously remarked on its challenge, stating, "Mathematics may not be ready for such problems," while offering a $500 prize for a solution or counterexample. This era marked a shift from niche academic interest to wider recognition, though the conjecture remained unsolved.

Empirical Observations

Computational Verification

The Collatz conjecture has been extensively tested computationally, with verification efforts demonstrating that all positive integers up to increasingly large bounds converge to the 4-2-1 under the conjecture's rules. Early computations in the and confirmed convergence for numbers up to around 10 million, but advancements in hardware and algorithms have dramatically expanded these limits. By the early , exhaustive checks had verified the conjecture up to approximately $2^{60} (about $1.15 \times 10^{18}), using optimized programs on personal computers. In the 2020s, projects and clusters pushed these boundaries further, reaching verification up to $2^{68} (roughly $2.95 \times 10^{20}) through of classes. A significant milestone came in 2025, when researchers extended this to $2^{71} (approximately $2.36 \times 10^{21}), surpassing prior records by leveraging heterogeneous systems combining CPUs and GPUs across European supercomputers such as MetaCentrum, Karolina, and . This effort involved thousands of parallel workers coordinated by a central , processing work units of $2^{40} numbers each in about 5 seconds on modern GPUs. No counterexamples—numbers that fail to converge—have been discovered in any of these verifications, with all tested sequences reaching 1. The efficiency of these computations relies on exhaustive checking optimized by bit manipulation techniques, such as the count-trailing-zeros (ctz) operation to merge multiple division-by-2 steps, and sieving methods like $2^k and $3^k sieves to handle even and odd iterations rapidly. Additionally, shortcuts, including optimizations modulo 9 for 128-bit integers, allow for concurrent solving of classes, reducing redundant calculations and enabling the 2025 limit to exceed previous benchmarks without proportional increases in computational resources. These approaches ensure rigorous coverage without gaps, confirming for the entire range up to the current threshold.

Stopping Times and Records

In the Collatz conjecture, the total stopping time \sigma(n) of a positive n is defined as the number of iterations of the Collatz map required to reach starting from n. The dynamic stopping time, often denoted \sigma_0(n), is the number of steps until the sequence first produces a value strictly smaller than n. These measures quantify the length of trajectories in the conjecture's iterative process, with the conjecture asserting that both are always finite for every n \geq [1](/page/1). A well-known example is n=27, which has a total stopping time of 111 steps and reaches a peak value of 9232 before descending to 1; its dynamic stopping time is 41 steps. This sequence exemplifies how even small starting values can produce unexpectedly prolonged paths due to repeated applications of the $3n+1 rule before sufficient divisions by 2 occur. Computational efforts have established records for the largest total stopping times within verified ranges. For instance, exhaustive searches below $10^8 identified the record \sigma(n)=949 for n=63728127. More recent verifications extending to $10^{18} have uncovered even longer trajectories, with the current record for that range being \sigma(n)=2456 for n=28019077177231758495, highlighting the gradual increase in maximum path lengths as larger n are examined. These records are maintained through optimized algorithms that track delay (total stopping time) while confirming convergence. Empirical patterns in stopping times suggest a heuristic growth rate of \sigma(n) \approx O(\log n), reflecting the balanced effect of multiplications by 3 and divisions by 2, which on average reduce the logarithm of the value despite occasional upward spikes. This logarithmic tendency is evident in the record-holding values, where maximum stopping times scale roughly with the logarithm of the search limit, though individual sequences can deviate significantly due to sequences of iterations that amplify the number before contraction. Numbers requiring many consecutive steps, such as those with long strings of 1s in their representation (e.g., Mersenne numbers $2^k - 1 for large k), tend to produce exceptionally long chains by maximizing the $3n+1 applications relative to divisions.

Visual Representations

Visual representations of Collatz sequences provide intuitive insights into their dynamic behavior, illustrating the iterative paths from starting integers to 1 and highlighting patterns in . Trajectory plots, often called hailstone plots due to the sequences' upward peaks and downward descents resembling hailstones in a cloud, depict the value of the sequence n_k against the step k. For instance, the starting from n=27 climbs to a maximum of 9232 before descending to 1 over 111 steps, showcasing multiple oscillations that underscore the conjecture's unpredictable yet conjectured terminating nature. Tree diagrams offer another perspective by constructing the inverse Collatz process, rooting the structure at 1 and branching outward to encompass all positive integers through predecessor mappings. Each node m has a primary predecessor $2m corresponding to the even division rule in reverse, and a secondary branch to (m-1)/3 if this yields a positive integer, representing the inverse of the odd multiplication step; this conditional branch ensures only valid odd predecessors are included, forming an infinite arborescence under the conjecture. Such diagrams reveal the conjecture's implication that every positive integer appears exactly once in the tree, with visualizations limited to finite depths (e.g., orbits of length up to 19) demonstrating the merging of paths toward the root. Density plots and heat maps of stopping times—defined as the number of iterations to reach —further illuminate structural patterns, particularly when analyzed powers of 2 to capture residue class behaviors. These visualizations, often rendered as scatter plots or color-coded grids, show clusters and in stopping times across ranges like 10,000 to over 5 million inputs, with $2^k analyses revealing near-uniform distributions that align with probabilistic expectations for convergence. For example, plots higher powers of 2 highlight how sequences in certain residue classes exhibit prolonged or abbreviated paths, providing empirical support for the conjecture's global reach to . Software tools like Mathematica facilitate the generation of these hailstone plots and interactive demonstrations, enabling users to compute and visualize sequences for ranges up to 5000 or more, with built-in functions for trajectory graphing and tree construction. These computational aids, part of the , allow dynamic exploration of individual paths or aggregate stopping time distributions, aiding in the identification of record-setting sequences without exhaustive enumeration.

Supporting Theoretical Arguments

Probabilistic Models

One of the primary arguments supporting the Collatz conjecture models the iteration as a random process where the of each iterate is independently even or with equal probability \frac{1}{2}. Under this assumption, an even step multiplies the number by \frac{1}{2}, while an step applies $3n+1 (approximately $3n), followed immediately by a by 2 since $3n+1 is even, yielding a net factor of approximately \frac{3}{2}. This leads to an expected per step of \frac{1}{2} \log \frac{1}{2} + \frac{1}{2} \log \frac{3}{2} = \frac{1}{2} \log \frac{3}{4} < 0, approximately -0.1438. The geometric mean growth factor over two steps (one even and one odd) is thus \sqrt{\frac{3}{4}} \approx 0.866 < 1, implying that the orbit decreases geometrically on average and should reach 1 almost surely under the random model. A more refined analysis considers the long-run proportion \alpha of odd steps in an orbit, yielding an expected log growth E[\log C(n)] = \alpha \log \frac{3}{2} + (1 - \alpha) \log \frac{1}{2}. This is negative provided \alpha < \frac{\log 2}{\log 2 + \log (3/2)} \approx 0.631; empirical observations show \alpha \approx 0.5, confirming descent. Probabilistic models further predict that even iterates occur about two-thirds of the time in typical orbits, reinforcing the heuristic. A partially rigorous confirmation of this descent behavior appears in Terence Tao's 2019 result, which proves that for any function f(N) \to \infty as N \to \infty, almost all positive integers n \leq N (in the sense of logarithmic density) have an orbit under the that attains a value less than f(N). This establishes that almost all orbits descend to nearly bounded values, providing strong theoretical support for the probabilistic intuition without resolving the full conjecture.

Bounds and Growth Estimates

Efforts to establish lower bounds on the length of any nontrivial cycles in the Collatz map have relied on exhaustive computational searches combined with theoretical constraints. Simons and de Weger (2005) proved that no nontrivial cycle exists with length less than 68 by solving associated Diophantine inequalities and bounding the minimal element in potential cycles. Subsequent improvements, including work by Hercher (2023), have extended this to show that there are no nontrivial Collatz m-cycles for m ≤ 91, using enhanced approximations for the growth parameter X_0 ≈ 704 × 2^{60} to rule out shorter cycles via reciprocal sum inequalities. Upper bounds on the growth of Collatz trajectories provide insight into why sequences are expected to remain controlled. Krasikov and Lagarias (2003) introduced a system of difference inequalities to analyze the 3x+1 map, deriving lower bounds on the density of integers that "succeed" in reducing below a threshold after k iterations. Specifically, for any positive integer a not divisible by 3, the number π_a(x) of such integers up to x satisfies π_a(x) ≥ x^{0.84} for sufficiently large x, achieved via optimization with k=11 and growth factor λ ≈ 1.792. This result implies that sequences cannot grow indefinitely without cycling, as a substantial proportion (at least x^{-0.16}) of starting values reach small bounded regions after fixed steps, forcing eventual decrease. These density bounds extend to convergence properties of the iterated map. For certain classes of starting values, particularly those comprising almost all positive integers in the logarithmic density sense, the trajectory returns below the initial value after sufficiently many iterations. Tao (2019) established that for any f: ℕ → ℝ with f(N) → ∞ as N → ∞, the minimal value attained in the Collatz orbit of N is less than f(N) for almost all N. In particular, \min_{m \geq 0} |C^m(N)| < \log \log \log \log N holds for almost all N, demonstrating that |C^m(N)| < N for some large m in these classes and controlling overall growth by ensuring orbits do not diverge.

Analysis of Cycles

A cycle in the Collatz conjecture refers to a periodic orbit under the iterated , consisting of a finite set of distinct positive integers where each element maps to the next, and the last returns to the first. The only known such cycle is the trivial one of length 3: $1 \to 4 \to 2 \to 1. To determine possible non-trivial cycles, one considers a k-cycle as a solution to a system of equations derived from the Collatz rules applied periodically. Specifically, for n_1, n_2, \dots, n_k > 0 forming a , each step satisfies either n_{i+1} = n_i / 2 if n_i is even, or n_{i+1} = (3n_i + 1)/2 if n_i is (accounting for the immediate division by 2 since $3n_i + 1 is even), with n_{k+1} = n_1, and all n_i . More generally, sequences of consecutive even steps are incorporated by allowing multiple divisions by 2 until an number is reached. Solving this nonlinear Diophantine system directly is challenging, but for small k, exhaustive over possible patterns rules out cycles. For larger k, analytical methods transform the problem into finding solutions where the net multiplier over the is 1, leading to equations balancing the growth from $3n + 1 steps against divisions by 2. Proofs of the non-existence of small non-trivial cycles often rely on solving these generalized k-cycle equations modulo increasing powers of 2, exploiting the 2-adic structure to derive contradictions for candidate solutions. By assuming a cycle exists and lifting solutions modulo $2^m for successively larger m, inconsistencies arise when the required valuations or congruences cannot hold simultaneously with the oddness conditions. This modular approach, combined with bounds on the minimal element in any , establishes that no non-trivial cycles exist with length less than 1,027,712,276 as of 2021. Subsequent refinements using similar techniques and improved approximations to \log_2 3 have pushed this bound to over $10^{11} as of 2025. The absence of short non-trivial cycles has profound implications for the conjecture. If the Collatz conjecture is false, any counterexample must feature either a non-trivial cycle of extraordinary length—far exceeding current lower bounds—or a divergent trajectory that grows unbounded without periodic behavior, as all finite starting values have been computationally verified to reach the trivial cycle up to immense limits.

Equivalent Formulations

Reverse Collatz Process

The reverse Collatz process examines the predecessors of a number under the Collatz map C, where C(n) = n/2 if n is even and C(n) = 3n + 1 if n is . This inverse operation allows tracing numbers that map to a given m in one step. Specifically, every m has $2m as a predecessor, since C(2m) = m. Additionally, if m \equiv 4 \pmod{6}, then (m-1)/3 is an , and this value is and serves as another predecessor, because if k = (m-1)/3 is , then C(k) = 3k + 1 = m. Formally, the preimage set is given by C^{-1}(m) = \{2m\} \cup \left\{ \frac{m-1}{3} \;\middle|\; m \equiv 4 \pmod{6},\ \frac{m-1}{3} \in \mathbb{N} \right\}. The m \equiv 4 \pmod{6} ensures that (m-1)/3 is an positive when applicable. For m = 1, the preimage is \{2\}, corresponding to the start of the . Applying C^{-1} repeatedly generates the full backward from any starting point. The Collatz tree emerges from iteratively applying this inverse process starting from the root at 1, forming an infinite directed tree structure over the positive integers. Each node m in the tree has outgoing edges to its predecessors in C^{-1}(m), resulting in a tree where most nodes have out-degree 2 (branching via $2m and occasionally (m-1)/3), though some have out-degree 1. The tree is acyclic by construction in the reverse direction and spans an increasingly large portion of the positive integers as depth increases. Computational explorations confirm that the tree includes all integers up to large bounds without repetition, as the forward Collatz map from any tree node leads uniquely toward 1. Under the Collatz conjecture, every positive appears exactly once in this , with no overlaps or gaps, due to the deterministic nature of the forward map implying unique paths to 1. The is thus equivalent to the that this includes all positive integers, as any missing number would imply a divergent orbit or non-trivial in the forward direction. Verification up to $10^{18} supports this coverage empirically, though a full proof remains elusive.

Parity Sequence Interpretation

The parity sequence interpretation reformulates the Collatz conjecture by encoding the trajectory of each positive integer under the Collatz map as a binary sequence based on the parity of its iterates. For a starting number n, the parity vector \mathbf{p}(n) = (p_0, p_1, \dots, p_k) is defined such that p_i = 0 if the i-th iterate is even and p_i = 1 if odd, with p_0 corresponding to the parity of n itself. This vector captures the sequence of operations: divisions by 2 for even iterates and the $3n+1 transformation for odd ones, which always produces an even number. The Collatz conjecture is equivalent to the statement that, for every positive integer n, the parity vector \mathbf{p}(n) is finite in the sense that it eventually enters the repeating pattern $0, 0, 1 associated with the 4–2–1 cycle. In this framework, the forward dynamics of the Collatz map generate the sequence deterministically from n. An iterate (marked by a 1) is followed by at least one 0, corresponding to the even result of $3n+1 and subsequent divisions by 2 until the next number. Thus, the sequence consists of 1's separated by one or more 0's, reflecting the "full steps" from to via the Syracuse , which compresses even divisions: S(n) = \frac{3n+1}{2^m}, where m \geq 1 is the number of trailing 0's in the sequence after each 1. This mapping equates the vector to a encoding of the Syracuse iterations on the components of the trajectory. The advantage of this interpretation lies in reducing the problem to the analysis of sequences and their associated shifts, allowing estimation of or . Specifically, the k-th iterate can be approximated as T^k(n) \approx n \cdot 3^{d(k)} \cdot 2^{-k}, where d(k) is the number of 1's (odd steps) in the first k positions of \mathbf{p}(n). to 1 occurs if there exists k such that d(k) \log 3 - k \log 2 < 0, implying the sequence decreases below the starting value; the conjecture posits this holds for all n. This perspective facilitates studying the distribution of 1's in parity vectors, akin to examining shifts in binary expansions, and has been used to prove that almost all integers reach small values quickly. For example, starting from n = 3, the iterates are 3 (odd), 10 (even), 5 (odd), 16 (even), 8 (even), 4 (even), 2 (even), 1 (odd), yielding \mathbf{p}(3) = (1, 0, 1, 0, 0, 0, 0, 1), which transitions into the cycle pattern after the initial segment. Such representations highlight how the parity vector encodes the entire path without tracking numerical values, emphasizing the structural properties of the sequences generated by the .

Tag Systems and Automata

The Collatz conjecture admits an equivalent formulation in terms of tag systems, a class of abstract rewriting systems introduced by Emil Post in the 1920s as models of computation. A tag system operates on finite words over a finite alphabet, with a fixed deletion parameter v that removes the first v symbols from the current word at each step; the production rule is then applied to the very first symbol of the original word, appending the corresponding output string to the remaining part of the word. This process continues until the word has length less than v, at which point the system halts. The simplicity of tag systems belies their expressive power, as they are capable of universal computation, and their halting problem is undecidable in general. A specific 2-symbol tag system with deletion parameter v=2 and production rules $0 \to 1, $1 \to 110 encodes the Collatz iteration directly on the binary representation of the starting positive integer n. The initial word is constructed by taking the binary digits of n in reverse order and prefixing them with a leading 0, ensuring proper alignment for the operations. Each step of the tag system then mimics the Collatz rules: the rule for 0 corresponds to handling even parity (effectively dividing by 2 via binary shift), while the rule for 1 implements the odd case (multiplying by 3 and adding 1, encoded through the appended bits that adjust the binary value accordingly). The length of the word at each step tracks the magnitude of the corresponding Collatz iterate, and the conjecture is equivalent to asserting that, for every such initial word, the system eventually reaches a halting configuration representing 1. This equivalence was established by showing that the tag system's evolution preserves the Collatz dynamics bidirectionally. This tag system formulation underscores the Collatz process as an abstract base-2 computing machine governed by parity-driven operations on binary strings. The machine processes the bits sequentially, with each deletion and appendage altering the string in a way that parallels arithmetic transformations, revealing the conjecture's deep ties to fundamental questions in computability. Liesbeth de Mol further demonstrated that the Collatz problem reduces to the halting and reachability problems for tag systems with v=2, linking it to broader undecidability results in automata theory. For illustration, consider n=3, whose binary representation is 11; the initial word is thus 011. Applying the rules:
  • First symbol 0, append 1, delete first 2 (01): remaining 1 + 1 = 11.
  • First symbol 1, append 110, delete first 2 (11): empty + 110 = 110.
  • First symbol 1, append 110, delete first 2 (11): remaining 0 + 110 = 0110.
  • First symbol 0, append 1, delete first 2 (01): remaining 10 + 1 = 101.
  • Subsequent steps continue, mirroring the trajectory 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1 until halting.
This sequence of word evolutions mirrors the Collatz trajectory, with the process simulating the operations through binary string manipulations.

Broader Extensions

Iterations on Integers and Rationals

The Collatz iteration extends naturally to negative integers and zero using the same rules: divide by 2 if even, replace with 3n + 1 if odd. For zero, the sequence remains fixed, forming the trivial cycle 0 → 0, since zero is even and 0/2 = 0. Unlike the positive case, the iteration on negative integers reveals multiple nontrivial cycles rather than convergence to 1. One such cycle is the length-2 cycle: -1 (odd) → 3(-1) + 1 = -2 (even) → -2/2 = -1. Another is the length-5 cycle starting from -5: -5 (odd) → 3(-5) + 1 = -14 (even) → -14/2 = -7 (odd) → 3(-7) + 1 = -20 (even) → -20/2 = -10 (even) → -10/2 = -5. A third known cycle of length 18 begins at -17: -17 → -50 → -25 → -74 → -37 → -110 → -55 → -164 → -82 → -41 → -122 → -61 → -182 → -91 → -272 → -136 → -68 → -34 → -17. These cycles demonstrate that starting from a negative integer, the sequence enters one of at least three known attractors rather than the positive 4 → 2 → 1 cycle. The presence of these cycles implies that the original Collatz conjecture does not hold for all integers, as negative starting values do not reach . The iteration further generalizes to rational numbers of the form p/q, where p and q are coprime integers, q > 0 is , and the fraction is in lowest terms; this set is denoted Q_{(2)}, the localization of the rationals at the (2). is determined by the numerator: even if p is even, if p is . The map proceeds as for integers: divide by 2 if even, apply 3x + 1 if , yielding (3p + q)/q, which preserves the odd-denominator form until divisions introduce powers of 2 in the denominator. The extended conjecture posits that every positive rational in this domain eventually reaches under iteration. For example, starting with 5/3 (numerator 5 odd, denominator odd): apply 3(5/3) + 1 = 6 (even) → 6/2 = (odd) → 3(3) + 1 = 10 (even) → 10/2 = 5 (odd) → 3(5) + 1 = 16 (even) → 16/2 = 8 → 4 → 2 → 1. Similarly, for 1/: 3(1/3) + 1 = 2 (even) → 2/2 = 1. These sequences illustrate how rational trajectories reduce to the integer case, supporting the that the numerator and denominator effectively reach 1 after clearing powers of 2 in the denominator. No nontrivial cycles are known in the positive , and exhaustive computations confirm the for all such fractions up to large bounds.

p-adic and Topological Generalizations

The Collatz map extends naturally to the ring of 2-adic integers \mathbb{Z}_2, where it is defined by C(n) = n/2 if the 2-adic valuation v_2(n) > 0, and C(n) = 3n + 1 otherwise. This extension is continuous with respect to the 2-adic metric d_2(x, y) = 2^{-v_2(x-y)} for x \neq y, as the map preserves modulo powers of 2. Unlike the original over positive integers, where all orbits are hypothesized to reach the $4 \to 2 \to [1](/page/1), the 2-adic analog fails because the map admits additional fixed points, such as -[1](/page/−1) and $1/3, along with s like the period-2 orbits (-1/3, [1](/page/1)) and (-1/5, 5/7). The inverse of the Collatz map in \mathbb{Z}_2 consists of two branches— by 2 and the map n \mapsto (n-1)/3 when applicable—forming an whose dynamics can be analyzed via the associated parity sequence Q, which encodes the sequence of even and odd steps. This Q: \mathbb{Z}_2 \to \mathbb{Z}_2 is a 1-Lipschitz , preserving the 2-adic and acting as an that conjugates the Collatz map to a shift on sequences. Consequently, Q is ergodic with respect to the 2-adic on certain invariant sets, such as balls around periodic cycles, with the total measure of these ergodic components exceeding 0.96. For odd primes p, generalizations of the Collatz map to \mathbb{Z}_p yield continuous extensions that preserve the p-adic and exhibit ergodic behavior. These maps, often of "relatively prime type," are ergodic on \mathbb{Z}_p and topologically conjugate to shifts, leading to dense orbits for almost all starting points under the p-adic measure. Such properties highlight the contrasting dynamical richness in non-Archimedean settings compared to the integer case.

Real and Complex Number Domains

The extension of the Collatz map to the real numbers replaces the discrete condition with a continuous based on the of the input. One such formulation, proposed by Chamberland, defines the f: \mathbb{R} \to \mathbb{R} as f(x) = \frac{x}{2} \cos^2\left(\frac{\pi x}{2}\right) + \frac{3x + 1}{2} \sin^2\left(\frac{\pi x}{2}\right), which smoothly transitions between division by 2 (when x is near an even ) and the operation $3x + 1 (when x is near an odd ). This continuous preserves the behavior on positive s while allowing analysis over the entire real line. On the positive reals, f has a negative , implying that its long-term dynamics are governed by its critical points. The real extension exhibits two attracting cycles: the trivial cycle \{1, 2\} corresponding to the integer case, and a non-trivial cycle \{1.192531907\dots, 2.138656335\dots\}. Near integers, the display behavior, characterized by sensitive dependence on initial conditions and dense in certain intervals. Chamberland conjectures that these are the only attracting cycles on the positive reals, with the equivalence to the original Collatz conjecture holding if no other cycles exist. Additionally, the map features a monotonically increasing divergent orbit and a to a 3-cycle, underscoring the complex interplay between attraction and repulsion. In the complex domain, the Collatz can be extended holomorphically by constructing an that interpolates the discrete operations on positive integers. Letherman, Schleicher, and Wood define such a F: \mathbb{C} \to \mathbb{C} via a approach, where F(z) agrees with the Collatz iteration on \mathbb{N}. An alternative definition uses the real part for the "even-like" condition: F(z) = z/2 if \operatorname{Re}(z) is even-integer-like (via a smooth approximation), and F(z) = 3z + 1 otherwise. The dynamics reveal basins of attraction, with the containing 1 acting as a primary , though the map's forms a boundary separating bounded and escaping orbits. The extension exhibits non-hyperbolic , where the at 1 coexists with dense periodic points throughout the , leading to intricate orbital structures. Berg and Meinardus reformulate the conjecture via functional equations in the , such as generating functions satisfying G(z) = z G(3z + 1) + (1 - z) G(z/2), whose solutions are not entire due to singularities. These equations imply natural boundaries on the unit disk, preventing beyond certain curves and highlighting the map's limited holomorphy. In their analysis, the authors further show that the Collatz conjecture equates to the uniqueness of a holomorphic solution in a specified .

Advanced Topics

Optimization Techniques

Efficient computation of Collatz sequences is essential for large-scale of the conjecture, as naive becomes prohibitive for numbers exceeding $10^{18}. Optimization techniques leverage the merging of trajectories, structure, and modular properties to minimize redundant calculations and skip unnecessary checks. These methods balance time and space while exploiting the conjecture's deterministic nature to accelerate both forward s and inverse constructions. Such techniques have enabled verifications up to approximately $2^{71} as of 2025. Time-space tradeoffs are central to many implementations, particularly through precomputation of the Collatz tree or of s. The tree is built by repeatedly applying the operations—dividing by 2 for even predecessors or solving (n-1)/3 for ones when integer-valued—starting from , enabling direct lookup of convergence paths for numbers up to a precomputed bound. This approach avoids full forward computation for covered integers but requires substantial memory for large depths. Alternatively, dynamic programming with stores the total for each encountered number in a during forward verification, reusing results when trajectories coalesce, which is common due to the tree-like merging of sequences. GPU-accelerated implementations have contributed to these efforts, with reducing redundant branches by caching outcomes for small values. Modular restrictions further optimize by identifying classes of numbers whose sequences rapidly descend to verified smaller values, allowing skips in sieve-based checks. For instance, certain residue classes small integers like or 9 can often be excluded from direct computation in large intervals, as their trajectories quickly enter lower ranges. Similarly, 8 shows that numbers of the form $8k+5 (except 5 itself) converge in few steps to powers of 2. Computations $2^k for moderate k also facilitate early via invariants, such as patterns that prevent non-trivial loops within the . Bit-level optimizations exploit the binary representation to compress sequences of even steps. For an even number n, the 2-adic valuation v = v_2(n) (the count of trailing zeros in its ) is computed efficiently using instructions like TZCNT, followed by a single right shift n \gg v to reach the next number. This replaces a of v divisions with constant-time operations. For n, the step $3n+1 is followed by divisions by 2 until ; the compressed form directly yields the next iterate as m = \frac{3n + 1}{2^{v_2(3n+1)}}, where v_2(3n+1) is again the trailing zero count of $3n+1, computable via bitwise operations without . These tricks achieve near-O(1) per compressed step and have been used to verify for billion-digit . Sieve-like methods in verification construct bit arrays or sets over intervals (e.g., size $2^{32}) to mark and skip numbers mapping into already-verified subtrees. By propagating known convergences backward—eliminating candidates whose forward steps hit checked values—a significant portion of numbers in an interval can be skipped, reducing the effective workload by factors of 10 to 100. For example, interlaced sieves process classes separately, further halving time in class record algorithms. These techniques underpin verifications up to $2^{71} and beyond as of 2025.

Syracuse Function Properties

The Syracuse function, often denoted S, is defined on the set \Omega of odd positive integers by S(n) = \frac{3n + 1}{2^k}, where k \geq 1 is the largest integer such that $2^k divides $3n + 1, ensuring that S(n) is again an odd positive integer. This function captures the "odd step" of the Collatz iteration by compressing the subsequent divisions by 2 until an odd number is reached. The Syracuse function S: \Omega \to \Omega is a , meaning it induces a of the odd positive integers. Although S(n) > n holds for some odd n > 1 (specifically when k = 1, yielding S(n) = (3n + 1)/2 > n), in general S(n) can be greater than, equal to, or less than n depending on the 2-adic valuation k of $3n + 1; for instance, S(5) = 1 < 5 and S(3) = 5 > 3. The full Collatz map, which applies n \mapsto n/2 for even n and n \mapsto 3n + 1 for odd n, can be reformulated using the Syracuse function by performing all intermediate halvings explicitly. In this view, the trajectory of any positive under the Collatz map reduces to a sequence of applications of S interspersed with the halvings already incorporated in the definition of S. The Collatz conjecture is thus equivalent to the assertion that for every odd positive n, there exists a positive k such that the k-th iterate S^k(n) = 1. Specific number-theoretic properties of S have been established, particularly regarding the distribution of its short iterates and modular constraints. For example, the triples (m, S(m), S^2(m)) for distinct odd positives m realize every permutation in the \Sigma_3 with positive ; the identity permutation (where m < S(m) < S^2(m)) occurs with density $1/4, while the reversal ( m > S(m) > S^2(m) ) has density $1/4. Modular behaviors of S exhibit structured patterns, such as the stopping times of Syracuse sequences powers of 2, where all residue classes $2^n eventually reach small values under , supporting boundedness in these finite settings. These results highlight the function's mixing properties while preserving the conjecture's unresolved nature over the integers.

Complexity and Undecidability

The problem of deciding whether the Collatz sequence starting from a given positive n reaches 1 is decidable, as it can be computed by iteratively applying the Collatz map until the sequence enters the known 4 → 2 → 1 or detects a different (though none are known beyond this). This requires a number of steps equal to the \sigma(n), the smallest k such that the k-th iterate is 1, and each step involves arithmetic operations on integers whose grows temporarily but remains manageable. Empirically, \sigma(n) is bounded by O(\log n) on average, allowing verification in time relative to the input size \log n for practical purposes, though no unconditional worst-case bound on \sigma(n) has been established, leaving the precise open. Computing the exact total stopping time \sigma(n) itself presents greater challenges, as it requires full traversal of the sequence, and while heuristics suggest \sigma(n) = O(\log n) with high probability, the worst-case growth remains unbounded under current knowledge. Partial results indicate that for almost all n \leq X, the stopping times satisfy \sigma(n) \ll \log n \cdot (\log \log n)^c for some constant c, supporting efficient average-case computation. As of 2025, the conjecture remains unresolved, but these probabilistic bounds provide insight into the typical computational demands without resolving the uniform case. Generalizations of the Collatz map, where the transformation for odd integers is an arbitrary linear function f(x) = ax + b with integer coefficients a > 1 and b \geq 0, lead to undecidable decision problems. In his seminal 1972 work, John H. Conway proved that it is algorithmically undecidable to determine, for a given such generalized map, whether every positive integer eventually reaches 1 under iteration, by encoding partial recursive functions into these maps and reducing to the halting problem. This undecidability arises because the class of generalized Collatz functions can simulate universal computation, akin to tag systems, making properties like universal halting a non-trivial semantic question unsolvable by Rice's theorem. Conway highlighted the original 3x+1 map as an exceptionally difficult instance within this undecidable family, describing its analysis as profoundly challenging due to the intricate interplay of arithmetic operations.

References

  1. [1]
    Collatz Problem -- from Wolfram MathWorld
    A problem posed by L. Collatz in 1937, also called the 3x+1 mapping, 3n+1 problem, Hasse's algorithm, Kakutani's problem, Syracuse algorithm, Syracuse problem, ...
  2. [2]
    Improved verification limit for the convergence of the Collatz conjecture
    May 2, 2025 · This article presents our project, which aims to verify the Collatz conjecture computationally. As a main point of the article, we introduce a new result.
  3. [3]
    The Simple Math Problem We Still Can't Solve - Quanta Magazine
    Sep 22, 2020 · The Collatz conjecture states that the orbit of every number under f eventually reaches 1. And while no one has proved the conjecture, it has ...
  4. [4]
  5. [5]
    [PDF] What is the Collatz Conjecture? - Mathematical Association of America
    Aug 7, 2021 · Lothar Collatz (1910-1990). (proposed in 1937). The CollatzConjecture says that this sequence always leads to the number 1 when one starts ...
  6. [6]
    Lothar Collatz - Biography - MacTutor - University of St Andrews
    Lothar Collatz was a German mathematician who worked in numerical analysis and is best known for the eponymous "3x + 1 problem". Thumbnail of Lothar Collatz
  7. [7]
    [PDF] THE 3x + 1 PROBLEM AND ITS GENERALIZATIONS - JEFFREY C ...
    Prizes have been offered for its solution: $50 by H. S. M. Coxeter in 1970, then. $500 by Paul Erdős, and more recently £1000 by B. Thwaites [69]. Over twenty ...Missing: popularization | Show results with:popularization
  8. [8]
    Two Conjectures or how to win £1100
    Thus was. Thwaites Conjecture postulated - it is believed for the first time, since it was only in the 1960s that it began to crop up apparently independently ...
  9. [9]
    The Simplest Math Problem Could Be Unsolvable - Scientific American
    Mar 12, 2024 · The Collatz conjecture has plagued mathematicians for decades—so much so that professors warn their students away from it.
  10. [10]
    [PDF] arXiv:math/0309224v13 [math.NT] 11 Jan 2011
    Jan 11, 2011 · Martin Gardner (1972), Mathematical Games, Scientific American 226 No. 6, (June. 1972), 114–118. This article is one of the first places the ...<|separator|>
  11. [11]
    Convergence verification of the Collatz problem
    Barina, D. Improved verification limit for the convergence of the Collatz conjecture. J Supercomput 81, 810 (2025). https://doi.org/10.1007/s11227-025-07337 ...Missing: Supercomputing | Show results with:Supercomputing
  12. [12]
    None
    ### Summary of Stopping Time Records from the Paper
  13. [13]
    Delay Records
    3x+1 Delay Records. The table on the right depicts all currently known and confirmed delay records. Numbers with much higher delays are obviously known, ...Missing: Roosendaal | Show results with:Roosendaal
  14. [14]
    [PDF] An Automated Approach to the Collatz Conjecture - arXiv
    Dec 31, 2022 · Diagrammatic view of the Collatz trajectory of 27. Each row in the cascade is a mixed binary– ternary representation of an iterate, with ...Missing: plot | Show results with:plot
  15. [15]
    Collatz Graph: All Numbers Lead to One - Jason Davies
    Here is a graph showing the orbits of all numbers under the Collatz map with an orbit length of 19 or less, excluding the 1-2-4 loop.
  16. [16]
    [PDF] Efficient Computation of Collatz Sequence Stopping Times - arXiv
    This research focuses on designing an efficient algorithm to compute the stopping time of numbers in the Collatz sequence, achieving significant computational ...
  17. [17]
    The Collatz conjecture, Littlewood-Offord theory, and powers of 2 ...
    Aug 25, 2011 · One of the most notorious problems in elementary mathematics that remains unsolved is the Collatz conjecture, concerning the function {f_0: ...
  18. [18]
    Plotting Collatz Sequences - Wolfram Demonstrations Project
    This Demonstration generates and displays the Collatz sequences for n=1 through n=5000 in numerical and graphical forms.
  19. [19]
    Almost all orbits of the Collatz map attain almost bounded values
    Sep 8, 2019 · Abstract page for arXiv paper 1909.03562: Almost all orbits of the Collatz map attain almost bounded values.
  20. [20]
    [PDF] There are no Collatz m-Cycles with m ≤ 91 - arXiv
    Apr 4, 2023 · Simons and de Weger [11] proved that m ≥ 68 for every nontrivial cycle. Based on the rate of growth of X0 in the year 2005, when [11] appeared, ...
  21. [21]
    [PDF] arXiv:math/0205002v1 [math.NT] 30 Apr 2002
    We study difference inequality systems for the 3x+1 problem introduced by the first author in. 1989. These systems can be used to derive lower bounds for ...<|control11|><|separator|>
  22. [22]
    [PDF] arXiv:1909.03562v5 [math.PR] 15 Feb 2022
    Feb 15, 2022 · COLLATZ ORBITS ATTAIN ALMOST BOUNDED VALUES. 3. Theorem 1.3 (Almost all Collatz orbits attain almost bounded values). Let f : N+1 →. R be any ...
  23. [23]
    [2111.02635] The 3x+1 Problem: An Overview - arXiv
    Nov 4, 2021 · This paper is an overview and survey of work on the 3x+1 problem, also called the Collatz problem, and generalizations of it.Missing: cycles | Show results with:cycles
  24. [24]
  25. [25]
    Almost all Collatz orbits attain almost bounded values - Terry Tao
    Sep 10, 2019 · In this paper I returned to the topic of the notorious Collatz conjecture (also known as the {3x+1} conjecture), which I previously discussed in this blog post.
  26. [26]
    Unfolding the Collatz Tree: An Indirect Structural Proof of the Collatz Conjecture
    ### Summary of Inverse Collatz Map, Preimage Set, Collatz Tree, and Uniqueness
  27. [27]
    A stopping time problem on the positive integers - EuDML
    A stopping time problem on the positive integers. Riho Terras · Acta Arithmetica (1976). Volume: 30, Issue: 3, page 241-252; ISSN: 0065-1036 ...
  28. [28]
    The Terras Theorem
    One of the most important results on the 3x+1 problem is the Terras Theorem, originally stated by Riho Terras. ... Parity vector: For any number N the ...
  29. [29]
    After 100 Years, Can We Finally Crack Post's Problem of Tag? A ...
    Mar 4, 2021 · ... tag system follows the Principle of Computational Equivalence and is computation universal. ... Collatz Conjecture… Yes? No? MGmirkin. March ...
  30. [30]
  31. [31]
    [PDF] 7x±1: Close Relative of Collatz Problem - arXiv
    This is also known as the total stopping time. The highest value reached during the progression is 428688. For a better mental picture of this sequence, the ...
  32. [32]
    [PDF] Modified Collatz conjecture or (3a + 1) + ... - UNM Digital Repository
    Jan 1, 2016 · Thus, for using 3n + 1 any integer positive or negative the sequence terminates at any one of the values {–17, –5, –. 1, 0, 1} and using 3n – 1 ...
  33. [33]
    [PDF] collatz.pdf
    Using the fact, that the Collatz conjecture was verified for all initial values x0 240,. Lagarias [5] obtained as lower bound for the length of non-trivial ...
  34. [34]
    [PDF] a 2-adic extension of the collatz function - UChicago Math
    Aug 22, 2011 · We introduce the concept of p-adic integers before exploring the connections between the 2-adic integers and the Collatz Conjecture: an un-.
  35. [35]
    [PDF] parity sequences of the 3x+1 map on the 2-adic integers and ...
    Feb 1, 2019 · We find that it is ergodic on many small odd invariant sets, and that it has two odd cycles of period 2 in addition to its two odd fixed points.
  36. [36]
    [PDF] arXiv:2111.02635v1 [math.NT] 4 Nov 2021
    Nov 4, 2021 · Another claimant to having originated the 3x+ 1 problem is Bryan Thwaites [90], who asserts that he came up with the problem in 1952.
  37. [37]
    [PDF] An Update on the 3x+1 Problem Marc Chamberland Contents
    Roosendaal[65](2003) has computed various “records” for these functions1. Various results about consecutive numbers with the same height are catalogued by ...Missing: delay | Show results with:delay<|control11|><|separator|>
  38. [38]
  39. [39]
    [PDF] a14 integers 24a (2024) permutation patterns of the iterated ...
    May 27, 2024 · In this paper we consider more subtle variations in successive iterates of the Syracuse function. Let Σn be the group of permutations of {1, 2, ...<|control11|><|separator|>
  40. [40]
    [PDF] arXiv:2308.00644v1 [math.NT] 1 Aug 2023
    Aug 1, 2023 · Let Ω be the set of odd positive integers and let S : Ω → Ω be the. Syracuse function. It is proved that, for every permutation σ of (1, 2, 3), ...
  41. [41]
    None
    ### Definition and Properties of Syracuse Function
  42. [42]
    [PDF] Stopping Times of Syracuse Integer Sequences on ℤ/2nℤ - HAL
    = 2n which is equivalent to say that all residue classes mod 2n, of Syracuse sequences of starting number s has a stopping time σ(s)<N(n). We 'll give later ...