Preprint
Article

Proof of the Collatz Conjecture

Altmetrics

Downloads

1622

Views

3463

Comments

1

A peer-reviewed article of this preprint also exists.

This version is not peer-reviewed

Submitted:

03 September 2023

Posted:

06 September 2023

You are already at the latest version

Alerts
Abstract
The Collatz conjecture (or 3n+1 problem) has been explored for about 86 years. In this article, we prove the Collatz conjecture. We will show that this conjecture holds for all positive integers by applying the Collatz inverse operation to the numbers that satisfy the rules of the Collatz conjecture. Finally, we will prove that there are no positive integers that do not satisfy this conjecture.
Keywords: 
Subject: Computer Science and Mathematics  -   Algebra and Number Theory

1. Introduction

The Collatz conjecture is one of the unsolved problems in mathematics. Introduced by German mathematician Lothar Collatz in 1937 [1], it is also known as the 3n + 1 problem, 3x + 1 mapping, Ulam conjecture (Stanislaw Ulam), Kakutani’s problem (Shizuo Kakutani), Thwaites conjecture (Sir Bryan Thwaites), Hasse’s algorithm (Helmut Hasse), or Syracuse problem [2,3,4].
The Collatz conjecture or 3n+1 problem can be summarized as follows:
Take any positive integer n. If n is even, divide n by 2 (n/2). Otherwise, if n is odd, multiply n by 3 and add 1 (3.n+1). By repeatedly applying this rule of the conjecture to the chosen number n, we obtain a sequence. The next term in the sequence is found by applying arithmetic operations (n/2 or 3n+1) to the previous term according to the assumption rule. The conjecture states that no matter what number you start with, you will always reach 1 eventually.
For example, if we start with 17, multiply by 3 and add 1, we get 52. If we divide 52 by 2, 26, and so on, the rest of the sequence is: 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. Or if we start 76, the sequence is: 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1.
This 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) [2,6], or as wondrous numbers [2,5].
In this paper, N = { 0 , 1 , 2 , 3 , 4 , 5 , } , the symbol N represents the natural numbers. N + = { 1 , 2 , 3 , 4 , 5 , 6 , } , the symbol N + represents the positive integers. N o d d = { 1 , 3 , 5 , 7 , 9 , 11 , 13 , } , the symbol N o d d represents the positive odd integers.

2. The Conjecture and Related Conversions

Definition 2.1. Let n , k N + and a function f : N + N + , Collatz defined the following map:
f ( n ) = n 2 , i f n i s e v e n 3 n + 1 , i f n i s o d d
The Collatz conjecture states that the orbit formed by iterating the value of each positive integer in the function f ( n ) will eventually reach 1. The orbit of n under f is n ; f ( n ) , f ( f ( n ) ) , f ( f ( f ( n ) ) ) , f k ( n ) = 1 ( k N + ).
In the following sections, we will call these two arithmetic operations ( n / 2 and 3 n + 1 ), which we apply to any positive integer n according to the rule of assumption, Collatz operations (CO).
Remark 2.2. According to the definition of the Collatz conjecture, if the number we choose at the beginning is an even number, then by continuing to divide all even numbers by 2, one of the odd numbers is achieved. So it is sufficient to check whether all odd numbers reach 1 by the Collatz operations.
Therefore, if we prove that it reaches 1 when we apply the Collatz operations to all the elements of the set N o d d = { 1 , 3 , 5 , 7 , 9 , 11 , 13 , 15 , } , we have proved it for all positive integers.
Remark 2.3. If the Collatz operations are applied to the numbers 2 n ( n N + ), then eventually 1 is reached. If we can convert to 2 n numbers by applying the Collatz operations to all the elements of the N o d d set, we get the result. Therefore, our goal is to convert all positive odd integers to 2 n numbers by applying Collatz operations.

2.1. Collatz Inverse Operation (CIO)

