Collatz Iterative Trajectories of All Odd Numbers Attain Bounded Values
Jinqing Zhang1, Xintong Zhang2
1Beijing, China.
2Toronto, Canada.
DOI: 10.4236/jamp.2023.1110200   PDF    HTML   XML   54 Downloads   352 Views  

Abstract

The aim of this paper is to study the 3x + 1 problem based on the Collatz iterative formula. It can be seen from the iterative formula that the necessary condition for the Collatz iteration convergence is that its slope being less than 1. An odd number N that satisfies the condition of a slope less than 1 after nth Collatz iterations is defined as an n-step odd number. Through statistical analysis, it is found that after nth Collatz iterations, the iterative value of any n-step odd number N that is greater than 1 is less than N, which proves that the slope less than 1 is a sufficient and necessary condition for Collatz iteration convergence.

Share and Cite:

Zhang, J.Q. and Zhang, X.T. (2023) Collatz Iterative Trajectories of All Odd Numbers Attain Bounded Values. Journal of Applied Mathematics and Physics, 11, 3030-3041. doi: 10.4236/jamp.2023.1110200.

1. Introduction

The 3x + 1 problem, also known as the “Collatz conjecture” or the “Syracuse problem”, is an interesting topic. It is easy to understand, but not yet proved. The 3x + 1 problem has attracted many mathematic lovers including famous scholars [1] - [7] . The problem can be described as follows: Take any odd number, multiply it by 3 and add 1 to make it an even number, divide it by the power of 2 to make it an odd number, and repeat the arithmetic operation, the final result must be 1. The 3x + 1 problem can also be written as: Take any odd number greater than 1, multiply it by 3 and add 1 to make it an even number, divide it by the power of 2 to make it an odd number, and repeat the arithmetic operation, the final result must be less than the original odd number. Documents [1] and [2]

have proved that the necessary condition for C n ( N ) < N is m = int ( n log 3 log 2 + 1 ) and also proved that when m = int ( n log 3 log 2 + 1 ) , there are many odd numbers that are also convergent, that is, C n ( N ) < N , but it has not been proven that all odd numbers are convergent. This paper is based on the Collatz iterative formula C n ( N ) = 3 n 2 m N + S n ( N ) , through the change patterns of log [ 2 m S n ( N ) ( 2 m 3 n ) N ] towards log ( 2 m 3 n 3 n N ) , to prove Collatz iteration convergence, that is, the necessary and sufficient condition for C n ( N ) < N is m = int ( n log 3 log 2 + 1 ) .

2. Collatz Iterative Formula

For any odd number N, multiply by 3 and add 1 to make it an even number is called an odd transformation, and divide by the power of 2 to make it an odd number is called an even transformation. This process can be called an odd-even transformation.

The Collatz algorithm of an odd-even transformation can be written as:

C 1 ( N ) = 3 N + 1 2 m 1 = 3 2 m 1 N + S 1 ( N ) (1.1)

S 1 ( N ) = 1 2 m 1 (1.2)

The Collatz algorithm of 2nd odd-even transformations can be written as:

C 2 ( N ) = 3 C 1 ( N ) + 1 2 m 2 = 3 2 2 m 2 + m 1 N + S 2 ( N ) (1.3)

S 2 ( N ) = 3 S 1 ( N ) + 1 2 m 2 = 3 2 1 + 2 m 1 2 m 2 + m 1 (1.4)

The Collatz algorithm of 3rd odd-even transformations can be written as:

C 3 ( N ) = 3 C 2 ( N ) + 1 2 m 3 = 3 3 2 m 3 + m 2 + m 1 N + S 3 ( N ) (1.5)

S 3 ( N ) = 3 S 2 ( N ) + 1 2 m 3 = 3 3 1 + 3 3 2 2 m 1 + 2 m 2 + m 1 2 m 3 + m 2 + m 1 (1.6)

Thus, the Collatz algorithm of nth odd-even transformations can be written as:

C n ( N ) = 3 n 2 m n + m n 1 + + m 2 + m 1 N + S n ( N ) (1.7)

S n ( N ) = 3 n 1 + 3 n 2 2 m 1 + 3 n 3 2 m 2 + m 1 + + 3 1 2 m n 2 + + m 2 + m 1 + 2 m n 1 + + m 2 + m 1 2 m n + m n 1 + + m 2 + m 1 (1.8)

Adopt the summation notation [3] :

m = i = 1 n m i (1.9)

m [ 1 , k ] = i = 1 k m i ( 1 < k < n ) (1.10)

m i is the number of times of even transformations with regards to the ith odd transformations, m is the accumulative number of times of even transformations.

