ArticleslgStudy

mathematics

Collatz conjecture

Collatz conjecture is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Collatz conjecture rather than just read about it. In short: The Collatz conjecture is one of the most famous unsolved problems in mathematics. The conjecture asks whether repeating two simple arithmetic operations will eventually transform every positive integer into 1.

Collatz conjecture — main illustration
Collatz conjecture — illustration

Key takeaways

  • Collatz conjecture belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Collatz conjecture to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Collatz conjecture from memory before moving on to harder problems.

Reference excerpt

The Collatz conjecture is one of the most famous unsolved problems in mathematics. The conjecture asks whether repeating two simple arithmetic operations will eventually transform every positive integer into 1. It concerns sequences of integers in which each term is obtained from the previous term as follows: if a term is 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 2.36×1021, 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. The sequence of numbers involved is sometimes referred to as the hailstone sequence, hailstone numbers or hailstone numerals (because the values are usually subject to multiple descents and ascents like hailstones in a cloud), or as wondrous numbers. Paul Erdős said about the Collatz conjecture: "Mathematics may not be ready for such problems." Jeffrey Lagarias stated in 2010 that the Collatz conjecture "is an extraordinarily difficult problem, completely out of reach of present day mathematics". However, though the Collatz conjecture itself remains open, efforts to solve the problem have led to new techniques and many partial results.

Statement of the problem

Consider the following operation on an arbitrary positive integer:

