Preprint
Article

Collatz Conjecture

Altmetrics

Downloads

899

Views

275

Comments

0

This version is not peer-reviewed

Submitted:

03 March 2024

Posted:

04 March 2024

Read the latest preprint version here

Alerts
Abstract
This paper presents an analysis of the number of zeros in the binary representation of natural numbers. The primary method of analysis involves the use of the concept of the fractional part of a number, which naturally emerges in the determination of binary representation. This idea is grounded in the fundamental property of the Riemann zeta function, constructed using the fractional part of a number. Understanding that the ratio between the fractional and integer parts of a number, analogous to the Riemann zeta function, reflects the profound laws of numbers becomes the key insight of this work. The findings suggest a new perspective on the interrelation between elementary properties of numbers and more complex mathematical concepts, potentially opening new directions in number theory and analysis.
Keywords: 
Subject: Computer Science and Mathematics  -   Analysis

1. Introduction

We will use the following well-known fact: if, for the members of the Collatz sequence, zeros predominate in their binary representation, then these members will lead to a decrease in the subsequent members according to the Collatz rule. A striking example is when the initial number in the Collatz sequence is equal to 2 n . Let’s write the solution of the equation n = 2 x in the form x = { x } + [ x ] and note that the smaller x, the more zeros in the corresponding binary representation for n. Developing this idea, we come to the following steps.
  • Analysis of the binary representation of simple cases of natural numbers.
  • Creation of a process for decomposing an arbitrary natural number into powers of two.
  • Analysis of the proximity of the process to binary decomposition at the completion of decomposition at each stage.
  • Calculation of the number of zeros in the binary decomposition of a natural number.
  • Estimation of the Collatz sequence members depending on the number of ones in the binary decomposition.

2. Results

This document reveals a comprehensive solution to the Collatz Conjecture, as first proposed in [1]. The Collatz Conjecture, a well-known unsolved problem in mathematics, questions whether iterative application of two basic arithmetic operations can invariably convert any positive integer into 1. It deals with integer sequences generated by the following rule: if a term is even, the subsequent term is half of it; if odd, the next term is the previous term tripled plus one. The conjecture posits that all such sequences culminate in 1, regardless of the initial positive integer. Named after mathematician Lothar Collatz, who introduced the concept in 1937, this conjecture is also known as the 3n + 1 problem, the Ulam conjecture, Kakutani’s problem, the Thwaites conjecture, Hasse’s algorithm, or the Syracuse problem. The sequence is often termed the hailstone sequence due to its fluctuating nature, resembling the movement of hailstones. Paul Erdős and Jeffrey Lagarias have commented on the complexity and mathematical depth of the Collatz Conjecture, highlighting its challenging nature. Consider an operation applied to any positive integer:
  • Divide it by two if it’s even.
  • Triple it and add one if it’s odd.
