Collatz conjecture
Encyclopedia : C : CO : COL : Collatz conjecture
The Collatz conjecture is an unsolved conjecture in mathematics. It is named after Lothar Collatz, who first proposed it in 1937. The conjecture is also known as the 3n + 1 conjecture, the Ulam conjecture (after Stanislaw Ulam), the Syracuse problem, as the hailstone sequence or hailstone numbers, or as Wondrous numbers as per Gödel, Escher, Bach. It asks whether a certain kind of number sequence always ends in the same way, regardless of the starting number.
Paul Erdős said about the Collatz conjecture: "Mathematics is not yet ready for such problems." He offered $500 for its solution.
- 1 Statement of the problem
- 2 Examples
- 3 Program to calculate Collatz sequences
- 4 Supporting arguments
- 5 Other ways of looking at it
- 5.1 In reverse
- 5.2 As rational numbers
- 5.3 As an abstract machine
- 5.4 As iterating a real or complex map
- 6 Optimizations
- 7 Syracuse Function
- 8 See also
- 9 References and external links
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 mathematical notation, define the function f as follows:
- [ f(n) = \begin n/2 &\mbox n \equiv 0 \\ 3n+1 & \mbox n\equiv 1 \end \pmod. ]
In notation:
- [ a_i = \beginn & \mbox i = 0 \\ f(a_) & \mbox i > 0\end]
- [ \forall n \isin \mathbb > 0 \ \exists i \isin \mathbb: (a_0 = n \Rightarrow a_i = 1) ]
Examples
For instance, starting with n = 6, one gets the sequence 6, 3, 10, 5, 16, 8, 4, 2, 1. (The Collatz conjecture says that this process always reaches 1, no matter what the starting value.)Starting with n = 11, the sequence takes longer to reach 1: 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1.
If the starting value n = 27 is chosen, the sequence takes 112 steps, climbing above 9,000 before descending to 1.
Program to calculate Collatz sequences
A specific Collatz sequence can be easily computed, as is shown by this pseudocode example:
function collatz(n) while n > 1 show n if n is odd set n to 3n + 1 else set n to n / 2 show nThis program halts when the sequence reaches 1, in order to avoid printing an endless cycle of 4, 2, 1. If the Collatz conjecture is true, the program will always halt no matter what positive starting integer is given to it. (See Halting problem for a discussion of the relationship between open-ended computer programs and unsolved mathematics problems.)
Supporting arguments
Although the conjecture has not been proven, most mathematicians who have looked into the problem believe intuitively that the conjecture is true. Here are some reasons for expecting this.Experimental evidence
The conjecture has been checked by computer for all start values up to 10 × 258 = 2.88 × 1018[link]. While impressive, such computer bounds are of very limited evidential value, with several conjectures having turned out to have exceptionally large-valued counterexamples (eg the Pólya conjecture).Probabilistic evidence
If one considers only the odd numbers in the sequence generated by the Collatz process, then one can argue that on average the next odd number should be about 3/4 of the previous one, which suggests that they should decrease in the long run.Other ways of looking at it
In reverse
There is another approach to prove the following conjecture, which considers the bottom-up method of growing the Collatz graph. The Collatz graph is defined by an inverse relation,[ R(n) = \begin 2n & \mbox n\equiv 0,1 \\ 2n, (2n-1)/3 & \mbox n\equiv -1 \end \pmod. ]
So, instead of proving that all natural numbers eventually lead to 1, we can prove that 1 leads to all natural numbers. Also, the inverse relation forms a tree except for the 1-2 loop. Note that the relation being inverted here is (3n + 1) / 2 (see Optimizations below).
As rational numbers
The natural numbers can be converted to rational numbers in a certain way. To get the rational version, find the highest power of two less than or equal to the number, use it as the denominator, and subtract it from the original number for the numerator (527 → 15/512). To get the natural version, add the numerator and denominator (255/256 → 511).The Collatz conjecture then says that the numerator will eventually equal zero. The Collatz function changes to :
- [ f(n, d) = \begin (3n + d + 1)/2d & \mbox 3n + d + 1 < 2d \\(3n - d + 1)/4d & \mbox 3n + d + 1 \ge 2d \end ] (n = numerator; d = denominator)
As an abstract machine
Repeated applications of the Collatz function can be represented as an abstract machine that handles strings of bits. The machine will perform the following two steps on any odd number until only one "1" remains :
- Add the original with a "1" appended to the end, to the original (interpreting the string as a binary integer), i.e. [3n+1 = (2n+1) + n]
- Remove all trailing "0"s.
As iterating a real or complex map
The Collatz map can be viewed as the restriction to the integers of the smooth real and complex map
- [f(z):=\frac 1 2 z \cos^2\left(\frac \pi 2 z\right)+\frac 1 2 (3z+1)\sin^2\left(\frac \pi 2 z\right).]
Iterating the map in the complex plane produces the Collatz fractal.
Optimizations
- If n is a multiple of 4, it can be divided by 4.
- Reason: It is initially even. When it is divided by two, it is still even.
- Example: If n = 20, then the sequence goes
- : 20 → 10 → 5 (= 20/4).
- More generally, one can write n as the product of its factors, and change the power of 2 to 20.
- If n is odd, one step can be skipped by finding (3n + 1) / 2
- If n ≡ 1 mod 4, then we can replace it repeatedly by (n - 1)/4 to obtain an intermediate k not equivalent to 1 modulo 4, and obtain 3k + 1.
- [ f(n) = \beging(n) & \mbox n \equiv 0 \\3 h(n) + 1 & \mbox n \equiv 1 \\n/2 & \mbox n \equiv 2 \\\frac(3n+1) & \mbox n \equiv 3\end \pmod ]
- [ g(n) = \beging(\frac) & \mbox n \equiv 0 \\n & \mbox n \equiv 1\end \pmod 2 ]
- [ h(n) = \beginn & \mbox n \;\not\equiv\; 1 \\h(\frac) & \mbox n \equiv 1\end \pmod. ]
Syracuse Function
If k is an odd integer, then 3k + 1 is even, so we can write 3k + 1 = 2ak′, k' odd. We define a function f from the set [I] of odd integers into itself, called the Syracuse Function, by taking f (k) = k′.Some properties of the Syracuse function are:
- f (4k + 1) = f (k) for all k in [I].
- For all p ≥ 2 and h odd, f p - 1(2 p h - 1) = 2 3 p - 1h - 1 (see here for the notation).
- For all odd h, f (2h - 1) ≤ (3h - 1)/2
We know that 1, 3, 5, 7, and 9 are in E. Let k be an odd integer greater than 9. Suppose that the odd numbers up to and including k - 2 are in E and let us try to prove that k is in E. As k is odd, k + 1 is even, so we can write k + 1 = 2ph for p ≥ 1, h odd, and k = 2ph-1. Now we have:
- If p = 1, then k = 2h - 1. It is easy to check that f (k) < k , so f (k) ∈ E; hence k ∈ E.
- If p ≥ 2 and h is a multiple of 3, we can write h = 3h′. Let k′ = 2p + 1h′ - 1; we have f (k′) = k , and as k′ < k , k′ is in E; therefore k = f (k′) ∈ E.
- If p ≥ 2 and h is not a multiple of 3 but h ≡ (-1)p mod 4, we can still show that k ∈ E. ([Cf.])
See also
References and external links
- Jeffrey C. Lagarias. [The 3x + 1 problem: An annotated bibliography].
- Jeffrey C. Lagarias. [The 3x + 1 problem and its generalizations], American Mathematical Monthly Volume 92, 1985, pp. 3 - 23.
- Günther J. Wirsching. The Dynamical System Generated by the [3n+1] Function. Number 1681 in Lecture Notes in Mathematics. Springer-Verlag, 1998.
- An ongoing distributed computing [project] verifies the Collatz conjecture for larger and larger values.
- [Collatz Problem] on MathWorld
- [Hailstone Patterns] discusses different resonators along with using important numbers in the problem (like 6 and 3^5) to discover patterns.
- [Collatz Observations] discusses observations about the Collatz Conjecture as it pertains to a bijection over the natural numbers.
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