If the number is even, divide it by two. If the number is odd, triple it and add one. In modular arithmetic notation, define the function f as follows: f(n)={n/2if n≡0(mod2),3n+1if n≡1(mod2). Now form a sequence by performing this operation repeatedly, beginning with any positive integer, and taking the result at each step as the input at the next. In notation: ai={nfor i=0,f(ai−1)for i>0 (that is: ai is the value of f applied to n recursively i times; ai = f i(n)). The Collatz conjecture is: This process will eventually reach the number 1, regardless of which positive integer is chosen initially. That is, for each n, there is some i with ai=1. If the conjecture is false, it can only be because there is some starting number which gives rise to a sequence that does not contain 1. Such a sequence would either enter a repeating cycle that excludes 1, or increase without bound. No such sequence has been found. The smallest i such that ai < a0 (i.e., how many iterations to reach a number less than the starting number) is called the stopping time of n. Similarly, the smallest k such that ak = 1 (i.e., how many iterations to reach 1) is called the total stopping time of n. If one of the indexes i or k does not exist, we say that the stopping time or the total stopping time, respectively, is infinite. The Collatz conjecture asserts that the total stopping time of every n is finite. It is also equivalent to saying that every n ≥ 2 has a finite stopping time. Since 3n + 1 is even whenever n is odd, one may instead use the "shortcut" form of the Collatz function: f(n)={n2if n≡0(mod2),3n+12if n≡1(mod2). This definition yields smaller values for the stopping time and total stopping time without changing the overall dynamics of the process.

Empirical data For instance, starting with n = 12 and applying the function f without "shortcut", one gets the sequence 12, 6, 3, 10, 5, 16, 8, 4, 2, 1 . The number n = 19 takes longer to reach 1: 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 . The sequence for n = 27, listed and graphed below, takes 111 steps (41 steps through odd numbers, in bold), climbing as high as 9232 before descending to 1.

27, 82, 41, 124, 62, 31, 94, 47, 142, 71, 214, 107, 322, 161, 484, 242, 121, 364, 182, 91, 274, 137, 412, 206, 103, 310, 155, 466, 233, 700, 350, 175, 526, 263, 790, 395, 1186, 593, 1780, 890, 445, 1336, 668, 334, 167, 502, 251, 754, 377, 1132, 566, 283, 850, 425, 1276, 638, 319, 958, 479, 1438, 719, 2158, 1079, 3238, 1619, 4858, 2429, 7288, 3644, 1822, 911, 2734, 1367, 4102, 2051, 6154, 3077, 9232, 4616, 2308, 1154, 577, 1732, 866, 433, 1300, 650, 325, 976, 488, 244, 122, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 10, 5, 16, 8, 4, 2, 1 (sequence A008884 in the OEIS)

Numbers with a total stopping time longer than that of any smaller starting value form a sequence beginning with:

1, 2, 3, 6, 7, 9, 18, 25, 27, 54, 73, 97, 129, 171, 231, 313, 327, 649, 703, 871, 1161, 2223, 2463, 2919, 3711, 6171, ... (sequence A006877 in the OEIS). 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, ... (sequence A006884 in the OEIS) Number of steps for n to reach 1 are

0, 1, 7, 2, 5, 8, 16, 3, 19, 6, 14, 9, 9, 17, 17, 4, 12, 20, 20, 7, 7, 15, 15, 10, 23, 10, 111, 18, 18, 18, 106, 5, 26, 13, 13, 21, 21, 21, 34, 8, 109, 8, 29, 16, 16, 16, 104, 11, 24, 24, ... (sequence A006577 in the OEIS) The starting value having the largest total stopping time while being

less than 10 is 9, which has 19 steps, less than 100 is 97, which has 118 steps, less than 1000 is 871, which has 178 steps, less than 104 is 6171, which has 261 steps, less than 105 is 77031, which has 350 steps, less than 106 is 837799, which has 524 steps, less than 107 is 8400511, which has 685 steps, less than 108 is 63728127, which has 949 steps, less than 109 is 670617279, which has 986 steps, less than 1010 is 9780657630, which has 1132 steps, less than 1011 is 75128138247, which has 1228 steps, less than 1012 is 989345275647, which has 1348 steps. (sequence A284668 in the OEIS) These numbers are the lowest ones with the indicated step count, but not necessarily the only ones below the given limit. As an example, 9780657631 has 1132 steps, as does 9780657630. The starting values having the smallest total stopping time with respect to their number of digits (in base 2) are the powers of two, since 2n is halved n times to reach 1, and it is never increased.

Visualizations

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

… excerpt ends here. Continue reading the full article.

Illustrations

Collatz conjecture: Numbers from 1 to 9999 and their corresponding total stopping time
Numbers from 1 to 9999 and their corresponding total stopping time
Collatz conjecture: Histogram of total stopping times for the numbers 1 to 108. Total stopping time is on the .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}x axis, frequency on the y axis.
Histogram of total stopping times for the numbers 1 to 108. Total stopping time is on the .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}x axis, frequency on the y axis.
Collatz conjecture: Histogram of total stopping times for the numbers 1 to 109. Total stopping time is on the x axis, frequency on the y axis.
Histogram of total stopping times for the numbers 1 to 109. Total stopping time is on the x axis, frequency on the y axis.
Collatz conjecture: Iteration time for inputs of 2 to 107.
Iteration time for inputs of 2 to 107.
Collatz conjecture: Total stopping time of numbers up to 250, 1000, 4000, 20000, 100000, 500000
Total stopping time of numbers up to 250, 1000, 4000, 20000, 100000, 500000

Worked examples

Example 1 — a first encounter with Collatz conjecture

Start with the simplest possible case. Write down what Collatz conjecture claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Collatz conjecture before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Collatz conjecture ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Collatz conjecture

In research
Collatz conjecture appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Collatz conjecture in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Collatz conjecture is common in secondary-school and first-year university syllabi. It links to neighbouring topics Arithmetic dynamics, Conjectures, Integer sequences, so understanding it makes those chapters shorter.
In everyday life
Look for Collatz conjecture outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Collatz conjecture” →

How to study Collatz conjecture in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Collatz conjecture means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Collatz conjecture out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Collatz conjecture in simple terms?

The Collatz conjecture is one of the most famous unsolved problems in mathematics. The conjecture asks whether repeating two simple arithmetic operations will eventually transform every positive integer into 1.

Why does Collatz conjecture matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Collatz conjecture?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Collatz conjecture.

Tags

  • Arithmetic dynamics
  • Conjectures
  • Integer sequences
  • Unsolved problems in number theory

Keep exploring