This operation is mathematically defined as:
f ( n ) = n 2 , if n 0 mod 2 , 3 n + 1 , if n 1 mod 2 .
A sequence is formed by continuously applying this operation, starting with any positive integer, where each step’s result becomes the next input. The Collatz Conjecture asserts that this sequence will always reach 1 Recent substantial advancements in addressing the Collatz problem have been documented in works [2]. Now let’s move on to our research, which we will conduct according to the announced plan. For this, we will start with the following
Theorem 1.
Let
M N , [ α j ] [ α j + 1 ] = δ j > 0 , ϵ 1 < 0.45 , | F j ( x ) | < | x | , α j = [ α j ] + ϵ j , ϵ j < 1 , σ j = 1 ϵ j .
Then for δ j = 1
σ j = 2 1 σ j + 1 1 σ j + 1 ln 2 2 + F j σ j + 1 3 12 ,
and for δ j > 1
σ j = 2 δ j σ j + 1 + 1 2 δ j 2 2 δ j + 1 ln 2 2 2 δ j σ j + 1 2 ln 2 4 + 2 2 δ j R j ln 2 2 σ j + 1 3 8 .
Proof. 
Consider
M M = 0 = i = 1 j 2 [ α i ] + 2 α j + 1 i = 1 j 1 2 [ α i ] + 2 α j = 2 [ α j ] + 2 α j + 1 2 α j 2 α j = 2 [ α j ] + 2 α j + 1 = 2 [ α j ] + 2 [ α j + 1 ] [ α j ] + [ α j ] + ϵ j + 1 .
Then, we proceed to functional relations between σ j and σ j + 1 :
2 ϵ j = 2 δ j + ϵ j + 1 + 1 2 1 σ j = 2 δ j + 1 σ j + 1 + 1 ln ( 2 1 σ j ) = ln 2 σ j ln 2 = ln ( 2 δ j + 1 σ j + 1 + 1 ) .
Evaluating for δ j = 1 , we get:
ln ( 2 δ j + 1 σ j + 1 + 1 ) | δ j = 1 = ln ( 2 σ j + 1 + 1 ) = ln 2 + ln 1 σ j + 1 ln 2 2 + σ j + 1 2 ln 2 2 4 + F j σ j + 1 3 12 .
Continuing the computations for δ j > 1 , we obtain:
ln ( 2 δ j + 1 σ j + 1 + 1 ) = ln 1 + 2 δ j + 1 2 δ j + 1 σ j + 1 ln 2 2 + 2 δ j + 1 F j σ j + 1 2 + 2 δ j + 1 = 2 δ j 2 2 δ j + 1 2 δ j σ j + 1 ln 2 2 + 2 2 δ j F j σ j + 1 2 .
Thus, we obtain the final formulas.  □
Theorem 2.
Let
M = 3 n = 2 [ α ] + { α } = i = 1 n γ i 2 i ,
1 { α } > 0.55 , n = n ln ( 3 ) ln ( 2 ) ,
then
γ i = 0 1 n 2 .
Proof. 
Let
3 n = 2 α α = n ln 3 / ln 2 3 n = 2 [ α ] + { α } .
Using Theorem 1, we construct the sequence
ϵ i , m i , ϵ 1 = { α } ,
2 ϵ 1 = k = 0 i 1 2 [ α k ] α 1 + 2 α i α 1 .
Suppose the binary decomposition process, according to Formula (1), stops at the j-th step. It immediately follows that the remaining terms of the decomposition are zeros, and we immediately achieve the truth of the Theorem’s statement. Therefore, we consider the case when the generation of the decomposition according to Formula (1) does not stop, and j reaches n. This means that all σ j > 0 , j < n .
Let’s conduct a more detailed analysis of the number of zeros and ones in our binary representation. Introduce the following notation:
  • l- the number of zeros in the binary representation.
  • m- the number of ones in the binary representation.
  • n- the binary decomposition bit size, then
  • n = l + m.