Let n N + and a N o d d ; for a to be converted to 2 n by the Collatz operation (CO), it must satisfy the following equation,
3 . a + 1 = 2 n
then,
a = 2 n 1 3
Lemma 2.4. In (1) a = 2 n 1 3 , a cannot be an integer if n is a positive odd integer.
Proof. If n is a positive odd integer, we can take n = 2 m + 1 ( m N ), then substituting 2 m + 1 for n in (1) we get,
a = 2 2 m + 1 1 3
if we factor 2 2 m + 1 + 1 ,
2 2 m + 1 + 1 = ( 2 + 1 ) ( 2 2 m 2 2 m 1 + 2 2 m 2 + 1 ) = 3 . k
we get 3 k , which is a multiple of 3 ( k N o d d ).
Since 2 2 m + 1 1 = ( 2 2 m + 1 + 1 ) 2 = 3 . k 2 ,
( 3 k 2 ) is not a multiple of 3 ( k N o d d ), so in (2) a is not an integer for any number n.
If we substitute 2 n for n in (1), we get equation
a = 2 2 n 1 3
Lemma 2.5. In (3) a = 2 2 n 1 3 , for each number n there is a different positive odd integer a, ( n N + ).
Proof. When we factorize 2 2 n 1 for all n numbers, ( n N + ), if
n = 1 , ( 2 2 1 ) = ( 2 1 ) ( 2 + 1 ) = 3 . 1
n=2, (24 -1) = (2-1)(2+1)(22+1)=3.5
n=3, (26 -1) = (23-1)(23+1)=3.3.7
n=4, (28-1) = (2-1)(2+1)(22+1)(24+1)=3.(...)
n=5, (210-1) = (25- 1)(25+1)= (2-1)(24+...+1)(2+1)(24- ...+1)=3.(...)
n=6, (212-1)= (23- 1)(23 + 1)(26+1)=3.3.(...)
n=7, (214 -1)= (27- 1)(2+1)(26- 25+...+1)=3.(...)
...
...
if we substitute 2n to m 2 ,(m ∈ N + );
( 2 2 m 1 ) = ( 2 1 ) ( 2 + 1 ) ( 2 2 + 1 ) ( 2 4 + 1 ) ( 2 8 + 1 ) ( 2 16 + 1 ) . ( 2 2 m 1 + 1 ) = 3 . ( )
...
( 2 2 n 1 ) = ( 2 x 1 1 ) ( 2 x 1 + 1 ) ( 2 x 2 + 1 ) ( 2 x 3 + 1 ) . ( 2 x n 1 + 1 ) ( 2 x n + 1 ) or
( 2 2 n 1 ) = ( 2 x 1 1 ) ( 2 x 1 + 1 ) in these equations, x 1 is a positive odd integer and x 2 , x 3 , x 4 ... x n are positive even integers. Since x 1 is a positive odd number,
( 2 x 1 + 1 ) = ( 2 + 1 ) ( 2 x 1 1 2 x 1 2 + 2 x 1 3 + 1 ) = 3 . ( ) so,
( 2 2 n 1 ) = 3 . ( )
Since each of these numbers has a multiplier of 3, we can find positive odd integers a for all n, and when we apply Collatz operations to these a numbers, we always get 1.
2 2 n + 1 is not a multiple of 3, since 2 2 n 1 is a multiple of 3, for all n ( n N + ).
In (3),
a = 2 2 n 1 3 ;
If n = 1 , a 1 = 1
n = 2 , a 2 = 5
n = 3 , a 3 = 21 = 3.7
n = 4 , a 4 = 85
n = 5 , a 5 = 341
... ...
Preprints 84109 i001
Corollary 2.6. We get a set A with infinite elements, these numbers reach 1 when we apply the Collatz operations. This is because when we apply the Collatz operations to these numbers, they become 2 2 n numbers (Remark 2.3). (In the following sections, we will refer to the elements of the set A and other numbers that satisfy the Collatz conjecture as Collatz numbers).
Example 2.7. 5 → odd number, 16 →8→4→2→1.
21→ odd number, 64→32→16→8→4→2→1.
If we can generalize the elements of the set A = { 1 , 5 , 21 , 85 , 341 , 1365 , 5461 , 21845 , 87381 , } to all positive odd numbers, we have proved the Collatz conjecture.

