Collatz conjecture: Difference between revisions

Content deleted Content added
made image smaller to fit
m Cycle length: dot to comma
 
(651 intermediate revisions by more than 100 users not shown)
Line 1:
{{short description|Open problem on 3x+1 and x/2 functions}}
{{short description|Conjecture in mathematics that, starting with any positive integer n, if one halves it (if even) or triples it and adds one (if odd) and repeats this ad infinitum, then one eventually obtains 1}}
{{pp|small=yes}}
{{unsolved|mathematics|Does the Collatz sequence eventually reach 1 for all positive integer initial values?}}
{{unsolved|mathematics|{{bulleted list|For even numbers, divide by 2;|For odd numbers, multiply by 3 and add 1.}}With enough repetition, do all positive integers converge to 1?}}
[[File:Collatz-graph-50-no27.svg|150px|thumb|[[Directed graph]] showing the [[Orbit (dynamics)|orbits]] of small numbers under the Collatz map. The Collatz conjecture is equivalent to the statement that all paths eventually lead to 1.]]
[[File:Collatz-graph-50-no27.svg|thumb|upright=0.6|[[Directed graph]] showing the [[Orbit (dynamics)|orbits]] of small numbers under the Collatz map, skipping even numbers. The Collatz conjecture states that all paths eventually lead to 1.]]
The '''Collatz conjecture''' is a [[conjecture]] in [[mathematics]] that concerns a [[sequence]] defined as follows: start with any [[positive integer]] {{mvar|n}}. Then each term is obtained from the previous term as follows: if the previous term is [[Parity (mathematics)|even]], 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 no matter what value of {{mvar|n}}, the sequence will always reach 1.
The '''Collatz conjecture'''{{efn|It is also known as the '''{{math|3''n'' + 1}} problem''' (or '''conjecture'''), the '''{{math|3''x'' + 1}} problem''' (or '''conjecture'''), the '''Ulam conjecture''' (after [[Stanisław Ulam]]), '''Kakutani's problem''' (after [[Shizuo Kakutani]]), the '''Thwaites conjecture''' (after [[Bryan Thwaites]]), '''Hasse's algorithm''' (after [[Helmut Hasse]]), or the '''Syracuse problem''' (after [[Syracuse University]]).<ref>{{cite book |last1=Maddux |first1=Cleborne D. |last2=Johnson |first2=D. Lamont |year=1997 |title=Logo: A Retrospective |publisher=Haworth Press |___location=New York |isbn=0-7890-0374-0 |page=160 |quote=The problem is also known by several other names, including: Ulam's conjecture, the Hailstone problem, the Syracuse problem, Kakutani's problem, Hasse's algorithm, and the Collatz problem.}}</ref>{{refn|According to {{named ref|name=Lagarias (1985)}} p.&nbsp;4, the name "Syracuse problem" was proposed by Hasse in the 1950s, during a visit to [[Syracuse University]].}}}} is one of the most famous [[List of unsolved problems in mathematics|unsolved problems in mathematics]]. The [[conjecture]] asks whether repeating two simple arithmetic operations will eventually transform every [[positive integer]] into 1. It concerns [[integer sequence|sequences of integers]] in which each term is obtained from the previous term as follows: if a term is [[Parity (mathematics)|even]], the next term is one half of it. If a 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. The conjecture has been shown to hold for all positive integers up to {{val|2.36e21}}, but no general proof has been found.
 
It is named after the mathematician [[Lothar Collatz]], who introduced the idea in 1937, two years after receiving his doctorate.<ref>{{mactutor|title=Lothar Collatz|id=Collatz}}</ref> The sequence of numbers involved is sometimes referred to as the '''hailstone sequence''', '''hailstone numbers''' or '''hailstone numerals''' (because the values are usually subject to multiple descents and ascents like [[hailstones]] in a cloud),<ref>{{cite book |last=Pickover |first=Clifford A. |year=2001 |title=Wonders of Numbers |url=https://archive.org/details/wondersnumbersad00pick |url-access=limited |publisher=Oxford University Press |___location=Oxford |isbn=0-19-513342-0 |pages=[https://archive.org/details/wondersnumbersad00pick/page/n136 116]–118}}</ref> or as '''wondrous numbers'''.<ref>{{cite book |last=Hofstadter |first=Douglas R. |author-link=Douglas Hofstadter |year=1979 |title=Gödel, Escher, Bach |publisher=Basic Books |___location=New York |isbn=0-465-02685-0 |pages=[https://archive.org/details/godelescherbach00doug/page/400 400–2]|title-link=Gödel, Escher, Bach }}</ref>
The conjecture is named after [[Lothar Collatz]], who introduced the idea in 1937, two years after receiving his doctorate.<ref>{{cite web|last1= O'Connor|first1=J.J.|last2=Robertson|first2=E.F.|title=Lothar Collatz|year=2006|url=http://www-history.mcs.st-andrews.ac.uk/Biographies/Collatz.html|publisher=St Andrews University School of Mathematics and Statistics, Scotland}}</ref> It is also known as the '''{{math|3''n'' + 1}} problem''', the '''{{math|3''n'' + 1}} conjecture''', the '''Ulam conjecture''' (after [[Stanisław Ulam]]), '''Kakutani's problem''' (after [[Shizuo Kakutani]]), the '''Thwaites conjecture''' (after Sir Bryan Thwaites), '''Hasse's algorithm''' (after [[Helmut Hasse]]), or the '''Syracuse problem'''.<ref>{{cite book |last1=Maddux |first1=Cleborne D. |last2=Johnson |first2=D. Lamont |year=1997 |title=Logo: A Retrospective |publisher=Haworth Press |___location=New York |isbn=0-7890-0374-0 |page=160 |quote=The problem is also known by several other names, including: Ulam's conjecture, the Hailstone problem, the Syracuse problem, Kakutani's problem, Hasse's algorithm, and the Collatz problem.}}</ref>{{refn|According to {{named ref|name=Lagarias (1985)}} p.&nbsp;4, the name "Syracuse problem" was proposed by Hasse in the 1950s, during a visit to [[Syracuse University]].}}
The sequence of numbers involved is sometimes referred to as the '''hailstone sequence''' or '''hailstone numbers''' (because the values are usually subject to multiple descents and ascents like [[hailstones]] in a cloud),<ref>{{cite book |last=Pickover |first=Clifford A. |year=2001 |title=Wonders of Numbers |url=https://archive.org/details/wondersnumbersad00pick |url-access=limited |publisher=Oxford University Press |___location=Oxford |isbn=0-19-513342-0 |pages=[https://archive.org/details/wondersnumbersad00pick/page/n136 116]–118}}</ref><ref name=hn>{{cite web |title=Hailstone Number |url=http://mathworld.wolfram.com/HailstoneNumber.html |work=MathWorld |publisher=Wolfram Research}}</ref> or as '''wondrous numbers'''.<ref>{{cite book |last=Hofstadter |first=Douglas R. |authorlink=Douglas Hofstadter |year=1979 |title=Gödel, Escher, Bach |publisher=Basic Books |___location=New York |isbn=0-465-02685-0 |pages=[https://archive.org/details/godelescherbach00doug/page/400 400–2]|title-link=Gödel, Escher, Bach }}</ref>
 
[[Paul Erdős]] said about the Collatz conjecture: "Mathematics may not be ready for such problems."<ref name="Guy (2004)"/> He[[Jeffrey alsoLagarias]] offeredstated US$500in for2010 itsthat solution.<ref>{{citethe journalCollatz |last=Guyconjecture |first=R."is K.an |year=1983extraordinarily |title=Don'tdifficult tryproblem, tocompletely solveout theseof problemsreach |journal=Amer.of Math.present Monthlyday |volume=90 |issue= 1|pages=35–41 |jstor=2975688 |doi=10.2307/2975688}} By this Erdos means that there aren't powerful tools for manipulating such objectsmathematics".</ref> [[Jeffrey name="Lagarias]] in (2010)"/> claimedHowever, thatthough basedthe onlyCollatz onconjecture knownitself informationremains about this problemopen, "thisefforts isto ansolve extraordinarily difficultthe problem, completelyhave outled ofto reachnew oftechniques presentand daymany mathematicspartial results.<ref name="Lagarias (2010)"/><ref name="Tao">{{citeCite bookjournal |editor1-last=LagariasTao |editor1-first=Jeffrey C.Terence |date=20102022 |title=TheAlmost ultimateall challenge:orbits of the 3''x''Collatz +map 1attain problemalmost bounded values |publisherjournal=AmericanForum Mathematicalof SocietyMathematics, Pi |___locationlanguage=Providence,en R|volume=10 |article-number=e12 |doi=10.I1017/fmp.2022.8 |isbnissn=9782050-08218494085086|doi-access=free |pagearxiv=41909.03562 }}</ref>
 
==Statement of the problem==
[[File:Collatz-stopping-time.svg|thumb|Numbers from 1 to 9999 and their corresponding total stopping time]]
[[File:CollatzStatistic100million.png|thumb|Histogram of total stopping times for the numbers 1 to 10<sup>8</sup>. Total stopping time is on the {{mvar|x}} axis, frequency on the {{mvar|y}} axis.]]
[[File:CollatzStatistic1billion.png|thumb|Histogram of total stopping times for the numbers 1 to 10<sup>9</sup>. Total stopping time is on the {{mvar|x}} axis, frequency on the {{mvar|y}} axis.]]
[[File:Collatz-10Million.png|thumb|Iteration time for inputs of 2 to 10<sup>7</sup>.]]
[[File:Collatz Gif.gif|alt=Total Stopping Time: Graphednumbers up to 250, 1000, 4000, 20000, 100000, 500000|thumb|StoppingTotal Time:stopping time Graphedof numbers up to 250, 1000, 4000, 20000, 100000, 500000 each frame is 1.75 seconds. ]]
Consider the following operation on an arbitrary [[positive integer]]:
 
Line 20 ⟶ 21:
 
In [[modular arithmetic]] notation, define the [[function (mathematics)|function]] {{mvar|f}} as follows:
<math display="block"> f(n) = \begin{cases} n/2 &\text{if } n \equiv 0 \pmod{2},\\
 
: <math> f(n) = \begin{cases} \frac{n}{2} &\text{if } n \equiv 0 \pmod{2}\\[4px] 3n+1 & \text{if } n\equiv 1 \pmod{2} .\end{cases}</math>
 
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:
<math display="block"> a_i = \begin{cases}n & \text{for } i = 0, \\ f(a_{i-1}) & \text{for } i > 0 \end{cases}</math>
(that is: {{math|''a<sub>i</sub>''}} is the value of {{mvar|f}} applied to {{mvar|n}} recursively {{mvar|i}} times; {{math|''a<sub>i</sub>'' {{=}} ''f''{{hsp}}{{isup|''i''}}(''n'')}}).
 
The Collatz conjecture is: ''This process will eventually reach the number 1, regardless of which positive integer is chosen initially. That is, for each'' <math>n</math>, there is some <math>i</math> with <math>a_i = 1</math>.
: <math> a_i = \begin{cases}n & \text{for } i = 0 \\ f(a_{i-1}) & \text{for } i > 0 \end{cases}</math>
 
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.
(that is: {{math|''a<sub>i</sub>''}} is the value of {{mvar|f}} applied to {{mvar|n}} recursively {{mvar|i}} times; {{math|''a<sub>i</sub>'' {{=}} ''f''{{isup|''i''}}(''n'')}}).
 
The smallest {{mvar|i}} such that {{math|''a<sub>i</sub>'' < ''a''<sub>0</sub> }} is called the '''stopping time''' of {{mvar|n}}. Similarly, the smallest {{mvar|k}} such that {{math|''a<sub>k</sub>'' {{=}} 1}} is called the '''total stopping time''' of {{mvar|n}}.<ref name="Lagarias (1985)"/> If one of the indexes {{mvar|i}} or {{mvar|k}} does not exist, we say that the stopping time or the total stopping time, respectively, is infinite.
The Collatz conjecture is: ''This process will eventually reach the number 1, regardless of which positive integer is chosen initially.''
 
ThatThe smallestCollatz {{mvar|i}}conjecture suchasserts that {{math|''a<sub>i</sub>'' {{=}} 1}} is called the '''total stopping time''' of {{mvar|n}}.<ref name="Lagarias (1985)"/> The conjecture asserts that every {{mvar|n}} hasis afinite. well-definedIt totalis stoppingalso time.equivalent If,to forsaying somethat {{mvar|n}}, such anevery {{mvarmath|i}} doesn't'n'' exist, we say that {{mvar|n2}} has infinitea totalfinite stopping time and the conjecture is false.
 
Since {{math|3''n'' + 1}} is even whenever {{mvar|n}} is odd, one may instead use the "shortcut" form of the Collatz function:
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.
<math display = "block"> f(n) = \begin{cases} \frac{n}{2} &\text{if } n \equiv 0 \pmod{2},\\ \frac{3n+1}{2} & \text{if } n\equiv 1 \pmod{2}. \end{cases}</math>
This definition yields smaller values for the stopping time and total stopping time without changing the overall dynamics of the process.
 
==ExamplesEmpirical data==
For instance, starting with {{math|''n'' {{=}} 12}}, oneand getsapplying the sequencefunction 12,{{math|''f''}} 6,without 3"shortcut", 10,one 5,gets 16,the 8,sequence 4, 2, 1{{CSG|12}}.
 
The number {{math|''n'' {{=}} 19}}, for example, takes longer to reach 1: {{CSG|19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1}}.
 
<!-- NOTICE TO EDITORS... Please note that the number of steps is one less than the number of elements of the sequence! So the number of 111 steps is CORRECT for n=27. Thanks for paying attention to this factoid! -->
The sequence for {{math|''n'' {{=}} 27}}, listed and graphed below, takes 111 steps (41 steps through odd numbers, in large fontbold), climbing to aas high of <span style="color:#FF0000">as 9232</span> before descending to 1.
 
: {{CSG|27|bold= odd}}{{OEIS|id=A008884}}
:<big>'''27'''</big>, 82, <big>'''41'''</big>, 124, 62, <big>'''31'''</big>, 94, <big>'''47'''</big>, 142, <big>'''71'''</big>, 214, <big>'''107'''</big>, 322, <big>'''161'''</big>, 484, 242, <big>'''121'''</big>, 364, 182, <big>'''91'''</big>, 274, <big>'''137'''</big>, 412, 206, <big>'''103'''</big>, 310, <big>'''155'''</big>, 466, <big>'''233'''</big>, 700, 350, <big>'''175'''</big>, 526, <big>'''263'''</big>, 790, <big>'''395'''</big>, 1186, <big>'''593'''</big>, 1780, 890, <big>'''445'''</big>, 1336, 668, 334, <big>'''167'''</big>, 502, <big>'''251'''</big>, 754, <big>'''377'''</big>, 1132, 566, <big>'''283'''</big>, 850, <big>'''425'''</big>, 1276, 638, <big>'''319'''</big>, 958, <big>'''479'''</big>, 1438, <big>'''719'''</big>, 2158, <big>'''1079'''</big>, 3238, <big>'''1619'''</big>, 4858, <big>'''2429'''</big>, 7288, 3644, 1822, <big>'''911'''</big>, 2734, <big>'''1367'''</big>, 4102, <big>'''2051'''</big>, 6154, <big>'''3077'''</big>, <big><span style="color:#FF0000"> '''9232'''</span></big>, 4616, 2308, 1154, <big>'''577'''</big>, 1732, 866, <big>'''433'''</big>, 1300, 650, <big>'''325'''</big>, 976, 488, 244, 122, <big>'''61'''</big>, 184, 92, 46, <big>'''23'''</big>, 70, <big>'''35'''</big>, 106, <big>'''53'''</big>, 160, 80, 40, 20, 10, <big>'''5'''</big>, 16, 8, 4, 2, <big>'''1'''</big> {{OEIS|id=A008884}}
 
[[File:Collatz5.svg|frameless|upright=2|center]]
Line 52 ⟶ 57:
: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, ... {{OEIS|A006877}}.
 
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, ... {{OEIS|id=A006884}}
 
Line 58 ⟶ 63:
: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, ... {{OEIS|id=A006577}}
 
The starting value having the largest total stopping time while being
The longest progression for any initial starting number
:less than 10 is 9, which has 19 steps,
:less than 100 is 97, which has 118 steps,
Line 66 ⟶ 71:
:less than 10<sup>6</sup> is {{val|837799}}, which has 524 steps,
:less than 10<sup>7</sup> is {{val|8400511}}, which has 685 steps,
:less than 10<sup>8</sup> is {{val|63728127}}, which has 949 steps,
:less than 10<sup>9</sup> is {{val|670617279}}, which has 986 steps,
:less than 10<sup>10</sup> is {{val|9780657630}}, which has 1132 steps,<ref>{{cite journal |last1=Leavens |first1=Gary T. |last2=Vermeulen |first2=Mike |date=December 1992 |title=3''x'' + 1 Searchsearch Programsprograms |journal=Computers & Mathematics with Applications |volume=24 |issue=11 |pages=79–99 |doi=10.1016/0898-1221(92)90034-F|doi-access= }}</ref>
:less than 10<sup>11</sup> is {{val|75128138247}}, which has 1228 steps,
:less than 10<sup>12</sup> is {{val|989345275647}}, which has 1348 steps,.<ref name=Roosendaal>{{cite web |last=Roosendaal |first=Eric |title=3x+1 delay records |url=http://www.ericr.nl/wondrous/delrecs.html |access-date=14 March 2020}} (Note: "Delay records" are total stopping time records.)</ref> {{OEIS|id=A284668}}
:less than 10<sup>13</sup> is {{val|7887663552367}}, which has 1563 steps,
:less than 10<sup>14</sup> is {{val|80867137596217}}, which has 1662 steps,
:less than 10<sup>15</sup> is {{val|942488749153153}}, which has 1862 steps,
:less than 10<sup>16</sup> is {{val|7579309213675935}}, which has 1958 steps, and
:less than 10<sup>17</sup> is {{val|93571393692802302}}, which has 2091 steps.<ref name=Roosendaal>{{cite web |last=Roosendaal |first=Eric |title=3x+1 Delay Records |url=http://www.ericr.nl/wondrous/delrecs.html |accessdate=14 March 2020}} (Note: "Delay records" are total stopping time records.)</ref>
 
These numbers are the lowest ones with the indicated step count, but not necessarily the only ones below the given limit. As an example, {{val|9780657631}} has 1132 steps, as does {{val|9780657630}}.
 
The starting values having the smallest total stopping time with respect to their number of digits (in base 2) are the [[Power of two|powers of two]], converge to one quickly becausesince {{math|2<sup>''n''</sup>}} is halved {{mvar|n}} times to reach 1, and it is never increased.
 
==Visualizations==
<gallery widthsmode="180px"packed heights="250px250">
Collatz_orbits_of_the_all_integers_up_to_1000File:Collatz orbits of the all integers up to 1000.svg|Directed graph showing the orbits of the first 1000 numbers.
File:CollatzConjectureGraphMaxValues.jpg|The {{mvar|x}} axis represents starting number, the {{mvar|y}} axis represents the highest number reached during the chain to&nbsp;1. This plot shows a restricted {{mvar|y}} axis: some {{mvar|x}} values produce intermediates as high as {{val|2.7e7}} (for {{math|''x'' {{=}} 9663}})
File:Collatz-max.png|The same plot as the previous one but on log scale, so all {{mvar|y}} values are shown. The first thick line towards the middle of the plot corresponds to the tip at 27, which reaches a maximum at 9232.
All Collatz sequences of a length inferior to 20.svg|The tree of all the numbers having fewer than 20 steps ''(click to enlarge)''.
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.
File:Collatz_conjecture_tree_visualization.png|Collatz conjecture paths for 5000 random starting points below 1 million.
</gallery>
 
==Supporting arguments==
Although the conjecture has not been proven, most mathematicians{{Citation needed|date=April 2025}} who have looked into the problem think the conjecture is true because experimental evidence and heuristic arguments support it.
 
===Experimental evidence===
{{asof|2020}}, theThe conjecture has been checked by computer for all starting values up to 2<sup>6871</sup> ≈ {{val|2.36e21}}. All values tested so far converge to 1.<ref name=Barina>{{cite webjournal | last = Barina | first = David | title = ConvergenceImproved verification limit for the convergence of the Collatz problemconjecture | journal = The Journal of Supercomputing | year = 2025 | volume = 81 | article-number = 810 | doi = 10.1007/s11227-025-07337-0 | s2cid = 220294340 |url=https://link.springer.com/content/pdf/10.1007/s11227-025-07337-0.pdf }}</ref>
https://link.springer.com/epdf/10.1007/s11227-020-03368-x?sharing_token=iHjm8Jplv9xSWZdSO8qrDfe4RwlQNchNByi7wbcMAY6LaNX-8xpPpeFvzaIIiop25QUeUqGPXOS4Kq08iPtbRqCaH8c-hMRTHkRt8ubtqjX9EXGPlfre6lVPg9MZOQm9Z195-DciZygFzRX1hmq-HYF19Mpwv840K681gJnY3os%3D |accessdate=2 July 2020}}</ref> All initial values tested so far eventually end in the repeating cycle {{math|(4;2;1)}}, which has only three terms. From this lower bound on the starting value, a lower bound can also be obtained for the number of terms a repeating cycle other than {{math|(4;2;1)}} must have.<ref name=Garner>{{cite web |last=Garner |first=Lynn E. |title=On The Collatz 3n + 1 Algorithm |url=http://www.ams.org/journals/proc/1981-082-01/S0002-9939-1981-0603593-2/S0002-9939-1981-0603593-2.pdf |accessdate=27 March 2015}}</ref> When this relationship was established in 1981, the formula gave a lower bound of {{val|35400}} terms.<ref name=Garner/>
 
This computer evidence is still not arigorous proof that the conjecture is true. Asfor shownall instarting thevalues, cases of theas [[Pólya conjecturecounterexamples]] may be found when considering very large (or possibly immense) positive integers, as in the case of the disproven [[MertensPólya conjecture]], and [[Skewes' number]], sometimes aMertens conjecture's only [[counterexamples]] are found when using very large numbers.
 
However, such verifications may have other implications. Certain constraints on any non-trivial cycle, such as [[lower bound]]s on the length of the cycle, can be proven based on the value of the lowest term in the cycle. Therefore, computer searches to rule out cycles that have a small lowest term can strengthen these constraints.<ref name="Garner (1981)"/><ref name="Eliahou (1993)"/><ref name="Simons & de Weger (2005)"/>
 
===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 {{sfrac|3|4}} of the previous one.{{refn|{{named ref|name=Lagarias (1985)}} section "[http://www.cecm.sfu.ca/organics/papers/lagarias/paper/html/node3.html A heuristic argument"].}} (More precisely, the geometric mean of the ratios of outcomes is {{sfrac|3|4}}.) 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 [[p-adic numbers|2-adic]] extension of the Collatz process has two division steps for every multiplication step for [[almost all]] 2-adic starting values.)
 
===Stopping times===
And even if the probabilistic reasoning were rigorous, this would still imply only that the conjecture is [[almost surely]] true for any given integer, which does not necessarily imply that it is true for all integers.
As proven by [[Riho Terras (mathematician)|Riho Terras]], almost every positive integer has a finite stopping time.{{efn|Here "almost every" means that the [[natural density]] of the set of integers with finite stopping times is 1.}}<ref name="Terras (1976)"/> 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 [[#As a parity sequence|parity vectors]] and uses the [[central limit theorem]].
 
In 2019, [[Terence Tao]] (2019)improved provedthis result by showing, using probability[[logarithmic density]], that [[almost all]] (in the sense of logarithmic density) Collatz orbits are boundeddescending bybelow any given function of the starting point, provided that this function diverges intoto 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"."<ref name="Tao"/><ref>{{citeCite web |last1last=TaoHartnett |first1first=TerenceKevin |titledate=AlmostDecember all Collatz orbits attain almost bounded values |url=https://terrytao.wordpress.com/2019/09/10/almost-all-collatz-orbits-attain-almost-bounded-values/ |website=What's new |accessdate=11 September, 2019 |language=en |date=10 September 2019}}</ref><ref name="Quanta">{{cite news |last1=Hartnett |first1=Kevin |title=Mathematician Proves Huge Result on 'Dangerous' Problem |url=https://www.quantamagazine.org/mathematician-terenceproves-taohuge-andresult-theon-collatzdangerous-conjectureproblem-20191211/ |accessdate=26 December 2019 |workwebsite=Quanta Magazine |language=en}}</ref>
 
===RigorousLower bounds===
In a [[computer-aided proof]], Krasikov and Lagarias showed that the number of integers in the interval {{math|[1,''x'']}} that eventually reach 1 is at least equal to {{math|''x''<sup>0.84</sup>}} for all sufficiently large {{mvar|x}}.<ref>{{Cite journal
| last1 = Krasikov | first1 = Ilia
| last2 = Lagarias | first2 = Jeffrey C. | authorlink2author-link2 = Jeffrey Lagarias
| year = 2003
| title = Bounds for the 3''x''&nbsp;+&nbsp;1 problem using difference inequalities
Line 118 ⟶ 123:
| pages = 237–258| arxiv = math/0205002
| bibcode = 2003AcAri.109..237K
| s2cid = 18467460
}}</ref>
 
==Cycles==
In this part, consider the "shortcut" form of the Collatz function
: <math display="block"> Tf(xn) = \begin{cases} \frac{xn}{2} &\text{if } xn \equiv 0 \pmod{2},\\[4px] \frac{3x3n+1}{2} & \text{if } xn \equiv 1 \pmod{2}. \end{cases}</math>
A ''[[Periodic sequence|cycle'']] is a sequence {{math|(''a''<sub>0</sub>;, ''a''<sub>1</sub>;, ...;, ''a<sub>q</sub>'')}} of distinct positive integers where {{math|''Tf''(''a''<sub>0</sub>) {{=}} ''a''<sub>1</sub>}}, {{math|''Tf''(''a''<sub>1</sub>) {{=}} ''a''<sub>2</sub>}}, ..., and {{math|''Tf''(''a<sub>q</sub>'') {{=}} ''a''<sub>0</sub>}}.
 
The only known cycle is {{math|(1;,2)}} of lengthperiod 2, called the trivial cycle.
 
===Cycle length===
The lengthAs of a2025, non-trivialthe cycle isbest known tobound beon atcycle leastlength is {{val|17087915217976794617}}.<ref> ({{Cite journalval|last=Eliahou|first=Shalom|date=1993-08-01|title=The355504839929}} 3''x''without +shortcut).<ref 1 problem: new lower bounds on nontrivial cycle lengths|urlname=|journal=Discrete Mathematics|volume=118|issue=1|pages=45–56|doi=10.1016Barina/0012-365X(93)90052-U}}</ref> In fact1993, Eliahou (1993) proved that the period {{mvar|p}} of any non-trivial cycle is of the form
:<math display="block">p = 301994 a + 17087915 b + 85137581 c</math>
where {{mvar|a}}, {{mvar|b}} and {{mvar|c}} are non-negative integers, {{math|''b'' ≥ 1}} and {{math|1=''ac'' {{=}} 0}}. This result is based on the [[simple continued fraction]] expansion of {{math|{{sfrac|ln 3|ln 2}}}}.<ref name="Eliahou (1993)"/>
 
A similar reasoning that accounts for the recent verification of the conjecture up to {{Math|2<sup>68</sup>}} leads to the improved lower bound {{val|114208327604}} (or {{val|186265759595}} without the "shortcut"). This lower bound is consistent with the above result, since <math>114208327604 = 17087915 \times 361 + 85137581 \times 1269</math>.
 
==={{mvar|k}}-cycles===
A {{mvar|k}}-cycle is a cycle that can be partitioned into {{math|2''k''}} contiguous subsequences:, {{mvar|k}}each consisting of an increasing sequencessequence of odd numbers, alternatingfollowed withby {{mvar|k}}a decreasing sequencessequence of even numbers.<ref name="Simons & de Weger (2005)"/> 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''.<ref name="Simons & de Weger (2003)"/>
 
Steiner (1977) proved that there is no 1-cycle other than the trivial {{math|(1; 2)}}.<ref name="Steiner (1977)"/> Simons (20042005) used Steiner's method to prove that there is no 2-cycle.<ref>{{cite journal |last=Simons |first=John L. |year=2005 |title=On the nonexistence of 2-cycles for the 3''x'' + 1 problem |journal=Math. Comp. |volume=74 |issue= |pages=1565–72 |mr=2137019 |doi=10.1090/s0025-5718-04-01728-4|bibcode=2005MaCom..74.1565S |doi-access=free }}</ref> Simons &and de Weger (2005) extended this proof up to 68-cycles:; there is no {{mvar|k}}-cycle up to {{math|''k'' {{=}} 68}}.<ref name="Simons & de Weger (20032005)"/> BeyondHercher 68,extended thisthe method givesfurther upperand boundsproved for the elements in such a cycle: for example, ifthat there isexists ano 75''k''-cycle, then at least one element of the cycle is less thanwith {{gapsmath|2385|×|2<sup>50</sup>''k'' ≤ 91}}.<ref name="Simons & de WegerHercher (20032023)"/> Therefore, asAs exhaustive computer searches continue, larger cycles{{math|''k''}} values may be ruled out. To state the argument more intuitively:; we needdo not lookhave to search for cycles that have atless mostthan 6892 trajectoriessubsequences, where each trajectorysubsequence consists of consecutive ups followed by consecutive downs.{{clarify|date=September 2024}}
 
==Other formulations of the conjecture==
Line 145 ⟶ 149:
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 (discrete mathematics)|graph]] defined by the inverse [[relation (mathematics)|relation]]
<math display="block"> R(n) = \begin{cases} \{2n\} & \text{if } n\equiv 0,1,2,3,5 \\ \left\{2n,\frac{n-1}{3}\right\} & \text{if } n\equiv 4 \end{cases} \pmod 6. </math>
 
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 {{mvar|n}}, {{math|''n'' ≡ 1 (mod 2)}} [[if and only if]] {{math|3''n'' + 1 ≡ 4 (mod 6)}}. Equivalently, {{math|{{sfrac|''n'' − 1|3}} ≡ 1 (mod 2)}} if and only if {{math|''n'' ≡ 4 (mod 6)}}. Conjecturally, this inverse relation forms a [[tree (graph theory)|tree]] except for the 1–2–4 loop (the inverse of the 4–2–1 loop of the unaltered function {{mvar|f}} defined in the [[#Statement of the problem|Statement of the problem]] section of this article).
: <math> R(n) = \begin{cases} \{2n\} & \text{if } n\equiv 0,1,2,3,5 \\[4px] \left\{2n,\frac{n-1}{3}\right\} & \text{if } n\equiv 4 \end{cases} \pmod 6. </math>
 
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 {{mvar|n}}, {{math|''n'' ≡ 1 (mod 2)}} [[if and only if]] {{math|3''n'' + 1 ≡ 4 (mod 6)}}. Equivalently, {{math|{{sfrac|''n'' − 1|3}} ≡ 1 (mod 2)}} if and only if {{math|''n'' ≡ 4 (mod 6)}}. Conjecturally, this inverse relation forms a [[tree (graph theory)|tree]] except for the 1–2–4 loop (the inverse of the 4–2–1 loop of the unaltered function {{mvar|f}} defined in the [[Collatz conjecture#Statement of the problem|Statement of the problem]] section of this article).
 
When the relation {{math|3''n'' + 1}} of the function {{mvar|f}} is replaced by the common substitute "shortcut" relation {{math|{{sfrac|3''n'' + 1|2}}}}, the Collatz graph is defined by the inverse relation,
<math display="block"> R(n) = \begin{cases} \{2n\} & \text{if } n\equiv 0,1 \\ \left\{2n,\frac{2n-1}{3}\right\} & \text{if } n\equiv 2 \end{cases} \pmod 3. </math>
 
: <math> R(n) = \begin{cases} \{2n\} & \text{if } n\equiv 0,1 \\[4px] \left\{2n,\frac{2n-1}{3}\right\} & \text{if } n\equiv 2 \end{cases} \pmod 3. </math>
 
For any integer {{mvar|n}}, {{math|''n'' ≡ 1 (mod 2)}} if and only if {{math|{{sfrac|3''n'' + 1|2}} ≡ 2 (mod 3)}}. Equivalently, {{math|{{sfrac|2''n'' − 1|3}} ≡ 1 (mod 2)}} if and only if {{math|''n'' ≡ 2 (mod 3)}}. 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 {{math|3''n'' + 1}} with {{math|{{sfrac|''n''{{prime}}|''H''(''n''{{prime}})}}}} where {{math|''n''{{prime}} {{=}} 3''n'' + 1}} and {{math|''H''(''n''{{prime}})}} is the highest [[power of 2]] that divides {{math|''n''{{prime}}}} (with no [[remainder]]). The resulting function {{mvar|f}} maps from [[odd number]]s to odd numbers. Now suppose that for some odd number {{mvar|n}}, applying this operation {{mvar|k}} times yields the number 1 (that is, {{math|''f''{{isup|''k''}}(''n'') {{=}} 1}}). Then in [[Binary number|binary]], the number {{mvar|n}} can be written as the concatenation of [[String (computer science)|strings]] {{math|''w''<sub>''k''</sub> ''w''<sub>''k''−1</sub> ... ''w''<sub>1</sub>}} where each {{math|''w''<sub>''h''</sub>}} is a finite and contiguous extract from the representation of {{math|{{sfrac|1|3<sup>''h''</sup>}}}}.<ref name="Colussi2011">{{cite journal |last=Colussi |first=Livio |date=9 September 2011 |title=The convergence classes of Collatz function |journal=Theoretical Computer Science |doi=10.1016/j.tcs.2011.05.056 |volume=412 |issue=39 |pages=5409–5419|doi-access=free }}</ref> The representation of {{mvar|n}} therefore holds the [[Repeating decimal|repetends]] of {{math|{{sfrac|1|3<sup>''h''</sup>}}}}, where each repetend is optionally rotated and then replicated up to a finite number of bits. It is only in binary that this occurs.<ref name="Hew2016">{{cite journal |last=Hew |first=Patrick Chisan |date=7 March 2016 |title=Working in binary protects the repetends of 1/3<sup>''h''</sup>: Comment on Colussi's 'The convergence classes of Collatz function' |journal=Theoretical Computer Science |doi=10.1016/j.tcs.2015.12.033 |volume=618 |pages=135–141|doi-access=free }}</ref> Conjecturally, every binary string {{mvar|s}} that ends with a '1' can be reached by a representation of this form (where we may add or delete leading '0's to&nbsp;{{mvar|s}}).
 
===As an abstract machine that computes in base two===
Repeated applications of the Collatz function can be represented as an [[abstract machine]] that handles [[string (computer science)|strings]] of [[bit]]s. The machine will perform the following three steps on any odd number until only one "{{mono|1"}} remains:
 
# Append {{mono|1}} to the (right) end of the number in binary (giving {{math|2''n'' + 1}});
# Add this to the original number by binary addition (giving {{math|2''n'' + 1 + ''n'' {{=}} 3''n'' + 1}});
# Remove all trailing "{{mono|0"}}s (i.e.that is, repeatedly divide by two2 until the result is odd).
 
====Example====
The starting number 7 is written in base two as {{mono|111}}. The resulting Collatz sequence is:
 
<div style="font-family:'Courier New', 'Lucida Console', 'Courier', Monospacemonospace">
111
<u>111'''1'''</u>
1011<s>0</s>
<u>1011'''1'''</u>
10001<s>0</s>
<u>10001'''1'''</u>
1101<s>00</s>
<u>1101'''1'''</u>
101<s>000</s>
<u>101'''1'''</u>
1<s>0000</s>
</div>
 
===As a parity sequence===
For this section, consider the Collatzshortcut functionform <!-- {{math|{{sfrac|''n''|2}} + ( ''n'' mod 2 ) ( ''n'' + {{sfrac|1|2}} )}} --> inof the slightlyCollatz modified formfunction
<math display="block"> f(n) = \begin{cases} \frac{n}{2} &\text{if } n \equiv 0 \\ \frac{3n + 1}{2} & \text{if } n \equiv 1 \end{cases} \pmod{2}.</math>
 
If {{math|P(...)}} is the parity of a number, that is {{math|P(2''n'') {{=}} 0}} and {{math|P(2''n'' + 1) {{=}} 1}}, then we can define the Collatz parity sequence (or parity vector) for a number {{mvar|n}} as {{math|''p<sub>i</sub>'' {{=}} P(''a<sub>i</sub>'')}}, where {{math|''a''<sub>0</sub> {{=}} ''n''}}, and {{math|''a''<sub>''i''+1</sub> {{=}} ''f''(''a''<sub>''i''</sub>)}}.
: <math> f(n) = \begin{cases} \frac{n}{2} &\text{if } n \equiv 0 \\[4px] \frac{3n + 1}{2} & \text{if } n \equiv 1 \end{cases} \pmod{2}.</math>
 
This can be done because when {{mvar|n}} is odd, {{math|3''n'' + 1}} is always even.
 
If {{math|P(…)}} is the parity of a number, that is {{math|P(2''n'') {{=}} 0}} and {{math|P(2''n'' + 1) {{=}} 1}}, then we can define the Collatz parity sequence (or parity vector) for a number {{mvar|n}} as {{math|''p<sub>i</sub>'' {{=}} P(''a<sub>i</sub>'')}}, where {{math|''a''<sub>0</sub> {{=}} ''n''}}, and {{math|''a''<sub>''i''+1</sub> {{=}} ''f''(''a''<sub>''i''</sub>)}}.
 
Which operation is performed, {{math|{{sfrac|3''n'' + 1|2}}}} or {{math|{{sfrac|''n''|2}}}}, depends on the parity. The parity sequence is the same as the sequence of operations.
 
Using this form for {{math|''f''(''n'')}}, it can be shown that the parity sequences for two numbers {{mvar|m}} and {{mvar|n}} will agree in the first {{mvar|k}} terms if and only if {{mvar|m}} and {{mvar|n}} are equivalent modulo {{math|2<sup>''k''</sup>}}. 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.<ref name="Lagarias (1985)"/><ref name="Terras (1976)"/>{{citation
| last = Terras | first = Riho
| year = 1976
| title = A stopping time problem on the positive integers
| journal = Acta Arithmetica
| mr = 0568274
| volume = 30
| issue = 3
| pages = 241–252
| url = http://matwbn.icm.edu.pl/ksiazki/aa/aa30/aa3034.pdf | doi=10.4064/aa-30-3-241-252
}}</ref>
 
Applying the {{mvar|f}} function {{mvar|k}} times to the number {{math|''n'' {{=}} 2<sup>''k''</sup>''a'' + ''b''}} will give the result {{math|3<sup>''c''</sup>''a'' + ''d''}}, where {{mvar|d}} is the result of applying the {{mvar|f}} function {{mvar|k}} times to {{mvar|b}}, and {{mvar|c}} is how many increases were encountered during that sequence (e.g. For example, for {{math|2<sup>5</sup>''a'' + 1}} there are 3 increases as 1 iterates to 2, 1, 2, 1, and finally to 2 so the result is {{math|3<sup>3</sup>''a'' + 2}}; for {{math|2<sup>2</sup>''a'' + 1}} there is only 1 increase as 1 rises to 2 and falls to 1 so the result is {{math|3''a'' + 1}}). When {{mvar|b}} is {{math|2<sup>''k''</sup> − 1}} then there will be {{mvar|k}} rises and the result will be {{math|2 × 3<sup>''k''</sup>''a'' + 3<sup>''k''</sup> − 1}}. The factorpower of 3 multiplying {{mvar|a}} is independent of the value of {{mvar|a}}; it depends only on the behavior of {{mvar|b}}. This allows one to predict that certain forms of numbers will always lead to a smaller number after a certain number of iterations,: e.g.for example, {{math|4''a'' + 1}} becomes {{math|3''a'' + 1}} after two applications of {{mvar|f}} and {{math|16''a'' + 3}} becomes {{math|9''a'' + 2}} after 4four applications of {{mvar|f}}. Whether those smaller numbers continue to 1, however, depends on the value of {{mvar|a}}.
 
===As a tag system===
For the Collatz function in the shortcut form
 
<math> f(n) = \begin{cases} \frac{n}{2} &\text{if } n \equiv 0 \\[4px] \frac{3n+1}{2} & \text{if } n \equiv 1. \end{cases} \pmod{2}</math>
 
Hailstone sequences can be computed by the extremely simple [[Tag system#Example: Computation of HailstoneCollatz sequences|2-tag system]] with production rules
 
:{{math|''a'' → ''bc''}}, {{math|''b'' → ''a''}}, {{math|''c'' → ''aaa''}}.
Line 218 ⟶ 207:
In this system, the positive integer {{mvar|n}} is represented by a string of {{mvar|n}} copies of {{mvar|a}}, and iteration of the tag operation halts on any word of length less than&nbsp;2. (Adapted from De Mol.)
 
The Collatz conjecture equivalently states that this tag system, with an arbitrary finite string of {{mvar|a}} as the initial word, eventually halts (see ''[[Tag system#Example: Computation of Collatz sequences|Tag system]]'' 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 4four known cycles, which all nonzero integers seem to eventually fall into under iteration of {{mvar|f}}. These cycles are listed here, starting with the well-known cycle for positive&nbsp;{{mvar|n}}:
 
Odd values are listed in large bold. Each cycle is listed with its member of least absolute value (which is always odd) first.
Line 239 ⟶ 228:
|}
 
The generalized Collatz conjecture is the assertion that every integer, under iteration by {{mvar|f}}, eventually falls into one of the four cycles above or the cycle 0 → 0. The 0 → 0 cycle is often regarded as "trivial" by the argument, as it 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 [[#As a parity sequence|parity sequence]] is generated by exactly one rational.<ref>{{Cite journal|last=Lagarias|first=Jeffrey|date=1990|title=The set of rational cycles for the 3x+1 problem|url=https://eudml.org/doc/206298|journal=Acta Arithmetica|volume=56|issue=1|pages=33–53|issn=0065-1036|doi=10.4064/aa-56-1-33-53|doi-access=free}}</ref> Conversely, it is conjectured that every rational with an odd denominator has an eventually cyclic parity sequence (Periodicity Conjecture <ref name="Lagarias (1985)"/>).
 
If a parity cycle has length {{mvar|n}} and includes odd numbers exactly {{mvar|m}} times at indices {{math|''k''<sub>0</sub> < < ''k''<sub>''m''−1</sub>}}, then the unique rational which generates immediately and periodically this parity cycle is
{{NumBlk|:|<math>\frac{3^{m-1} 2^{k_0} + \cdots + 3^0 2^{k_{m-1}}}{2^n - 3^m}.</math>|{{EquationRef|1}}}}
 
For example, the parity cycle {{nowrap|(1 0 1 1 0 0 1)}} has length 7 and four odd terms at indices 0, 2, 3, and 6. It is repeatedly generated by the fraction
:<math display="block">\frac{3^3 2^0 + 3^2 2^2 + 3^1 2^3 + 3^0 2^6}{2^7 - 3^4} = \frac{151}{47}</math>
as the latter leads to the rational cycle
:<math display="block">\frac{151}{47} \rightarrow \frac{250}{47} \rightarrow \frac{125}{47} \rightarrow \frac{211}{47} \rightarrow \frac{340}{47} \rightarrow \frac{170}{47} \rightarrow \frac{85}{47} \rightarrow \frac{151}{47} .</math>.
 
Any cyclic permutation of {{nowrap|(1 0 1 1 0 0 1)}} is associated to one of the above fractions. For instance, the cycle {{nowrap|(0 1 1 0 0 1 1)}} is produced by the fraction
:<math display="block">\frac{3^3 2^1 + 3^2 2^2 + 3^1 2^5 + 3^0 2^6}{2^7 - 3^4} = \frac{250}{47} . </math>.
 
For a one-to-one correspondence, a parity cycle should be ''irreducible'', i.e.that is, not partitionable into identical sub-cycles. As an illustration of this, the parity cycle {{nowrap|(1 1 0 0 1 1 0 0)}} and its sub-cycle {{nowrap|(1 1 0 0)}} are associated to the same fraction {{sfrac|5|7}} when reduced to lowest terms.
 
In this context, assuming the validity of the Collatz conjecture implies that {{nowrap|(1 0)}} and {{nowrap|(0 1)}} are the only parity cycles generated by positive whole numbers (1 and 2, respectively).
 
If the odd denominator {{mvar|d}} 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 "{{math|3''n'' + ''d''}}&nbsp;" generalization<ref name="Belaga (1998a)"/> of the Collatz function
: <math display="block"> T_d(x) = \begin{cases}
\frac{x}{2} &\text{if } x \equiv 0 \pmod{2},\\[4px]
\frac{3x+d}{2} & \text{if } x\equiv 1 \pmod{2}.
\end{cases}</math>
 
===2-adic extension===
The function
: <math display="block"> T(x) = \begin{cases} \frac{x}{2} &\text{if } x \equiv 0 \pmod{2}\\[4px] \frac{3x+1}{2} & \text{if } x\equiv 1 \pmod{2} \end{cases}</math>
is well-defined on the ring {{<math|ℤ<sub>2\mathbb{Z}_2</submath>}} of [[2-adic integers]], where it is continuous and [[Measure-preserving transformation|measure-preserving]] with respect to the 2-adic measure. Moreover, its dynamics is known to be [[Ergodic theory|ergodic]].<ref name="Lagarias (1985)"/>
 
Define the ''parity vector'' function {{mvar|Q}} acting on {{<math|ℤ<sub>2\mathbb{Z}_2</submath>}} as
: <math display="block"> Q(x) = \sum_{k=0}^{\infty} \left( T^k (x) \modbmod 2 \right) 2^k .</math>.
 
The function {{mvar|Q}} is a 2-adic [[isometry]].<ref>{{Cite journal|last1=LagariasBernstein|first1=JeffreyDaniel CJ.|last2=BernsteinLagarias|first2=DanielJeffrey JC.|date=1996|title=The 3''x'' + 1 Conjugacyconjugacy Mapmap|journal=[[Canadian Journal of Mathematics]]|language=en|volume=48|issue=6|pages=1154–1169|doi=10.4153/CJM-1996-060-x|doi-access=free|issn=0008-414X}}</ref> Consequently, every infinite parity sequence occurs for exactly one 2-adic integer, so that [[almost all]] trajectories are acyclic in <math>\mathbb{Z}_2</math>.
 
An equivalent formulation of the Collatz conjecture is that
:<math display="block"> Q\left(\mathbb{Z}^{+}\right) \subset \tfrac13 \mathbb{Z}.</math>
 
===Iterating on real or complex numbers{{anchor|Collatz_fractal}}===
[[File:CobwebCollatz2Collatz Cobweb.PNGsvg|thumb|[[Cobweb plot]] of the orbit 10-5-8-4-2-1-2-1-2-1-etc → ... in the realan extension of the Collatz map (optimizedto bythe replacing "{{math|3''n'' + 1}}" withreal "{{math|{{sfrac|3''n'' + 1|2}}}}")line.]]
 
The Collatz map can be extended to the [[real line]] by choosing any function which evaluates to <math>x/2</math> when <math>x</math> is an even integer, and to either <math>3x + 1</math> or <math>(3x + 1)/2</math> (for the "shortcut" version) when <math>x</math> is an odd integer. This is called an [[interpolating]] function. A simple way to do this is to pick two functions <math>g_1</math> and <math>g_2</math>, where:
The Collatz map can be viewed as the restriction to the integers of the smooth real and complex map
:<math>g_1(n) = \begin{cases}1, &n\text{ is even,}\\ 0, &n\text{ is odd,}\end{cases}</math>
:<math>g_2(n) = \begin{cases}0, &n\text{ is even,}\\1, &n\text{ is odd,}\end{cases}</math>
and use them as switches for our desired values:
:<math>f(x) \triangleq \frac{x}{2}\cdot g_1(x) \,+\, \frac{3x + 1}{2}\cdot g_2(x)</math>.
One such choice is <math>g_1(x) \triangleq \cos^2\left(\tfrac{\pi}{2} x\right)</math> and <math>g_2(x) \triangleq \sin^2\left(\tfrac{\pi}{2} x\right)</math>. The [[iterations]] of this map lead to a [[dynamical system]], further investigated by Marc Chamberland.<ref name="Chamberland (1996)"/> He showed that the conjecture does not hold for positive real numbers since there are infinitely many [[Fixed point (mathematics)|fixed points]], as well as [[Orbit (dynamics)|orbits]] escaping [[monotonic function|monotonically]] to infinity. The function <math>f</math> has two [[attractor|attracting]] cycles of period <math>2</math>: <math>(1;\,2)</math> and <math>(1.1925...;\,2.1386...)</math>. Moreover, the set of unbounded orbits is conjectured to be of [[Lebesgue measure|measure]] <math>0</math>.
 
Letherman, Schleicher, and Wood extended the study to the [[complex plane]].<ref name="Letherman, Schleicher, and Wood (1999)"/> They used Chamberland's function for [[Trigonometric_functions#In_the_complex_plane|complex sine and cosine]] and added the extra term <math>\tfrac{1}{\pi}\left(\tfrac12 - \cos(\pi z)\right)\sin(\pi z)\,+</math>
:<math>f(z)=\frac 1 2 z \cos^2\left(\frac \pi 2 z\right)+(3z+1)\sin^2\left(\frac \pi 2 z\right).</math>
<math>h(z)\sin^2(\pi z)</math>, where <math>h(z)</math> is any [[entire function]]. Since this expression evaluates to zero for real integers, the extended function
:<math>\begin{align}f(z) \triangleq \;&\frac{z}{2}\cos^2\left(\frac{\pi}{2} z\right) + \frac{3z + 1}{2}\sin^2\left(\frac{\pi}{2} z\right) \, + \\
&\frac{1}{\pi}\left(\frac12 - \cos(\pi z)\right)\sin(\pi z) + h(z)\sin^2(\pi z)\end{align}</math>
 
is an interpolation of the Collatz map to the complex plane. The reason for adding the extra term is to make all integers [[Critical point (mathematics)|critical points]] of <math>f</math>. With this, they show that no integer is in a [[Classification_of_Fatou_components#Baker_domain|Baker ___domain]], which implies that any integer is either eventually periodic or belongs to a [[wandering set|wandering ___domain]]. They conjectured that the latter is not the case, which would make all integer orbits finite.
If the standard Collatz map defined above is optimized by replacing the relation {{math|3''n'' + 1}} with the common substitute "shortcut" relation {{math|{{sfrac|3''n'' + 1|2}}}}, it can be viewed as the restriction to the integers of the smooth real and complex map
 
[[File:Collatz Fractal.jpg|thumb|left|A Collatz [[fractal]] centered at the origin, with real parts from –5 to 5.]]
:<math>f(z)=\frac 1 2 z \cos^2\left(\frac \pi 2 z\right)+\frac {3z+1} {2} \sin^2\left(\frac \pi 2 z\right).</math>
 
Most of the points have orbits that diverge to infinity. Coloring these points based on how fast they diverge produces the image on the left, for <math>h(z) \triangleq 0</math>. The inner black regions and the outer region are the [[Classification of Fatou components|Fatou components]], and the boundary between them is the [[Julia set]] of <math>f</math>, which forms a [[fractal]] pattern, sometimes called a "Collatz fractal".
[[File:CollatzFractal.png|thumb|left|Collatz map [[fractal]] in a neighbourhood of the real line]]
 
[[File:Exponential Collatz Fractal.jpg|thumb|right|Julia set of the exponential interpolation.]]
The point of view of iteration on the real line was investigated by {{named ref|name=Chamberland (1996)}}.
He showed that the conjecture does not hold for real numbers since there are infinitely many fixed points, as well as orbits escaping monotonically to infinity. He also showed that there is, at least, another attracting cycle: 1.1925 → 2.1386.
 
There are many other ways to define a complex interpolating function, such as using the [[Exponential_function#Complex_plane|complex exponential]] instead of sine and cosine:
On the complex plane, it was investigated by {{named ref|name=Letherman, Schleicher, and Wood (1999)|separator=.}}
:<math>f(z) \triangleq \frac{z}{2} + \frac14(2z + 1)\left(1 - e^{i\pi z}\right)</math>,
Most points of the plane diverge to infinity, as seen in blue on the illustration below. The boundary between diverging and non-diverging regions show a [[fractal]] pattern called the "Collatz fractal".
which exhibit different dynamics. In this case, for instance, if <math>\operatorname{Im}(z) \gg 1</math>, then <math>f(z) \approx z + \tfrac14</math>. The corresponding Julia set, shown on the right, consists of uncountably many curves, called ''hairs'', or ''rays''.
 
{{clear}}
Line 301:
==Optimizations==
===Time–space tradeoff===
The section ''[[#As a parity sequence|As a parity sequence]]'' above gives a way to speed up simulation of the sequence. To jump ahead {{mvar|k}} steps on each iteration (using the {{mvar|f}} function from that section), break up the current number into two parts, {{mvar|b}} (the {{mvar|k}} least significant bits, interpreted as an integer), and {{mvar|a}} (the rest of the bits as an integer). The result of jumping ahead {{mvar|k}} stepsis cangiven be found as:by
:{{math|''f''{{isup|''k''}}(2<sup>''k''</sup>''a'' + ''b'') {{=}} 3<sup>''c''(''b'', ''k'')</sup>''a'' + ''d''(''b'', ''k'')}}.
The values of {{mvar|c}} (or better {{math|3<sup>''c''</sup>}}) and {{mvar|d}} can be precalculated for all possible {{mvar|k}}-bit numbers {{mvar|b}}, where {{math|''d''(''b'', ''k'')}} is the result of applying the {{mvar|f}} function {{mvar|k}} times to {{mvar|b}}, and {{math|''c''(''b'', ''k'')}} is the number of odd numbers encountered on the way.<ref>{{cite web |last=Scollo |first=Giuseppe |year=2007 |title=Looking for class records in the 3''x'' + 1 problem by means of the COMETA grid infrastructure |work=Grid Open Days at the University of Palermo |url=http://www.dmi.unict.it/~scollo/seminars/gridpa2007/CR3x+1paper.pdf}}</ref> For example, if {{math|''k'' {{=}} 5}}, one can jump ahead 5 steps on each iteration by separating out the 5 least significant bits of a number and using
 
: {{mvar|c}}(0...31, 5) = { 0, 3, 2, 2, 2, 2, 2, 4, 1, 4, 1, 3, 2, 2, 3, 4, 1, 2, 3, 3, 1, 1, 3, 3, 2, 3, 2, 4, 3, 3, 4, 5 },
:{{math|''f''{{isup|''k''}}(2<sup>''k''</sup>''a'' + ''b'') {{=}} 3<sup>''c''(''b'')</sup>''a'' + ''d''(''b'')}}.
: {{mvar|d}}(0...31, 5) = { 0, 2, 1, 1, 2, 2, 2, 20, 1, 26, 1, 10, 4, 4, 13, 40, 2, 5, 17, 17, 2, 2, 20, 20, 8, 22, 8, 71, 26, 26, 80, 242 }.
 
The {{mvar|c}} (or better {{math|3<sup>''c''</sup>}}) and {{mvar|d}} arrays are precalculated for all possible {{mvar|k}}-bit numbers {{mvar|b}}, where {{math|''d''(''b'')}} is the result of applying the {{mvar|f}} function {{mvar|k}} times to {{mvar|b}}, and {{math|''c''(''b'')}} is the number of odd numbers encountered on the way.<ref>{{citation |last=Scollo |first=Giuseppe |year=2007 |contribution=Looking for Class Records in the 3''x'' + 1 Problem by means of the COMETA Grid Infrastructure |title=Grid Open Days at the University of Palermo |url=http://www.dmi.unict.it/~scollo/seminars/gridpa2007/CR3x+1paper.pdf}}</ref> For example, if {{mvar|''k'' {{=}} 5}}, one can jump ahead 5 steps on each iteration by separating out the 5 least significant bits of a number and using:
 
: {{math|''c''}}(0...31) = {0,3,2,2,2,2,2,4,1,4,1,3,2,2,3,4,1,2,3,3,1,1,3,3,2,3,2,4,3,3,4,5}
: {{math|''d''}}(0...31) = {0,2,1,1,2,2,2,20,1,26,1,10,4,4,13,40,2,5,17,17,2,2,20,20,8,22,8,71,26,26,80,242}.
 
This requires {{math|2<sup>''k''</sup>}} [[precomputation]] and storage to speed up the resulting calculation by a factor of {{mvar|k}}, a [[space–time tradeoff]].
 
===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&nbsp;{{mvar|n}}. If, for some given {{mvar|b}} and {{mvar|k}}, the inequality
 
:{{math|''f''{{isup|''k''}}(2<sup>''k''</sup>''a'' + ''b'') {{=}} 3<sup>''c''(''b'')</sup>''a'' + ''d''(''b'') < 2<sup>''k''</sup>''a'' + ''b''}}
 
holds for all {{mvar|a}}, then the first counterexample, if it exists, cannot be {{mvar|b}} modulo {{math|2<sup>''k''</sup>}}.<ref name="Garner (1981)"/> For instance, the first counterexample must be odd because {{math|''f''(2''n'') {{=}} ''n''}}, smaller than {{math|2''n''}}; and it must be 3 mod 4 because {{math|''f''{{isup|2}}(4''n'' + 1) {{=}} 3''n'' + 1}}, smaller than {{math|4''n'' + 1}}. For each starting value {{mvar|a}} which is not a counterexample to the Collatz conjecture, there is a {{mvar|k}} 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 {{mvar|k}} increases, the search only needs to check those residues {{mvar|b}} that are not eliminated by lower values of&nbsp;{{mvar|k}}. Only an exponentially small fraction of the residues survive.{{refn|{{named ref|name=Lagarias (1985)}} Theorem D.}} For example, the only surviving residues mod 32 are 7, 15, 27, and 31.
 
Integers divisible by 3 cannot form a cycle, so these integers do not need to be checked as counter examples.<ref name=Clay>{{cite web |last=Clay |first=Oliver Keatinge|title=The Long Search for Collatz Counterexamples |url=https://scholarship.claremont.edu/cgi/viewcontent.cgi?article=2052&context=jhm|pages=208|access-date=26 July 2024}}</ref>
 
==Syracuse function==
If {{mvar|k}} is an odd integer, then {{math|3''k'' + 1}} is even, so {{math|3''k'' + 1 {{=}} 2<sup>''a''</sup>''k''{{prime}}}} with {{math|''k''{{prime}}}} odd and {{math|''a'' ≥ 1}}. The '''Syracuse function''' is the function {{mvar|f}} from the set {{mvar|I}} of positive odd integers into itself, for which {{math|''f''(''k'') {{=}} ''k''{{prime}}}} {{OEIS|id=A075677}}.
 
Some properties of the Syracuse function are:
Line 331:
 
== Undecidable generalizations ==
In 1972, [[John Horton Conway]] proved that a natural generalization of the Collatz problem is algorithmically [[undecidable problem|undecidable]].<ref>{{citationcite conference |last=Conway |first=John H. |year=1972 |contribution=Unpredictable Iterationsiterations |title=Proc. 1972 Number Theory Conf., Univ. Colorado, Boulder |pages=49–52}}</ref>
 
Specifically, he considered functions of the form
<math display="block"> {g(n) = a_i n + b_i} \text{ when } {n\equiv i \pmod P},</math>
where {{math|''a''<sub>0</sub>, ''b''<sub>0</sub>, ..., ''a''<sub>''P'' − 1</sub>, ''b''<sub>''P'' − 1</sub>}} are rational numbers which are so chosen that {{math|''g''(''n'')}} is always an integer. The standard Collatz function is given by {{math|''P'' {{=}} 2}}, {{math|''a''<sub>0</sub> {{=}} {{sfrac|1|2}}}}, {{math|''b''<sub>0</sub> {{=}} 0}}, {{math|''a''<sub>1</sub> {{=}} 3}}, {{math|''b''<sub>1</sub> {{=}} 1}}. Conway proved that the problem
 
: Given {{mvar|g}} and {{mvar|n}}, does the sequence of iterates {{math|''g<sup>k</sup>''(''n'')}} reach {{math|1}}?
: <math>{g(n) = a_i n + b_i} \;\;, \text{where} \;{n\equiv i \pmod P}</math>
 
and {{math|''a''<sub>0</sub>, ''b''<sub>0</sub>,...,''a''<sub>''P'' − 1</sub>, ''b''<sub>''P'' − 1</sub>}} are rational numbers which are so chosen that {{math|''g''(''n'')}} is always an integer.
 
The standard Collatz function is given by {{math|''P'' {{=}} 2}}, {{math|''a''<sub>0</sub> {{=}} {{sfrac|1|2}}}}, {{math|''b''<sub>0</sub> {{=}} 0}}, {{math|''a''<sub>1</sub> {{=}} 3}}, {{math|''b''<sub>1</sub> {{=}} 1}}. Conway proved that the problem:
 
: Given {{mvar|g}} and {{mvar|n}}, does the sequence of iterates {{math|''g<sup>k</sup>''(''n'')}} reach 1?
 
is undecidable, by representing the [[halting problem]] in this way.
Line 347 ⟶ 343:
Closer to the Collatz problem is the following ''universally quantified'' problem:
 
: Given {{mvar|g}}, does the sequence of iterates {{math|''g<sup>k</sup>''(''n'')}} reach {{math|1}}, for all {{math|''n'' > 0}}?
 
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<ref name=KurtzSimon>{{cite book |last1=Kurtz |first1=Stuart A. |last2=Simon |first2=Janos |editor1-last=Cai |editor1-first=J.-Y. |editor2-last=Cooper |editor2-first=S. B. |editor3-last=Zhu |editor3-first=H. |year=2007 |chapter-url=https://books.google.com/books?id=mhrOkx-xyJIC&pg=PA542 |chapter=The undecidability of the generalized Collatz problem |title=Proceedings of the 4th International Conference on Theory and Applications of Models of Computation, TAMC 2007, held in Shanghai, China in May 2007 |isbn=978-3-540-72503-9 |doi=10.1007/978-3-540-72504-6_49 |pages=542–553}} As [http://www.cs.uchicago.edu/~simon/RES/collatz.pdf PDF]</ref> proved that the universally quantified problem is, in fact, undecidable and even higher in the [[arithmetical hierarchy]]; specifically, it is {{math|Π{{su|b=2|p=0}}}}-complete. This hardness result holds even if one restricts the class of functions {{mvar|g}} by fixing the modulus {{mvar|P}} to 6480.<ref>{{cite journal |last=Ben-Amram |first=Amir M. |year=2015 |title=Mortality of iterated piecewise affine functions over the integers: Decidability and complexity |journal=Computability |doi=10.3233/COM-150032 |volume=1 |issue=1 |pages=19–56}}</ref>
 
Iterations of {{mvar|g}} in a simplified version of this form, with all <math>b_i</math> equal to zero, are formalized in an [[esoteric programming language]] called [[FRACTRAN]].
 
==In computational complexity==
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<ref name=KurtzSimon>{{cite book |last1=Kurtz |first1=Stuart A. |last2=Simon |first2=Janos |editor1-last=Cai |editor1-first=J.-Y. |editor2-last=Cooper |editor2-first=S. B. |editor3-last=Zhu |editor3-first=H. |year=2007 |chapterurl=https://books.google.com/books?id=mhrOkx-xyJIC&pg=PA542 |chapter=The Undecidability of the Generalized Collatz Problem |title=Proceedings of the 4th International Conference on Theory and Applications of Models of Computation, TAMC 2007, held in Shanghai, China in May 2007 |isbn=978-3-540-72503-9 |doi=10.1007/978-3-540-72504-6_49 |pages=542–553}} As [http://www.cs.uchicago.edu/~simon/RES/collatz.pdf PDF]</ref> proved that the above problem is, in fact, undecidable and even higher in the [[arithmetical hierarchy]], specifically {{math|Π{{su|b=2|p=0}}}}-complete. This hardness result holds even if one restricts the class of functions {{mvar|g}} by fixing the modulus {{mvar|P}} to 6480.<ref>{{citation |last=Ben-Amram |first=Amir M. |year=2015 |title=Mortality of iterated piecewise affine functions over the integers: Decidability and complexity |journal=Computability |doi=10.3233/COM-150032 |volume=1 |issue=1 |pages=19–56}}</ref>
The Collatz and related conjectures are often used when studying computational complexity.<ref>{{cite journal |author=Michel, Pascal |title=Busy beaver competition and Collatz-like problems |journal=Archive for Mathematical Logic |volume=32 |issue=5 |year=1993 |pages=351–367|doi=10.1007/BF01409968 }}</ref><ref>{{cite web |url=https://arxiv.org/html/2107.12475v2 |title=Hardness of busy beaver value BB(15)}}</ref> The connection is made through the [[busy beaver]] function, where BB(n) is the maximum number of steps taken by any n state [[Turing machine]] that halts. There is a 15 state Turing machine that halts if and only if a conjecture by [[Paul Erdős]] (closely related to the Collatz conjecture) is false. Hence if BB(15) was known, and this machine did not stop in that number of steps, it would be known to run forever and hence no counterexamples exist (which proves the conjecture true). This is a completely impractical way to settle the conjecture; instead it is used to suggest that BB(15) will be very hard to compute, at least as difficult as settling this Collatz-like conjecture.
 
In 2024, a six-state machine was found for which determining whether it halts involves solving a Collatz-like problem called the antihydra problem. As proofs of even simple conjectures of this nature are not currently known, this suggests that BB(6) will be very hard to compute.<ref>{{cite magazine|magazine=Quanta|title=With Fifth Busy Beaver, Researchers Approach Computation’s Limits|date=July 2, 2024|first=Ben|last=Brubaker|url=https://www.quantamagazine.org/amateur-mathematicians-find-fifth-busy-beaver-turing-machine-20240702/|access-date=2025-08-24}}</ref><ref>{{cite OEIS|A386792|Antihydra, a BB(6) Turing machine (values of a)}}</ref>
==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.<ref name=emmer>{{cite book|title=Imagine Math: Between Culture and Mathematics|last=Emmer|first=Michele|publisher=[[Springer Publishing]]|page=260–264|year=2012|isbn=978-8-847-02426-7}}</ref><ref name="mazmanian">{{cite news|last=Mazmanian|first=Adam|title=MOVIE REVIEW: 'Incendies'|url=https://www.washingtontimes.com/news/2011/may/19/movie-review-incendies/|accessdate=7 December 2019|work=[[Washington Times]]|date=19 May 2011}}</ref>
 
==See also==
{{portal|Mathematics}}
{{commons category}}
* [[3x + 1 semigroup|{{math|3''x'' + 1}} semigroup]]
* [[Arithmetic dynamics#Other areas in which number theory and dynamics interact|Arithmetic dynamics]]
* [[Juggler sequence]]
* [[Modular arithmetic]]
* [[Residue-class-wise affine group]]
 
==Further readingNotes ==
{{notelist}}
* ''The Ultimate Challenge: the 3''x'' + 1 problem'':
:This volume,<ref name="Lagarias (2010)">{{cite book |editor1-last=Lagarias |editor1-first=Jeffrey C. |editor1-link=Jeffrey Lagarias |year=2010 |title=The Ultimate Challenge: the 3''x'' + 1 problem |publisher=[[American Mathematical Society]] |isbn=978-0-8218-4940-8 |zbl=1253.11003}}</ref> edited by [[Jeffrey Lagarias]] and published by the [[American Mathematical Society]], 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]]. It also includes reprints of early papers on the subject (including an entry by Lothar Collatz).
 
==References==
{{Reflist|30em|refs=
 
===Papers===
<ref name="Lagarias (1985)">{{cite journal |first=Jeffrey C. |last=Lagarias |title=The 3''x'' + 1 problem and its generalizations |journal=[[The American Mathematical Monthly]] |volume=92 |issue=1 |pages=3–23 |year=1985 |jstor=2322189|doi=10.1080/00029890.1985.11971528 }}</ref>
<!--<ref name="Lagarias (2001)">{{SpringerEOM | urlname=S/s110330 | title=Syracuse problem | author=Jeffrey C. Lagarias}}.</ref>-->
<ref name="Chamberland (1996)">{{cite journal |first=Marc |last=Chamberland |title=A continuous extension of the 3''x''&nbsp;+&nbsp;1 problem to the real line |journal=Dynam. Contin. Discrete Impuls Systems |volume=2 |issue=4 |pages=495–509 |year=1996 |doi= |url=}}</ref>
<!--<ref name="Garner (1981)">{{cite journal |last=Garner |first=Lynn E. |year=1981 |title=On the Collatz 3''n''&nbsp;+&nbsp;1 Algorithmalgorithm |journal=[[Proceedings of the American Mathematical Society]] |volume=82 |issue=1 |pages=19–22 |doi=10.23071090/2044308S0002-9939-1981-0603593-2 |jstor=2044308|accessdatedoi-access=free |quotejstor= 2044308}}</ref>-->
<ref name="Letherman, Schleicher, and WoodHercher (19992023)">{{cite journal |first1=SimonC. |last1=LethermanHercher |first2title=DierkThere |last2=Schleicherare |first3=Regno |last3=WoodCollatz |title=The (3''nm''&nbsp;+&nbsp;1)-Problemcycles andwith Holomorphic''m Dynamics<= 91'' |journal=ExperimentalJournal Mathematicsof Integer Sequences |volume=826 |issue=3 |pages=241–252Article 23.3.5 |year=19992023 |doiurl= 10.1080https:/10586458/cs.1999uwaterloo.10504402|url=ca/journals/JIS/VOL26/Hercher/hercher5.pdf}}</ref>
<ref name="Letherman, Schleicher, and Wood (1999)">{{cite journal |first1=Simon |last1=Letherman |first2=Dierk |last2=Schleicher |first3=Reg |last3=Wood |title=The (3''n''&nbsp;+&nbsp;1)-problem and holomorphic dynamics |journal=Experimental Mathematics |volume=8 |issue=3 |pages=241–252 |year=1999 |doi= 10.1080/10586458.1999.10504402}}</ref>
<!--<ref name="Eliahou (1993)">Eliahou, Shalom, ''The 3x+1 problem: new lower bounds on nontrivial cycle lengths'', Discrete Mathematics 118 (1993) p.&nbsp;45-56; [http://images.math.cnrs.fr/Le-probleme-3n-1-y-a-t-il-des.html ''Le problème 3n+1 : y a-t-il des cycles non triviaux ?''], ''[[Images des mathématiques]]'' (2011) {{Link language|fr}}.</ref>
<ref name="AndreiEliahou (19981993)">{{citeCite journal |author1last=Andrei, Stefan Eliahou|author2first=Masalagiu, Cristian Shalom|doiyear=10.1007/s002360050117 1993|title=AboutThe the3''x'' Collatz+ conjecture1 |year=1998problem: new lower bounds on nontrivial cycle lengths|journal=Acta InformaticaDiscrete Mathematics|volume=35 118|issue=2 1|pages=167–17945–56|doi=10.1016/0012-365X(93)90052-U|doi-access=free}}</ref>
<!--<ref name="Van BendegemAndrei (20051998)">{{cite journal |firstauthor1=JeanAndrei, PaulStefan |lastauthor2=VanMasalagiu, BendegemCristian |doi=10.1007/s002360050117 |title=TheAbout the Collatz Conjecture:conjecture A Case Study in Mathematical Problem Solving|year=1998 |journal=Logic and LogicalActa PhilosophyInformatica |volume=1435 |issue=2 |pages=7–23 |year=2005 |doi= 10.12775/llp.2005.002|url=https://compmath.files.wordpress.com/2008/08/jpvb_collatz.pdf |format=PDF167–179}}</ref>-->
<!--<ref name="Van Bendegem (2005)">{{cite journal |first=Jean Paul |last=Van Bendegem |title=The Collatz Conjecture: A Case Study in Mathematical Problem Solving |journal=Logic and Logical Philosophy |volume=14 |pages=7–23 |year=2005 |doi= 10.12775/llp.2005.002|url=https://compmath.files.wordpress.com/2008/08/jpvb_collatz.pdf |archive-url=https://ghostarchive.org/archive/20221009/https://compmath.files.wordpress.com/2008/08/jpvb_collatz.pdf |archive-date=2022-10-09 |url-status=live |format=PDF}}</ref>-->
<ref name="Belaga (2006)">{{cite book |first=Edward G. |last=Belaga |last2=Mignotte |first2=Maurice |chapter=Walking Cautiously into the Collatz Wilderness: Algorithmically, Number Theoretically, Randomly |chapterurl=http://www-irma.u-strasbg.fr/~belaga/a8*BelagaMathInfo06Presentation060920.ppt |format=PowerPoint |editor= |title=Fourth Colloquium on Mathematics and Computer Science : Algorithms, Trees, Combinatorics and Probabilities, September 18–22, 2006, Institut Élie Cartan, Nancy, France |publisher= |___location= |year= |isbn= |pages= |url=}}</ref>
<!--<ref name="Belaga (1998a2006)">{{cite journalbook |first=Edward G. |last=Belaga |last2=Mignotte |first2=Maurice |titlechapter=EmbeddingWalking theCautiously 3x+1into Conjecturethe inCollatz aWilderness: 3x+dAlgorithmically, ContextNumber |journal=ExperimentalTheoretically, Mathematics |volume=7 |issue=2 |pages= |year=1998 |doi=Randomly |chapter-url=http://www-irma.emisu-strasbg.defr/journals~belaga/EM/expmath/volumes/7/7a8*BelagaMathInfo06Presentation060920.htmlppt |format=PowerPoint |title=Fourth Colloquium on Mathematics and Computer Science : Algorithms, Trees, Combinatorics and Probabilities, September 18–22, 2006, Institut Élie Cartan, Nancy, France }}</ref>-->
<ref name="SteinerBelaga (19771998a)">{{cite bookjournal |firstfirst1=R.Edward PG. |lastlast1=SteinerBelaga |chapterlast2=A theorem on the syracuse problemMignotte |chapterurl= |editorfirst2=Maurice |title=Proceedings ofEmbedding the 7th3x+1 ManitobaConjecture Conferencein ona Numerical3x+d Context |journal=Experimental Mathematics |___locationvolume=7 |yearissue=19772 |isbnyear=1998 |pages=553–9145–151 |mrdoi=53503210.1080/10586458.1998.10504364 |s2cid=17925995 |url=http://www.emis.de/journals/EM/expmath/volumes/7/7.html}}</ref>-->
<ref name="Steiner (1977)">{{cite book |first=R. P. |last=Steiner |chapter=A theorem on the syracuse problem |title=Proceedings of the 7th Manitoba Conference on Numerical Mathematics |year=1977 |pages=553–9 |mr=535032}}</ref>
<ref name="Simons & de Weger (2003)">{{cite journal |first1=J. |last1=Simons |first2=B. |last2=de Weger |title=Theoretical and computational bounds for ''m''-cycles of the 3''n''&nbsp;+&nbsp;1 problem |journal=Acta Arithmetica |volume=117 |issue=1 |pages=51–70 |year=2003 |doi=10.4064/aa117-1-3 |url=http://deweger.xs4all.nl/papers/%5B35%5DSidW-3n+1-ActaArith%5B2005%5D.pdf |bibcode=2005AcAri.117...51S }}</ref>
<ref name="Simons & de Weger (2005)">{{cite journal |first1=J. |last1=Simons |first2=B. |last2=de Weger |title=Theoretical and computational bounds for ''m''-cycles of the 3''n''&nbsp;+&nbsp;1 problem |journal=Acta Arithmetica |volume=117 |issue=1 |pages=51–70 |year=2005 |doi=10.4064/aa117-1-3 |url=http://deweger.xs4all.nl/papers/[35]SidW-3n+1-ActaArith[2005].pdf |bibcode=2005AcAri.117...51S |doi-access=free |access-date=2023-03-28 |archive-date=2022-03-18 |archive-url=https://web.archive.org/web/20220318094356/http://deweger.xs4all.nl/papers/&#91;35&#93;SidW-3n+1-ActaArith&#91;2005&#93;.pdf |url-status=bot: unknown }}</ref>
<!--<ref name="Sinyor (2010)">Sinyor, J.; [http://downloads.hindawi.com/journals/ijmms/2010/458563.pdf "The 3x+1 Problem as a String Rewriting System"], ''International Journal of Mathematics and Mathematical Sciences'', volume 2010 (2010), Article ID 458563, 6 pages.</ref>-->
<ref name="Terras (1976)">{{cite journal | last = Terras | first = Riho | year = 1976 | title = A stopping time problem on the positive integers | journal = Acta Arithmetica | mr = 0568274 | volume = 30 | issue = 3 | pages = 241–252 | url = http://matwbn.icm.edu.pl/ksiazki/aa/aa30/aa3034.pdf | doi=10.4064/aa-30-3-241-252| doi-access = free }}</ref>
<!--<ref name="Sinyor (2010)">Sinyor, J.; [http://downloads.hindawi.com/journals/ijmms/2010/458563.pdf "The 3x+1 Problem as a String Rewriting System"], ''International Journal of Mathematics and Mathematical Sciences'', volume 2010 (2010), Article ID 458563, 6 pages.</ref>-->
 
===Preprints===
<!--<ref name="Belaga (1998b)">{{cite paper | author1-link = Edward Belaga | author1-last = Belaga | author1-first = Edward G. | citeseerx = 10.1.1.54.483 | title = Reflecting on the 3x+1 Mystery | publisher = [[University of Strasbourg]] | date = 1998 }}</ref>
<ref name="Bruschi (2008)">{{cite arXiv |author=Bruschi, Mario |eprint=0810.5169 |title=A generalization of the Collatz problem and conjecture |class=math.NT |year=2008}}</ref>
Line 389 ⟶ 390:
<ref name="Lagarias (2006)">{{cite arXiv |author=Jeffrey C. Lagarias |eprint=math.NT/0608208 |title=The 3''x''&nbsp;+&nbsp;1 problem: An annotated bibliography, II (2000–) |class=math.NT |year=2006}}</ref>
<ref name="Ohira">{{cite paper | last1 = Ohira | first1 = Reiko | last2 = Yamashita | first2 = Michinori | url = http://risweb2.ris.ac.jp/faculty/earth_env/yamasita/open/p-col.pdf | title = A generalization of the Collatz problem | language = ja }}</ref>
<ref name="Sinisalo (2003)">{{cite paper | first = Matti K. | last = Sinisalo | archivedatearchive-date = 2009-10-24 | archiveurlarchive-url = https://web.archive.org/web/20091024183537/http://geocities.com/mattiksinisalo/collatz.doc | url = http://geocities.com/mattiksinisalo/collatz.doc | title = On the minimal cycle lengths of the Collatz sequences | date = June 2003 | publisher = University of Oulu }}</ref>
<ref name="Stadfeld">{{cite paper | first = Paul | last = Stadfeld | url = http://home.versatel.nl/galien8/blueprint/blueprint.html | title = Blueprint for Failure: How to Construct a Counterexample to the Collatz Conjecture }}</ref>
<ref name="Urata">{{cite paper | last = Urata | first = Toshio | url = http://auemath.aichi-edu.ac.jp/~turata/Fall.files/CTZVI.pdf | archive-url = https://web.archive.org/web/20041128171946/http://auemath.aichi-edu.ac.jp/~turata/Fall.files/CTZVI.pdf | url-status = dead | archive-date = 2004-11-28 | title = Some Holomorphic Functions connected with the Collatz Problem }}</ref>-->
 
===Books===
<!--<ref name="Everest (2003)">{{cite book | last1=Everest | first1=Graham | last2=van der Poorten | first2=Alf | author2-link=Alfred van der Poorten | last3=Shparlinski | first3=Igor | last4=Ward | first4=Thomas | title=Recurrence sequences | series=Mathematical Surveys and Monographs | volume=104 | ___location=[[Providence, RI|Providence]], Rhode Island, USA | publisher=[[American Mathematical Society]] | year=2003 | isbn=0-8218-3387-1 | zbl=1033.11006 | at=Chapter 3.4 }}</ref>-->
<ref name="Guy (2004)">{{cite book |last=Guy | first=Richard K. | authorlinkauthor-link=Richard K. Guy | title=Unsolved problemsProblems in numberNumber theoryTheory | publisher=[[Springer-Verlag]] |edition=3rd | year=2004 |isbn=0-387-20860-7 | zbl=1058.11001 | chapter="E17E16: PermutationThe 3x+1 Sequencesproblem" |pages=336–7330–6 |chapter-url=https://books.google.com/books?id=1AP2CEGxTkgC&pg=PA337PA330}}</ref>
<ref name="Lagarias (2010)">{{cite book |editor1-last=Lagarias |editor1-first=Jeffrey C. |editor1-link=Jeffrey Lagarias |year=2010 |title=The Ultimate Challenge: The 3''x'' + 1 Problem |publisher=[[American Mathematical Society]] |isbn=978-0-8218-4940-8 |zbl=1253.11003}}</ref>
}}
 
==External links==
* [{{cite web |url=http://www.numbertheory.org/3x+1/ |first=Keith |last=Matthews' |title={{nobr|3'' {{mvar|x''&nbsp;}} +&nbsp; 1}} page: Review of progress, plus various programs].}}
* An ongoing [[Distributedvolunteer computing]] ([[BOINChttps://collatz-problem.org/ project]]) [http{{Webarchive|url=https://boincweb.thesonntagsarchive.comorg/web/20210830110430/https://collatz-problem.org/ project]|date=2021-08-30 that}} by David Bařina verifies Convergence of the Collatz conjecture for largerlarge values. (furthest progress so far)
* An ongoing ([[distributedBerkeley computingOpen Infrastructure for Network Computing|BOINC]]) volunteer computing [http://wwwboinc.ericrthesonntags.nlcom/wondrouscollatz/index.html project] by{{Webarchive|url=https://web.archive.org/web/20171204131813/http://boinc.thesonntags.com/collatz/ Eric|date=2017-12-04 Roosendaal}} that verifies the Collatz conjecture for larger and larger values.
* AnotherAn ongoing [[distributedvolunteer computing]] [http://sweetwww.uaericr.ptnl/toswondrous/3x+1index.html project] by TomásEric OliveiraRoosendaal e Silva continues to verifyverifies the Collatz conjecture (with fewer statistics than Eric Roosendaal's page butfor withlarger furtherand progresslarger made)values.
* Another ongoing volunteer computing [http://sweet.ua.pt/tos/3x+1.html project] 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).
* {{MathWorld | urlname=CollatzProblem | title=Collatz Problem}}
* {{PlanetMath | urlname=CollatzProblem | title=Collatz Problem}}.
* {{cite web |first=Jesse |last=Nochella |title=Collatz Paths |date= |work=[[Wolfram Demonstrations Project]] |url=http://demonstrations.wolfram.com/CollatzPaths/ }}
* {{cite AV media |medium=short video |people=[[David Eisenbud|Eisenbud, D.]] |title=Uncrackable? The Collatz conjecture |series=Numberphile |date=8 August 2016 |via=YouTube |url=https://www.youtube.com/watch?v=5mFpVDpKX70 |archive-url=https://ghostarchive.org/varchive/youtube/20211211/5mFpVDpKX70| archive-date=2021-12-11 |url-status=live}}{{cbignore}}
* [https://www.popularmechanics.com/science/math/a29033918/math-riddle-collatz-conjecture/ Mathematicians Are So Close to Cracking This 82-Year-Old Riddle]
* {{cite AV media |people=[[David Eisenbud|Eisenbud, D.]] |title=Uncrackable? Collatz conjecture |medium=extra footage |series=Numberphile |date=August 9, 2016 |via=YouTube |url=https://www.youtube.com/watch?v=O2_h3z1YgEU |archive-url=https://ghostarchive.org/varchive/youtube/20211211/O2_h3z1YgEU| archive-date=2021-12-11 |url-status=live}}{{cbignore}}
* {{cite AV media |medium=short video |people=[[Alex Kontorovich]] (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}}
* [https://www.technologyreview.com/2021/07/02/1027475/computers-ready-solve-this-notorious-math-problem/ Are computers ready to solve this notoriously unwieldy math problem?]
 
 
[[Category:Conjectures]]
[[Category:Arithmetic dynamics]]
[[Category:Integer sequences]]
[[Category:Unsolved problems in number theory]]