δ j = 1 , α j = 0 , β j = ( 1 ln 2 σ j + 1 2 ) / 2 + F j σ j + 1 2 12 ) 1
δ j > 1 , α j = 2 δ j 1 2 δ j 2 2 δ j + 1 ln 2 + 2 δ j R j ln 2 2 σ j + 1 3 8 + 2 2 δ j + 1 ln 2 , β j = 2 δ j
To solve the following equations
σ j + 1 = α j + β j σ j
we introduce the notation λ m - the number of ones after the appearance of α m > 0 and before the next appearance of zero in the binary decomposition and
γ m = k = m m + λ m 1 β k , α m + λ m + 1 > 0
Consider the set λ 1 , λ 2 , . . . . λ n , . by definition λ 1 1
Define:
m ( λ , i ) = inf k { k | λ k > 1 + i }
m ( λ , i ) = inf k { k | λ k > 1 + i }
if the set k satisfying the condition is not empty. Let’s perform a series of transformations to understand the next steps.
σ n + 1 = α n + β 1 γ 1 α 1 β 1 γ 1 k = 0 n 2 γ n k β n k + m = 1 n 2 γ n m β n m α n m β n m γ n m k = 0 m 1 β n k γ n k + σ 1 k = 0 n 1 β n k γ n k
σ n + 1 = α n + α 1 β 1 γ 1 k = 0 n 1 β n k γ n k + m = 1 n 2 α n m β n m γ n m k = 0 m β n k γ n k + σ 1 k = 0 n 1 β n k γ n k
With the consideration of the definition of m ( λ , i ) , in case of existence λ i > 1
σ n + 1 = α n + α 1 β 1 γ 1 k = 0 n 1 β n k γ n k + m = 1 m ( λ , i ) 1 α n m β n m γ n m k = 0 m β n k γ n k +
m = m ( λ , i ) n 2 α n m β n m γ n m k = 0 m β n k γ n k + σ 1 k = 0 n 1 β n k γ n k
σ n + 1 = α n + m = 1 m ( λ , i ) 1 α n m β n m γ n m k = 0 m β n k γ n k +
m = m ( λ , i ) n 1 α n m β n m γ n m k = 0 m β n k γ n k + σ 1 k = 0 n 1 β n k γ n k
m = m ( λ , i ) n 1 γ n m ( λ , i ) α n m β n m γ n m k = 0 m β n k γ n k + σ 1 γ n m ( λ , i ) k = 0 m ( λ , i ) 1 β n k γ n k
Introduce the notation
α = inf δ i | α i | β i , α = sup 0 i n | α i | β i
β = inf 0 i n , δ i = 1 β i , β = sup 0 i n , δ i = 1 β i
A ( m ) = k = 1 , δ j = 1 m l n 2 ( β j ) + k = 1 , δ j > 1 m l n 2 ( β j ) = A 1 ( m ) + A 2 ( m )
by definition α i , γ i
1 < α < α < 1.3
2 < β < β < 2 / ( 1 ln 2 / 2 )
Rewrite Equation (6) using i , m ( λ , i ) and assuming that we have only one zero
σ 1 σ n β   i 2 A ( n 1 ) α β   i 2 A ( n 1 ) m = 1 m = m ( λ , i ) 2 A ( m ) +
σ n β   i 2 A ( n 1 ) α β   i 2 A ( n 1 ) m = m ( λ , i ) m = n 1 2 A ( m )
σ 1 < 2 1.3 β i
It follows that after zero there cannot be more than three ones. Suppose that between two zeros there are two ones, using Theorem 1 and denoting
x ( k ) = 2 σ i + k , k { 1 , 2 , 3 , 4 , 5 }
we get the system of equations
A x = b
where A , A 1 , b are defined below.
A = 2 s 0 0 0 0 2 1 0 0 0 0 2 1 0 0 0 0 2 t 0 0 0 0 2
b = 1 1 1 1 1
s = 2 δ i , t = 2 δ i + 3
A = 1 / 2 s / 4 s / 8 s / 16 s t / 32 0 1 / 2 1 / 4 1 / 8 t / 16 0 0 1 / 2 1 / 4 t / 8 0 0 0 1 / 2 t / 4 0 0 0 0 1 / 2
A 1 = 1 / 2 s / 4 s / 8 s / 16 s t / 32 0 1 / 2 1 / 4 1 / 8 t / 16 0 0 1 / 2 1 / 4 t / 8 0 0 0 1 / 2 t / 4 0 0 0 0 1 / 2
Using Theorem 1 again
2 1 σ i + 4 = 2 1 2 + t ( t + 1 ) 4 = 2 δ i + 4 σ i + 5 + 1
t ( t + 1 ) 2 = 2 δ i + 4 σ i + 5
2 δ i + 4 + 1 2 = 2 σ i + 5
Continuing the calculations, we obtain
σ i + 4 1 2 δ i + 4 1 / ln 2
from Theorem 1 and the last estimate implies
δ i + 4 > 2
thus we have three ones more than three zeros. continuing our reasoning for the case of three ones between zeros we also get that the number of zeros is greater than the number of ones, hence the statement of the theorem follows.  □
Theorem 3.
Let
a n = i = 0 n γ i 2 i , n > 1000 , γ i { 0 , 1 } ,
then
j < 10 , and a 4 n j < a n .
Proof. 
Introduce operators defined as follows:
P f = f 2 , T f = 3 f + 1 , Z f = 3 f ,
T i { P , T } , R i { Z , P } .
Consider all possible Collatz sequence behaviors that can be written as follows:
a n + n = T 1 T 2 T n a n ,
We need to calculate an estimate for each 2 n -th term of the Collatz sequence based on the number of applied P , T , Z operators within n steps.
a n + n = T n T n 1 T 1 a n ,
Let a n have m ones in its binary representation, then count the number of Z operator applications by the following formula:
m = R i = Z , i n 1 ,
and the number of P operator applications by the following formula:
R i = P , i n 1 = m + n m = n .
Since each Z application is followed by a P operator, and the number of P operator applications corresponds to the number of zeros in a n , which is n m . According to the Collatz rules, after n steps we have:
a n + n = 3 m 2 n a n + T n T n 1 T 1 1 = 3 m 2 n a n + B n ,
B n 2 n + m j = 1 m 3 j 2 j a n < 2 n + m · 3 m / 2 m · a n 2 2 n + 1 · 3 m · a n .
According to the last formula, we see that the growth of each sequence member depends on the number of ones in its binary representation. Next, we show that a large number of ones on the 2 n -th step leads to an increase in the number of zeros on the 3 n -th step for the binary representation, according to the previous theorems, which implies a decrease in subsequent sequence members:
a 2 n = 3 m a n · 2 n + B n = 3 m + 3 m ( a n 2 n ) + B n ,
Repeating the reasoning of Theorem 2, consider the equation
2 x = a 2 n = 3 m a n · 2 n + B n = 3 m + 3 m ( a n 2 n ) · 2 n + B n ,
x ln 2 = m ln ( 3 ) + ln 1 + ( a n 2 n ) · 2 n + B n · 3 m ,
From the last equation, to apply the results of Theorem 2, we need σ 1 > 1 2 ln 2 . To satisfy the last inequality, consider m j = m j , θ = ( a n 2 n ) · 2 n ,
{ x } = min j < 10 ( m j ) ln ( 3 ) ln ( 2 ) + ln ( 1 + θ ) ln 2 + F j 1 2 n ln 2 ,
Consider p = ( m j ) ln 3 ln 2 = ( 2 k + l ) 1.5849625007 , ϵ = 1.5849625007 1.5 , we get
p = ( 2 k + l ) ( 1.5 + ϵ + ln ( 1 + θ ) ln 2 ) = 3 k + ( 2 k + l ) · ϵ + ln ( 1 + θ ) ln 2 ,
{ p } = { 1.5 · l + ( 2 k + l ) · ϵ + ln ( 1 + θ ) ln 2 } = { 1.5 · l + { ( 2 k + l ) · ϵ + ln ( 1 + θ ) ln 2 } } ,
Choosing l from even numbers less than 10, if the inequalities 0 { ( 2 k ) · ϵ + ln ( 1 + θ ) ln 2 } 0.5 ,
{ p } = { 2 k · ϵ + ln ( 1 + θ ) ln 2 } = { 2 k · ϵ + ln ( 1 + θ ) ln 2 } ,
Choosing l from odd numbers less than 10, if the inequalities 0.5 < { 2 k · ϵ + ln ( 1 + θ ) ln 2 } < 1 ,
{ p } = { 2 k · ϵ + ln ( 1 + θ ) ln 2 } = { 0.5 + ( 2 k + l ) · ϵ } ,
Using ϵ < 0.1 , also satisfies the condition σ 1 = 1 { x } > 0.55
m number of non - zero γ i ,
According to Theorem 2 we get
m n / 2 + ( n j ) · ln 3 / ln 2 / 2 ,
According to our application of the Collatz rules, we have an element a 4 n j , and the order of its binary representation is
n 2 = n + ( n j ) · ln 3 / ln 2 / 2 ,
After 3 n j steps of applying the Collatz rules we have
a 4 n j = 3 m 2 2 n j a 2 n + T 3 n j T 3 n 1 j T 1 1 = 3 m 2 2 n a 2 n + B 3 n ,
a 4 n j = 3 m 2 2 n a 2 n + T 3 n j T 3 n j 1 T 1 1 = 3 m 2 2 n 3 m 2 n j a n + B n + B 3 n j ,
a 4 n j = 3 m + m · 2 3 n j a n + 3 m · 2 2 n j B n + B 3 n j ,
a 4 n j q 1 · a n ,
By the definition of m , l , B n we obtain
q 1 < 1 ,
Using n > 1000 , it follows that q 1 < 1 a 4 n j < a n .  □
Theorem 4.
Let
a n = i = 0 n γ i 2 i , n > 1000 , γ i { 0 , 1 } ,
then for a n the Collatz conjecture holds.
Proof. 
The proof follows from Theorems 1–3.  □

Conclusion

Our assertion proves that after 3 n j steps, the sequence with an initial binary length of n arrives at a number strictly less than the initial one, thus resolving the Collatz conjecture. Since applying this process n times will inevitably lead us to 1.

References

  1. O’Connor, J.J.; Robertson, E.F. (2006). “Lothar Collatz”. St Andrews University School of Mathematics and Statistics, Scotland.
  2. Tao, Terence (2022). “Almost all orbits of the Collatz map attain almost bounded values”. Forum of Mathematics, Pi. 10: e12. arXiv:1909.03562. ISSN 2050-5086. arXiv:1909.03562. [CrossRef]
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