2.2. Transformations in the Set A with Infinite Elements

Let the elements of the set A = { 1 , 5 , 21 , 85 , 341 , 1365 , 5461 , 21845 , 87381 , } be { a 0 , a 1 , a 2 , a 3 , a 4 , a 5 , a 6 , a 7 , } respectively.
Lemma 2.8. In the set A\ { a 0 } , if a n 1 ( mod 3 )
b n = 2 2 m . a n 1 3
m N + , from each a n we get B n sets with infinite b n elements (Collatz numbers), these numbers satisfy the conjecture. And then, from each b n we get C n sets with infinite elements, from each c n we get D n sets with infinite elements, ... and so on forever.
Proof. If a n 1 (mod 3), we can take a n as 3 . p + 1 , ( p N )
a n = 3 . p + 1 substituting in (4),
b n = 2 2 m . ( 3 . p + 1 ) 1 3 = 2 2 m 3 p + 2 2 m 1 3 = 2 2 m p + 2 2 m 1 3
2 2 m 1 is divisible by 3 (Lemma 2.5.). So we get an infinite number of different b n elements, which can be converted to a n , i.e. 1, by the Collatz operation. The b n elements are Collatz numbers.
Example 2.9. Let a 1 = 85 , then a 1 ≡1 (mod 3),
in (4), a 1 = 85 b 1 = 2 2 . 85 1 3 = 113 , b 2 = 2 4 . 85 1 3 = 453 , b 3 = 2 6 . 85 1 3 = 1813
b 4 = 2 8 . 85 1 3 = 7253 , b 5 = 2 10 1 3 = 29013 , b 6 = 2 12 . 85 1 3 = 116053
B = { 113 , 453 , 1813 , 7253 , 29013 , 116053 , }
Lemma 2.10. In the set A\ { a 0 }, if a n ≡2 (mod 3),
b n = 2 2 m 1 . a n 1 3
m N + , from each a n we get B n sets with infinite b n elements (Collatz numbers), these numbers satisfy the conjecture. And then, from each b n we get C n sets with infinite elements, from each c n we get D n sets with infinite elements, ... and so on forever.
Proof. If a n ≡2 (mod 3), we can take a n as 3 . p + 2 ( p N )
a n = 3 . p + 2 substituting in (5),
b n = 2 2 m 1 . ( 3 p + 2 ) 1 3 = 2 2 m 1 . 3 p + 2 2 m 1 3 = 2 2 m 1 p + 2 2 m 1 3
2 2 m 1 is divisible by 3 (Lemma 2.5). So we get an infinite number of different b n elements, which can be converted to a n , i.e. 1, by the Collatz operation. The b n elements are Collatz numbers.
Example 2.11. Let a 1 = 5 , then a 1 2 ( mod 3 ) ;
a 1 = 5 b 1 = 2 1 . 5 1 3 = 3 , b 2 = 2 3 . 5 1 3 = 13 , b 3 = 2 5 . 5 1 3 = 53
b 4 = 2 7 . 5 1 3 = 213 , b 5 = 2 9 . 5 1 3 = 853 , b 6 = 2 11 . 5 1 3 = 3413
B = { 3 , 13 , 53 , 213 , 853 , 3413 , 13653 , 54613 }
Lemma 2.12. In the set A\ { a 0 }, if a n ≡0 (mod 3),
b n = 2 m . a n 1 3
m N + , there is no such integer b n .
Proof . If a n 0 (mod 3), we can take a n as 3 . p ( p N )
a n = 3 . p substituting in (6),
b n = 2 m ( 3 . p ) 1 3 = 2 m 3 . p 1 3 = 2 m . p 1 3 ,
is not integer.
In the following sections, we will call the operations of deriving new Collatz numbers from Collatz numbers by equations (3), (4) or (5) as Collatz inverse operations (CIO).