So (1.7) can be written as:

C n ( N ) = 3 n 2 m N + S n ( N ) (1.11)

3 n 2 m is the slope of the Collatz iterative formula, S n ( N ) is the intercept of the Collatz iterative formula.

And (1.8) can be written as:

S n ( N ) = 3 n 1 + 3 n 2 2 m 1 + 3 n 3 2 m [ 1 , 2 ] + + 3 1 2 m [ 1 , n 2 ] + 2 m [ 1 , n 1 ] 2 m (1.12)

3. Necessary Conditions for Collatz Iteration Convergence

3.1. Necessary Conditions and the Definition of n-Step Odd Number

Define D n ( N ) as follows:

D n ( N ) = N C n ( N ) (2.1)

Substitute Equation (1.11) into Equation (2.1) we can get:

D n ( N ) = 2 m 3 n 2 m N S n ( N ) (2.2)

Since S n ( N ) > 0 , then the necessary condition for D n ( N ) 0 is [2] :

2 m 3 n > 0 (2.3)

which is, the slope 3 n 2 m is less than 1.

From Equation (2.3) it can be obtained that:

m > n log 3 log 2 (2.4)

Mark the smallest m that satisfies (2.4) as:

m = int ( n log 3 log 2 + 1 ) (2.5)

Then it can be found that when m < int ( n log 3 log 2 + 1 ) , the odd number N will not

fall into a cycle. If an odd number does not fall into a cycle during the odd and even transformation process, then after n times of odd transformations, m times of even transformations will eventually occur, making Equation (2.5) true [4] .

The odd number N that satisfies Equation (2.5) is called n-step odd number.

Define ε as follows:

ε = m n log 3 log 2 = int ( n log 3 log 2 + 1 ) n log 3 log 2 (2.6)

ε is a function of n, and its value is greater than 0 and less than 1. The relationship between m , ε and n is shown in Table 1.

Table 1. The relationships among m , ε , S n ( N ) min , S n ( N ) max and n.

3.2. Collatz Iterative Trajectory Vector

In the Collatz iterative trajectory sequence { C 1 ( N ) , C 2 ( N ) , , C n 1 ( N ) , C n ( N ) } of n-step odd number N, C 1 ( N ) , C 2 ( N ) , , C n 1 ( N ) are all odd numbers, and C n ( N ) may be an odd number or an even number.

( m 1 , m 2 , , m n ) which correspond to the Collatz iterative trajectory sequence is called the Collatz iterative trajectory vector of n-step odd number N, where m 1 , m 2 , , m n 1 1 and m n 2 .

It can be seen that:

The number of types of 1-step odd number less than 22 is 1, and the Collatz iterative trajectory vector is:

(2)

The number of types of 2-step odd number less than 24 is 1, and the Collatz iterative trajectory vector is:

(1, 3)

The number of types of 3-step odd numbers less than 25 is 2, and the Collatz iterative trajectory vectors are:

(1, 1, 3)

(1, 2, 2)

The number of types of 4-step odd numbers less than 27 is 3, and the Collatz iterative trajectory vectors are:

(1, 1, 1, 4)

(1, 1, 2, 3)

(1, 2, 1, 3)

The number of types of 5-step odd numbers less than 28 is 7, and the Collatz iterative trajectory vectors are:

(1, 1, 1, 1, 4)

(1, 1, 1, 2, 3)

(1, 1, 1, 3, 2)

(1, 1, 2, 1, 3)

(1, 1, 2, 2, 2)

(1, 2, 1, 1, 3)

(1, 2, 1, 2, 2)

The number of types of 6-step odd numbers less than 210 is 12, and the Collatz iterative trajectory vectors are:

(1, 1, 1, 1, 1, 5)

(1, 1, 1, 1, 2, 4)

(1, 1, 1, 1, 3, 3)

(1, 1, 1, 2, 1, 4)

(1, 1, 1, 2, 2, 3)

(1, 1, 1, 3, 1, 3)

(1, 1, 2, 1, 1, 4)

(1, 1, 2, 1, 2, 3)

(1, 1, 2, 2, 1, 3)

(1, 2, 1, 1, 1, 4)

(1, 2, 1, 1, 2, 3)

(1, 2, 1, 2, 1, 3)

By analogy, all odd-numbered Collatz iterative trajectory vectors of any number of steps can be constructed.

Assume that the number of n-step odd numbers less than 2 int ( n log 3 log 2 + 1 ) is q, and its vector is: ( m j 1 , m j 2 , , m j n ) j = 1 , 2 , , q , then the number of n + 1-step odd numbers less than 2 int ( ( n + 1 ) log 3 log 2 + 1 ) is j = 1 q m j n q .

3.3. The Maximum and Minimum Values of Sn(N) and Their Relationships to n

By substituting the Collatz iterative trajectory vector components of n-step odd numbers into Equation (1.12), the S n ( N ) values of n-step odd numbers can be calculated.

1-step odd numbers can be represented by 2 2 x + 1 , and their S n ( N ) value is:

S 1 ( 2 2 x + 1 ) = 3 1 1 2 2 = 0.25 (2.7)

Note x is a non-negative integer.

2-step odd numbers can be represented by 2 4 x + 3 , and their S n ( N ) value is:

S 2 ( 2 4 x + 3 ) = 3 2 1 + 2 1 2 4 = 0.3125 (2.8)

3-step odd numbers can be represented by 2 5 x + 23 or 2 5 x + 11 , and their S n ( N ) values are:

S 3 ( 2 5 x + 23 ) = 3 3 1 + 3 3 2 2 1 + 2 2 2 5 = 0.59375 (2.9)

S 3 ( 2 5 x + 11 ) = 3 3 1 + 3 3 2 2 1 + 2 3 2 5 = 0.71875 (2.10)

4-step odd numbers can be represented by 2 7 x + 15 , 2 7 x + 7 , or 2 7 x + 59 , and their S n ( N ) values are:

S 4 ( 2 7 x + 15 ) = 3 4 1 + 3 4 2 2 1 + 3 4 3 2 2 + 2 3 2 7 = 0.50781 (2.11)

S 4 ( 2 7 x + 7 ) = 3 4 1 + 3 4 2 2 1 + 3 4 3 2 2 + 2 4 2 7 = 0.57031 (2.12)

S 4 ( 2 7 x + 59 ) = 3 4 1 + 3 4 2 2 1 + 3 4 3 2 3 + 2 4 2 7 = 0.66406 (2.13)

5-step odd numbers can be represented by 2 8 x + 95 , 2 8 x + 175 , 2 8 x + 39 , 2 8 x + 79 , 2 8 x + 199 , 2 8 x + 219 or 2 8 x + 123 , and their S n ( N ) values are:

S 5 ( 2 8 x + 95 ) = 3 5 1 + 3 5 2 2 1 + 3 5 3 2 2 + 3 5 4 2 3 + 2 4 2 8 = 0.82422 (2.14)

S 5 ( 2 8 x + 175 ) = 3 5 1 + 3 5 2 2 1 + 3 5 3 2 2 + 3 5 4 2 3 + 2 5 2 8 = 0.88672 (2.15)

S 5 ( 2 8 x + 39 ) = 3 5 1 + 3 5 2 2 1 + 3 5 3 2 2 + 3 5 4 2 4 + 2 5 2 8 = 0.98047 (2.16)

S 5 ( 2 8 x + 79 ) = 3 5 1 + 3 5 2 2 1 + 3 5 3 2 2 + 3 5 4 2 3 + 2 6 2 8 = 1.01172 (2.17)

S 5 ( 2 8 x + 199 ) = 3 5 1 + 3 5 2 2 1 + 3 5 3 2 2 + 3 5 4 2 4 + 2 6 2 8 = 1.11547 (2.18)

S 5 ( 2 8 x + 219 ) = 3 5 1 + 3 5 2 2 1 + 3 5 3 2 3 + 3 5 4 2 4 + 2 5 2 8 = 1.12109 (2.19)

S 5 ( 2 8 x + 123 ) = 3 5 1 + 3 5 2 2 1 + 3 5 3 2 3 + 3 5 4 2 4 + 2 6 2 8 = 1.24609 (2.20)

It can be seen that there are multiple odd numbers that are equal to or greater than 3-step odd number. For the same step but different types of odd number, their S n ( N ) values are different, with S n ( N ) minimum value and maximum value exist.

From Equation (1.12), we can see that when the first n 1 components of the Collatz iterative trajectory vector are 1, and the last component is m n + 1 , that is, the trajectory vector of the n-step odd number is ( 1 , 1 , , 1 , m n + 1 ) then S n ( N ) has the minimum value. Substitute the trajectory vector components into Equation (1.12), we can get:

S n ( N ) min = 3 n 1 + 3 n 2 2 1 + 3 n 3 2 2 + + 3 1 2 n 2 + 2 n 1 2 m = ( 3 2 ) n 1 + ( 3 2 ) n 2 + + 3 2 + 1 2 m n + 1 = 3 n 2 n 2 m (2.21)

Based on the value of n, Equation (2.5), and Equation (2.21), S n ( N ) min of n-step odd numbers can be calculated. Refer to Table 1.

Based on Equation (2.6), Equation (2.21) can be written as:

S n ( N ) min = 1 2 ε [ 1 ( 2 3 ) n ] < 1 2 ε < 1 (2.22)

When n is large enough, then

S n ( N ) min 1 2 ε (2.23)

Based on Equation (1.12), the trajectory vector components of the maximum S n ( N ) should meet the following conditions:

m [ 1 , k ] = i = 1 k m i = int ( k log 3 log 2 ) ( 1 k < n , m i = 1 or 2 ) (2.24)

m = i = 1 n m i = int ( n log 3 log 2 + 1 ) ( m n = 2 or 3 ) (2.25)

Substitute the Collatz iterative trajectory vector components that satisfy Equation (2.24) and Equation (2.25) into Equation (1.12), the S n ( N ) max can be calculated. Refer to Table 1.

According to statistics, S n ( N ) max has a good linear relationship with n 2 ε .

Figure 1 shows their relationship when n is in the range of 1 - 50, and Figure 2 shows their relationship when n in the range of 1 - 500. The larger the n is, the better the linear relationship is. If the value of n is small, an intercept can be added to the linear regression.

It can be seen from Figure 2.

Figure 1. The relationship between S n ( N ) max and n 2 ε (n is in the range of 1 to 50).

Figure 2. The relationship between S n ( N ) max and n 2 ε (n is in the range of 1 to 500).

S n ( N ) max 0.241 n 2 ε (2.26)

Based on (2.23), Equation (2.26) can be written as:

S n ( N ) max S n ( N ) min 0.241 n (2.27)

That is, the ratio of S n ( N ) max / S n ( N ) min is approximately proportional to n.

4. Necessary and Sufficient Conditions for Collatz Iteration Convergence

4.1. n-Step Odd Number Converges When S n ( N ) = S n ( N ) m i n

From Equation (2.2) we can get:

N = 2 m D n ( N ) + 2 m S n ( N ) min 2 m 3 n (3.1)

Substitute Equation (2.21) into Equation (3.1) we can get:

N = 2 m D n ( N ) + 3 n 2 n 2 m 3 n (3.2)

If the iteration is divergent, that is, D n ( N ) < 0 , because D n ( N ) is an integer, that is, D n ( N ) 1 , substitute it into Equation (3.2) we can get:

N 2 m + 3 n 2 n 2 m 3 n = 1 2 n 2 m 3 n < 0 (3.3)

It can be seen that D n ( N ) cannot be less than 0.

If the iteration is cyclic, that is, D n ( N ) = 0 , substitute it into Equation (3.2) we can get:

( 2 m 3 n ) N = 3 n 2 n (3.4)

For S n ( N ) = S n ( N ) min , the n-step odd number N can be expressed as:

N = 2 n x 1 (3.5)

Substitute Equation (3.5) into (3.4) and arrange it, we can get:

( 2 m 3 n ) x = 2 m n 1 (3.6)

It can be seen from the literature [5] that there is no other solution except x = 1 , n = 1 , m = 2 (that is, N = 1 ). This proves that when S n ( N ) = S n ( N ) min , n-step odd number N(>1) neither diverges nor cycles. That is, for this special n-step odd number, Equation (2.5) is the necessary and sufficient condition for convergence.

4.2. n-Step Odd Number Nnmin Converges

Literature [1] has proven that n-step odd numbers N satisfy Equation (2.5), then there do exist n-step odd numbers 2 m x + N such that C n ( 2 m x + N ) < 2 m x + N . Now we first prove that for the minimum odd number N n min of n-step odd numbers, the relationship C n ( N n min ) < N n min is established.

From Equation (2.2) we can get:

D n ( N ) = 2 m 3 n 2 m N [ 1 2 m S n ( N ) ( 2 m 3 n ) N ] (3.7)

Substitute N = N n min into the above formula to get:

D n ( N n min ) = 2 m 3 n 2 m N n min [ 1 2 m S n ( N n min ) ( 2 m 3 n ) N n min ] = 2 ε 1 2 ε N n min [ 1 2 ε S n ( N n min ) ( 2 ε 1 ) N n min ] (3.8)

According to Equation (2.5), the minimum odd number N n min of n-step odd numbers N ( 1 < N < 2 30 ) can be obtained. Figure 3 shows the relationship between log [ ( 2 ε 1 ) N n min ] and log ( N n min ) . It can be seen from Figure 3 that log [ ( 2 ε 1 ) N n min ] increases spirally as log ( N n min ) goes up.

Figure 4 shows the relationship between log [ 2 ε S n ( N n min ) ( 2 ε 1 ) N n min ] and

log [ ( 2 ε 1 ) N n min ] . It can be seen from Figure 4 that 2 ε S n ( N n min ) ( 2 ε 1 ) N n min is always

less than 1 and gets close to 0 as log [ ( 2 ε 1 ) N n min ] increases spirally. Therefore, D n ( N n min ) is neither less than 0 nor equal to 0, but is always greater than 0. That is, the relationship C n ( N n min ) < N n min is established.

4.3. All Odd Numbers Greater Than 1 Converge

It is proved below that all odd numbers N less than 2m satisfy. From Equation (3.7) we can get:

Figure 3. The relationship between log [ ( 2 ε 1 ) N n min ] and log ( N n min ) ( 1 < N < 2 30 ).

Figure 4. The relationship between log [ 2 ε S n ( N n min ) ( 2 ε 1 ) N n min ] and log [ ( 2 ε 1 ) N n min ] ( 1 < N < 2 30 ).

Figure 5. The relationship between log [ 2 ε S n ( N ) max ( 2 ε 1 ) N n min ] and log [ ( 2 ε 1 ) N n min ] ( 1 < N < 2 30 ).

D n ( N ) = 2 m 3 n 2 m N [ 1 2 ε S n ( N ) ( 2 ε 1 ) N ] 2 m 3 n 2 m N [ 1 2 ε S n ( N ) max ( 2 ε 1 ) N n min ] (3.9)

According to Equation (2.24), Equation (2.25) and Equation (2.5), the maximum value S n ( N ) max of n-step odd number can be calculated. Figure 5 shows

the relationship between log [ 2 ε S n ( N ) max ( 2 ε 1 ) N n min ] and log [ ( 2 ε 1 ) N n min ] .

As depicted in Figure 5, only when n = 34 , N 34 min = 47 and

n = 37 , N 37 min = 27 , log [ 2 ε S n ( N ) max ( 2 ε 1 ) N n min ] > 0 , that is, 2 ε S n ( N ) max ( 2 ε 1 ) N n min > 1 ; in other cases, 2 ε S n ( N ) max ( 2 ε 1 ) N n min is always less than 1, and tends to be close to 0 as

log [ ( 2 ε 1 ) N n min ] spirals up. From Section 4.2, we can see that N 34 min = 47 and N 37 min = 27 are convergent, which proves that D n ( N ) = N C n ( N ) > 0 for all odd numbers. Therefore, Collatz conjecture is established, and n-step odd numbers can also be called n-step convergence odd numbers.

5. Conclusions

1) For any odd number N, it will not fall into a cycle when m < int ( n log 3 log 2 + 1 ) , then after n times of odd transformations, m times of even transformations will eventually occur, making equation m = int ( n log 3 log 2 + 1 ) true.

2) For any odd number N that is greater than 1, m = int ( n log 3 log 2 + 1 ) is the

necessary and sufficient condition for Collatz iteration convergence, that is, C n ( N ) < N .

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Terras, R. (1979) A Stopping Time Problem on the Positive Integers. Acta Arithmetica, 30, 241-252.
https://doi.org/10.4064/aa-30-3-241-252
[2] Lagarias, J.C. (1985) The 3x + 1 Problem and Its Generalizations. The American Mathematical Monthly, 92, 3-23.
https://doi.org/10.2307/2322189
[3] Tao, T. (2022) Almost All Orbits of the Collatz Map Attain Almost Bounded Values. Forum of Mathematics, Pi, 10, e12.
https://doi.org/10.1017/fmp.2022.8
[4] Hu, Z. (2021) The Analysis of Convergence for the 3X + 1 Problem and Crandall Conjecture for the aX + 1 Problem. Advances in Pure Mathematics, 11, 400-407.
https://doi.org/10.4236/apm.2021.115027
[5] Steiner, R.P. (1977) A Theorem on the Syracuse Problem. In Proceedings of the 7th Manitoba Conference on Numerical Mathematics, Vol. 29, Utilitas Mathematica Pub., Winnipeg, MB, Canada, 553-559.
[6] Lagarias, J.C. (2003) The 3x + 1 Problem: An Annotated Bibliography (1963-1999).
https://arxiv.org/abs/math/0309224
[7] Carbó-Dorca, R. (2023) Collatz Conjecture Redefinition on Prime Numbers. Journal of Applied Mathematics and Physics, 11, 147-157.
https://doi.org/10.4236/jamp.2023.111011

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.