2.3. Conversion of Collatz Numbers to all Positive Odd Integers

In the previous sections, when we applied the Collatz operations, we called the numbers that reached 1 as Collatz numbers. Now let’s see how these Collatz numbers can be converted to all positive integers.
Preprints 84109 i005
If we apply the Collatz inverse operations [equations (4) or (5)] continuously to each Collatz number, we get infinitely many new Collatz numbers.
N o d d → Set of A → 2 2 n → 1 (conversion direction of numbers with CO).
N o d d ← Set of A ← 2 2 n (conversion direction of numbers with CIO).
Example 2.13. A small fraction of the Collatz numbers, that can be converted to 2 4 , i.e. 1, by applying CO. These numbers are obtained by applying the CIO to each of the numbers. New numbers are obtained by repeatedly applying CIO to any number that is not a multiple of 3.
Preprints 84109 i006
Example 2.14. Collatz numbers that can be converted to 2 6 , i.e. 1, by applying CO.
21 ← 2 6 There are no other Collatz numbers. Because the resulting number is a multiple of 3. (Lemma 2.12).
Lemma 2.15. There is only one different Collatz number, which is converted to each of the numbers 2 6 n ; ( 2 6 , 2 12 , 2 18 , 2 24 ...) ( n N + ) .
Proof. If we factor 2 6 n - 1,
2 6 n 1 = ( 2 3 n 1 ) ( 2 3 n + 1 ) , there is always a multiplier of ( 2 3 + 1 ) in this equation. Because when we factor ( 2 3 n 1 ) and ( 2 3 n + 1 );
if n is even, ( 2 3 n 1 ) = ... ( 2 3 f + 1 ), 3 f is odd integer.
if n is odd in ( 2 3 n + 1 ), 3 n is odd integer.
And if 3 f or 3 n are odd,
2 3 n + 1 = ( 2 3 + 1 ) ( 2 3 n 3 2 3 n 6 + 2 3 n 9 2 3 n 12 + 2 3 n 15 + 1 )
2 3 f + 1 = ( 2 3 + 1 ) ( 2 3 f 3 2 3 f 6 + 2 3 f 9 2 3 f 12 + 2 3 f 15 + 1 ) Therefore 2 6 n 1 = ( 2 3 + 1 ) . ( ) = 9 . (odd integer)
And, when we divide ( 2 6 n 1 ) by 3, we get only one Collatz number. We can’t obtain another Collatz number because it is a multiple of 3 (Lemma 2.12).
Example 2.16. There is only one different Collatz number for each of 2 6 n , because the resulting Collatz numbers are the multiples of 3 (Lemma 2.12).
21 2 6
1365 2 12
87381 2 18
5592405 2 24
... ...
But, for n N + , k N + and n 3 k , when all 2 2 n 1 numbers (except 2 6 n 1 ) are divided by 3, we get positive odd integers that are not multiples of 3. This is because when we factor 2 2 n 1 , there is only one multiplier of 3.
( 2 2 n 1 ) = ( 2 x 1 1 ) ( 2 x 1 + 1 ) ( 2 x 2 + 1 ) ( 2 x 3 + 1 ) . ( 2 x n 1 + 1 ) ( 2 x n + 1 ) or
( 2 2 n 1 ) = ( 2 x 1 1 ) ( 2 x 1 + 1 )
In these equations, x 1 is a positive odd integer and not a multiple of 3, and x 2 , x 3 , x 4 , ... x n are positive even integers. ( 2 x 1 1 ) , ( 2 x 2 + 1 ) , ( 2 x 3 + 1 ) , ( 2 x n 1 + 1 ) and ( 2 x n + 1 ) do not have a multiplier of 3 (Lemma 2.4. and Lemma 2.5). And since x 1 is not a multiple of 3, ( 2 x 1 + 1 ) has only one multiplier of 3, so an infinite number of Collatz numbers are converted to each of the numbers 2 2 n with CO.
Example 2.17. A small fraction of the Collatz numbers that can be converted to 2 8 , i.e. 1, by applying CO. These numbers are obtained by applying the CIO to each of the numbers. New numbers are obtained by repeatedly applying CIO to any number that is not a multiple of 3.
Preprints 84109 i007
Similarly, all positive odd integers are converted to 2 2 n ( n N + ), i.e. to 1 by applying CO. These numbers are obtained by repeatedly applying the Collatz inverse operations to each element of the set A and the Collatz numbers generated from these numbers.
Lemma 2.18. We obtain new Collatz numbers by applying the Collatz inverse operation ( 2 m . a n 1 3 ) ( m N + ), to the Collatz numbers, all of these Collatz numbers are different from each other.
Proof. Let a 1 and a 2 be arbitrary Collatz numbers, when we apply the Collatz inverse operation to each of them, the resulting numbers are b 1 and b 2 . If b 1 = b 2 then,
2 m . a 1 1 3 = 2 t . a 2 1 3 and 2 m . a 1 = 2 t . a 2 for odd positive integers, must be a 1 = a 2 and m = t .
Lemma 2.19. If a n 0 (mod 3) and a n numbers are odd Collatz numbers, we can derive a n from other Collatz numbers.
Proof. If a n 0 (mod 3) and a n numbers are odd Collatz numbers, then by applying CO to a n , we find odd positive integers b n . Since a n numbers are the Collatz numbers, b n numbers are also the Collatz numbers and b n ¬ 0 ( mod 3 ) .
a n b n (apply CO to a n )
a n b n (apply CIO to b n )
since Collatz numbers cover b n numbers, by applying the Collatz inverse operation to b n we get a n , 2 t . b n 1 3 = a n
Corollary 2.21. By applying the Collatz inverse operations [Equation (3)] to the numbers 2 2 n , we get a set A with infinite elements of positive odd numbers. The elements of the set A are the Collatz numbers. We get new Collatz numbers by applying Collatz inverse operations [Equation (4) or (5)] to each element of this set A. From these new infinite Collatz numbers, infinitely many new Collatz numbers are formed by applying the Collatz inverse operations (CIO) again and again, and this goes on endlessly. So we get the whole set of positive odd numbers as Collatz numbers and we prove the Collatz conjecture for all N + (Remark 2.2).

3. The Absence of any Positive Integer other than Collatz Numbers

In this section, we prove that there are no positive integers that do not satisfy the conjecture.
Lemma 3.1. There cannot be any positive integer other than Collatz numbers.
Proof. Let t 0 be a number that is not a Collatz number and ( t 0 N o d d ), then when we apply Collatz inverse operations to t 0 ,
CIO t 0 we get T = { t 1 , t 2 , t 3 , t 4 , t 5 , t 6 , t 7 , t 8 , t 9 , t 10 , } , and the elements of the set T are not Collatz numbers.
Also, when we apply the Collatz operation to t 0 , until we find odd numbers;
t 0 3 . t 0 + 1 2 n , s 1 s 2 s 3 s 4 s 5 s 6 s 7 → s s 8 s 9 s 10 ...
we get S = { s 1 , s 2 , s 3 , s 4 , s 5 , s 6 , s 7 , s 8 , s 9 , s 10 , } and the elements of the set S are not Collatz numbers ( s n N o d d ) .
If t 0 is a multiple of 3, the CIO cannot be applied to t 0 , so we take s 1 instead of the set T.
If we apply the Collatz inverse operations to every number in the sets T and S, we get infinitely many new numbers that are not Collatz numbers.
Preprints 84109 i002
(Numbers obtained by applying CIO to t 1 . New numbers are obtained by repeatedly applying CIO to any number that is not a multiple of 3.)
Preprints 84109 i003
(Numbers obtained by applying CIO to s 1 . New numbers are obtained by repeatedly applying CIO to any number that is not a multiple of 3.)
In the same way, an infinite number of new numbers are formed by applying CIO to each of ( t 2 , t 3 , t 4 , t 5 , and s 2 , s 3 , s 4 , s 5 , ). We get infinite new numbers that are not Collatz numbers, repeated application of CIO to these numbers produces infinite new numbers, this result contradicts (Corollary 2.21).
Lemma 3.2. The elements of the set S do not loop with any element of the sets S or T.
Proof. We assume that such a loop exists.
Preprints 84109 i004
For such a loop to be exist, if we choose t 0 , s n or any other number as the starting and ending terms of the loop, which cannot be a number other than 1. If we choose s n as the first and last terms of the loop, when CO is applied to all elements of the loop, they all turn into s n , but when CO is applied to s n , it cannot produce a number other than the loop numbers. In other words, while infinitely different numbers turn into s n with CO, s n cannot turn into a number different from those numbers. Such a restriction is only possible if s n is 1. Then the other elements of the loop are also 1. For such a loop to be exist in positive odd integers, all the elements of the loop must be 1.
By another method, all the elements of the loop must be equal, because the infinite set of numbers obtained by applying the CIO to each element of the loop is the same, that is, { t 0 , t 1 , t 2 , s 1 , s 11 , s 12 , s 2 , s 21 , s 22 , s 3 , s 31 , s 31 , s n , s n 1 , s n 2 , } . In the positive odd integers, only the number 1 can form a loop with itself, so all elements of the loop are 1.
Example 3.3.Lets take t 0 in the loop, t 0 ¬ 0 ( mod 3 ) and ( n , m N + ), then if t 0 C I O = t 0 C O ,
2 n t 0 1 3 = 3 t 0 + 1 2 m 2 n + m . t 0 2 m = 9 t 0 + 3 , t 0 = 2 m + 3 2 n + m 9
t 0 cannot be any positive odd integer other than 1 in this equation.
Since we assume that there is a number t 0 which is not a Collatz number, we obtain two sets (T and S) with infinite elements from this number. The elements of the sets T and S are not Collatz numbers. By repeatedly applying the Collatz inverse operations (CIO) to these numbers and the new numbers formed from them, an infinite number of new numbers are created, and this continues indefinitely. And they don’t form a loop. If there were such a number t 0 , there would be no Collatz number. This is because from each of the infinite numbers in the sets T and S, new numbers are continuously generated without any limitation by repeated application of Collatz inverse operations, thus covering all positive odd numbers. This result contradicts the result we found above (Corollary 2.21). So there cannot be any positive integer that is not a Collatz number.

4. Conclusion

We proved the Collatz conjecture using the Collatz inverse operation method. It is shown that all positive integers reach 1, as stated in the Collatz conjecture. With the methods described in this study for 3 n + 1 , it can be found whether numbers such as 5 n + 1 , 7 n + 1 , 9 n + 1 , ... also reach 1.

References

  1. O’ Connor, J.J.; Robertson, E.F. (2006). “Lothar Collatz”.
  2. Lacort, M. O. (2019)."Fermat equation over several fields and other historical mathematical conjectures" United States: Lulu Press. 9: ISBN, 9780. [Google Scholar]
  3. Lagarias, J.C. (1985)."The 3x + 1 problem and its generalizations". The American Mathematical Monthly.92(1):3-23. [CrossRef]
  4. Maddux, C.D.; Johnson, D.L. (1997). Logo: A Retrospective. New York: Haworth Press. p. 160. ISBN 0-7890-0374-0. U: The problem is also known by several other names, including.
  5. Pickover, C.A. (2001). Wonders of Numbers. Oxford: Oxford University Press. pp. 116–118. 5133. [Google Scholar]
  6. Hayes, B. (1984). “Computer recreations: The ups and downs of hailstone numbers” Scientific American vol. 250, no. 1, pp. 10–16.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated