In the study of number theory, odd and even numbers are a fundamental pair of ideas. Natural number set is parted into two different sets. Number theory frequently examines the connections between various numbers. There are many conjectures that attempt to generalize the facts of different kinds of natural numbers discovered in a restricted range to the entire infinite set of natural numbers. This article will examine the famous Collatz conjecture, which states that for each natural number n, if it is even, divide by 2, if it is odd, multiply by 3, add 1, and so on, the result must eventually reach 1. It is also referred to as the conjecture and was put forth in 1937 by Lothar Collatz, also known as the problem. The mathematician Paul Erdos once said of this conjecture: “Mathematics may not be ready for such problems” .
The inconsistencies between the finite and the infinite, as well as the relation between various kinds, present difficulties in the study of number theory problems. We are talking about the connection between two different mathematical ideas: the iterated sequence is a ultimately periodic sequence whether the initial value is odd or even.
The finite and the infinite can be connected by the useful mathematical construct known as a function, and the value will also be finite and infinite. A special function that has particular significance in discrete mathematics is the piecewise function. Composite functions and piecewise functions combined is a highly clever mathematical trick. Particularly in number theory, which is the most fundamental idea and mathematical expression, the sequence of numbers is a close connection between functions and finite or infinite. Numerous conjectures are obtained through restricted iteration of an iterative algorithm, which is a widely used method in number theory, but people typically lack the tools to demonstrate the accuracy and reasoned nature of conjectures. A fresh technique or new knowledge is frequently used to support a hypothesis.
For the Collatz conjecture, we can describe it as a function:
The following sequence is obtained via the composite function (iteration): . Consequently, the Collatz conjecture can be stated as follows:
Collatz conjecture 1: For any natural number n, there is finite natural number m, the sequence A always leads to the integer 1, namely .
The series A is an infinite sequence of ultimately period . So we give another statement of the Collatz conjecture as the following.
Collatz conjecture 2: The series A is an infinite sequence of ultimately period, the preperiod varies with the initial value n, but the ultimately period is always .
The key problem is how find the beingness and finiteness of the natural number m. In order to solve the key problem, we propose full binary directed tree. Although there are binary tree and graphs in papers [5,13,14], comparing their binary tree and mine, there are many differences as the follows:
1) We use the full binary directed tree to represent the procedure of the composition of odd-number and even-number function from 1. Namely we visual represent the procedure of the function , k is the number of the level of the full binary directed tree, the function in (2.2).
2) By binary string of arbitrarily given natural, it is visual to the iteration procedure of the Collatz function, thats are the following two actions jump and trace accordingly two functions and .
1. An Algebra and Graph Representation of Natural Numbers
1.1. The Composition of Odd-Number and Even-Number Functions
If a natural number can be divided by 2, it is said to be an even number; otherwise, it is said to be odd number. The Peano’s Axiom states that 1 is the smallest natural number. The set of natural numbers may be separated into odd and even sets, we will utilize the standard definition of natural numbers in this work.
.
In the set of natural numbers where 1 is the smallest odd number and 2 is the smallest even number, we can use the expression to indicate that it is an odd, and the expression to indicate that it is an even, where k is any natural number.
We introduce two functions to express odd numbers greater than 1, and to express even numbers, where x is any natural number in N.
We define a strictly increase monotonically piecewise function
, from a natural number
n it generates two cases: odd or even numbers:
Definition 1 A natural number
n is obtained by composition of the odd-number function
and the even-number function
several times, namely
the function
f is either odd-number function
or even-number function
.
For example, , .
Any natural number n is the value of the finite times composite function of odd-number and even-number function. Namely if , then the inverse function is ,
1.2. Use Binary String to Represent Natural Numbers
An natural number is the value of composition of and , in order to more clearly express the odd-number and even-number functions composite process of a natural number, we use binary string to represent a natural number n, the string from right to left of 0 and 1 accordingly the procedure from top down to itself, it indicates the order of the composition of and , 0 implicate even-number function, and 1 implicate odd-number function.
The binary string of a natural number is a representation of its odd-even composite function, where the 1 in the
-bit from left to right is the
odd-number function
, and 0 is the corresponding even-number function
. For example,
Figure 1 shows the decomposition of the composite function of 60.
The natural number n is then represented by the bring 0 and 1 string , we note in passing that the are the remainders left after successive divisions of n by 2.
1.3. Use a Graph to Represent the Composite Procedure of the Natural Numbers
In order to give an intuitive impression, we provide
a full binary directed tree to represent the natural number set, the root is the smallest number 1. For per vertex, its left-child is an even number which double itself, its binary string is appended by 0, right-child is an odd number which double itself and add 1, its binary string is appended by 1. For an natural number its binary string indicates the procedure of the composition of
and
from initial value 1 to the final accordingly binary string from the left to right. The full binary directed tree, as in
Figure 2, is a very good representation of natural number
N, it is infinitely isosceles triangle.
Proposition 1 The length of a binary string implies its level in the full binary directed tree, and the number of the times of composite of odd-number and even-number function is the length of a binary string minus 1.
For given natural number
n, its binary string from the second bit in left to right appending 0 or 1, indicates which comes from the root 1 of the full binary directed tree traversal according only one branch to itself. For instance,
Figure 3 illustrates the procedures of composite odd-number and even-number of 21 and 29.
1.4. Another Partition of the Natural Number Set
We give the definitions of three kinds of natural numbers:
Definition 2(i) By applying the odd function
m compositions, a natural number, namely
, is obtained. such as
, which we call it as
pure odd number. Those are in the right leg of the isosceles triangle, namely the full binary directed tree of the
Figure 2.
(ii) By applying the even function
m compositions, a natural number, namely
, is obtained, such as,
, which we call it as
pure even number.Those are in the left leg of the isosceles triangle, namely the full binary directed tree of the
Figure 2.
(iii) The natural number obtained by the composition of odd function
and even function
, we call it
mixed number. Such as,
. Those are in the inside of the isosceles triangle, the complete directed binary tree of the
Figure 2.
In particular, the natural numbers obtained by the finite alternately composition of the odd function and the even function , namely, . Such as , which we call hard numbers.
For a natural number n, if its binary string has bits, then the degree of composite function is k. The binary string of a pure odd number is made of all 1; and the binary string of a pure even number is all 0 besides 1 in left-most; the binary string of a mixed number is made of many 0 and 1.
Thus for any natural number n, its binary string is the traversal path in the full binary directed tree from the root to down along the arcs. For example in Fig 3, for , it comes from the root 1 down 2,5,10, finally reach 21, it is appending 0,1,0,1 to the vertexes, . And for , it comes from the root 1 down 3,7,14, finally reach 29, it is appending 1,1,0,1 to the vertexes, .
Property 2 The set of natural numbers can be divided into three different sets: {natural number}=
{pure even number}∪{pure odd number}∪{mixed number}, where {mixed number}={mixed even number}∪{mixed odd number}
Example 1 (1)60–97 are mixed numbers.
(2)64,1180591620717411303424 are pure even numbers.
(3)63,1180591620717411303423 are pure odd numbers.
When we convert those natural numbers from decimal to binary, the facts are obvious.
is a mixed-even number, is a mixed-odd number.
, are pure even numbers:
, are pure odd numbers.
2. Study the Collatz Function
2.1. Using Tabular Form and Algebraic Expressions to Represent the Collatz Sequence
The
reduced Collatz function [6] is an alternate form of the Collatz function that maps one odd number to the next odd number, so that only odd numbers are included in the Collatz sequence.
where
m and
r are two natural number, and the result is an odd number. We use a table that has been modified from the tabular forms in [6], which is the process for iterating the Collatz function (1.1) on
n. For instance, if
, the tabular forms is as follows.
Line 0 |
|
|
|
|
|
|
117 |
|
Line 1 |
117→ |
352→ |
176→ |
88→ |
44→ |
22→ |
11 |
|
Line 2 |
11→ |
34→ |
17 |
|
|
|
|
|
Line 3 |
17→ |
52→ |
26→ |
13 |
|
|
|
|
Line 4 |
13→ |
40→ |
20→ |
10→ |
5 |
|
|
|
Line 5 |
5→ |
16→ |
8→ |
4→ |
2→ |
1 |
|
|
Line 6 |
1→ |
4→ |
2→ |
1 |
|
|
|
|
The tabular’s unique feature is that the first and last numbers in each row are all odd numbers. If
x is the first odd number, then
y in the same row can be represented by the formula
where
r is the number of the arrows from the even number to last odd number in the same row. For instance, for the table on
, there are the following,
Line 1 |
suppose
|
there is the expression
|
Line 2 |
suppose
|
there is the expression
|
Line 3 |
suppose
|
there is the expression
|
Line 4 |
suppose
|
there is the expression
|
Line 5 |
suppose
|
there is the expression
|
Line 6 |
suppose
|
there is the expression
|
Substitute the expression in line 1 into the expression in line 2, we obtain
We substitute this expression into the expression in line 3, get
Using the same method, we get the following expressions,
Thus, we have an algebraic expression
In general, the algebraic expressions are obtained: Starting from the last row of the table and going up to the binary corresponding to the initial value n of the first row, the numerator is , The denominator is , , here for the before k lines at the end of the second column of binary string number 0. The details are expressed in the last column of the corresponding table.
The powers of 2 in the denominator are the sum of the numbers of arrows after the even numbers to the end of the row and the power of 2 in next row. We can see that in the last column of the table from the last row to the first row, the powers of 3 are 0, in the numerator successively.
2.2. Discuss the Collatz Problem by Binary Strings
If the Collatz function (1.1) is expressed in binary form as
The characteristics of the left side and right side and the penultimate of the binary string are illustrated by the
Figure 4.
Then we use binary string to illustrate the reduced Collatz function (3.8) as the follows,
where × is 0 or 1.
In the Collatz squence, for the Collatz function
, next
, and next and next
, so on, there have not unified formulas. If we use binary string to state the procedure
, i.e.,
, which is correspond to add 1 or 10 in the left side or delete all 0 in the right side. Thus we reduced the tabular form to the follows. For example, for
one obtain the following tables.
1000011→ |
11001010→ |
1100101 |
|
|
1100101→ |
100110000→ |
10011 |
|
|
10011→ |
111010→ |
11101 |
|
|
11101→ |
1011000→ |
1011 |
|
|
1011→ |
100010→ |
10001 |
|
|
10001→ |
110100→ |
1101 |
|
|
1101→ |
101000→ |
101 |
|
|
101→ |
10000→ |
1 |
|
|
1 |
|
|
|
|
|
|
10027 |
|
10027=(10011100101011)
|
(111010110000010)
|
(11101011000001)
|
|
15041=(11101011000001)
|
(1011000001000100)
|
(10110000010001)
|
|
11281=(10110000010001)
|
(1000010000110100)
|
(10000100001101)
|
|
8461=(10000100001101)
|
(110001100101000)
|
(110001100101)
|
|
3173=(110001100101)
|
(10010100110000)
|
(1001010011)
|
|
595=(1001010011)
|
(11011111010)
|
(1101111101)
|
|
893=(1101111101)
|
(101001111000)
|
(101001111)
|
|
335=(101001111)
|
(1111101110)
|
(111110111)
|
|
503=(111110111)
|
(10111100110)
|
(1011110011)
|
|
755=(1011110011)
|
(100011011010)
|
(10001101101)
|
|
1133=(10001101101)
|
(110101001000)
|
(110101001)
|
|
425=(110101001)
|
(10011111100)
|
(100111111)
|
|
319=(100111111)
|
(1110111110)
|
(111011111)
|
|
479=(111011111)
|
(10110011110)
|
(1011001111)
|
|
719=(1011001111)
|
(100001101110)
|
(10000110111)
|
|
1079=(10000110111)
|
(110010100110)
|
(11001010011)
|
|
1619=(11001010011)
|
(1001011111010)
|
(100101111101)
|
|
2429=(100101111101)
|
(1110001111000)
|
(1110001111)
|
|
911=(1110001111)
|
(101010101110)
|
(10101010111)
|
|
1367=(10101010111)
|
(1000000000110)
|
(100000000011)
|
|
2051=(100000000011)
|
(1100000001010)
|
(110000000101)
|
|
3077=(110000000101)
|
(10010000010000)
|
(1001000001)
|
|
577=(1001000001)
|
(11011000100)
|
(110110001)
|
|
433=(110110001)
|
(10100010100)
|
(101000101)
|
|
325=(101000101)
|
(1111010000)
|
(111101)
|
|
61=(111101)
|
(10111000)
|
(10111)
|
|
23=(10111)
|
(1000110)
|
(100011)
|
|
35=(100011)
|
(1101010)
|
(110101)
|
|
53=(110101)
|
(10100000)
|
(101)
|
|
5=(101)
|
(10000)
|
(1)
|
|
We observe the procedure of composite reduced Collatz function (3,8), i.e., the Collatz sequences, that we pay close attention to the zeros in right side of binary strings of an even number and the end-substring between the first 0 encountered from right to left which is make of 1. There are many properties in the tabular expressions as the follows.
1. Column characteristic
1) In each row, the first column is always odd (empty when the initial value is even), i.e., the last bit of its binary string must be 1.
The second column must be even, its binary string must end with at least one 0, the number of subsequent even numbers must be as many as the number of zeros at the end of the second column’s binary string, and the number of zeros at the end of each even number to the right is one less than the previous one, until all zeros are deleted to become the last odd number in the row.
The last column must be odd, and the last bit of its binary string must be 1.
2) When there are only three numbers in a row, that is, only one even number, the last odd number must be greater than the first odd number (the first column); When there are more than three numbers in a row, that is, more than two even numbers, the last odd number must be smaller than the first odd number.
3) The preceding binary string is identical from the second column to the last column in one line, except for the all 0 at the end.
2. Row characteristic
From top to bottom, the binary string in the first column of two adjacent rows has the following two characteristics:
1) If the number of bits of 1 in the end-substring of the previous row is greater than 1, the number of bits of 1 in the end-substring of the next row is reduced by one, until it finally becomes only one; The corresponding number is greater than the number in the previous row;
2) If the end-substring of the binary string in a row contains only one bit of 1, then the end-substring of the binary string in the next row contains either one bit of 1 or many bits of 1, and the corresponding number is smaller than the number in the previous row;
3. Comprehensive characteristic
1) When the end-substring of the binary is 1, the corresponding digit of the decimal number can be any one of . For instance, , , , , .
2) The number ending in decimal is 9 and the corresponding binary number can end in any end-substrings of 1—for instance—, ,,,,.
3) When the last substring of binary is reduced by one bit from many, the corresponding decimal number’s unit’s digit are always reciprocated within the three groups of numbers: , or , and unit’s digit is always .
2.3. Discuss the Collatz Sequences by Convert Function and Only Odd Numbers
Because the result of the reduced Collatz function (3.4) is only odd numbers, we talk three sets to divide the odd number set
. In [15,16] the odd number set can be divided into three sets
,
As [16] the authors call inverse Collatz function, if
, i.e.,
,
for each
we get infinite sequences of
sets as following:
,
,
,
,
,
,
⋯
If
, i.e.,
,
for each
we get infinite sequences of
sets as following:
,
,
,
,
,
,
⋯
is the hard number set, they are in a zigzag branch which the start vertex is 1. The other set
or
are in the other zigzag branchs. For the per number in one set
,
the Collatz paths (corresponding Collatz sequence) from it to 1 are the same shape. It is shown in
Figure 6.
For
, i.e.,
, we give a new formula
which result is the odd set
. We observe (3.10) that
.
,
,
,
,
,
,
,
⋯
Thus we have two properties:
Proposition 3 The formulas (3.12) and (3.13) can map to O.
Proposition 4 The formula (3.14) can map to . Namely The formula maps from O to .
3. Discuss the Collatz Sequences by the Full Binary Directed Tree
In order to study the Collatz conjecture by the full binary directed tree, we call two cases and as two actions jump and trace correspondingly in the full binary directed tree. An one jump is to walk down from a vertex to another vertex in another branch and another level of the tree. An one trace is to walk along the branch from current vertex back to its parent-vertex.
Proposition 5 A jump action is that from an odd vertex to an even vertex which is neither its child nor its descendant. A trace action is from even vertex back to its parent.
Proposition 6 For a given number n, applying the Collatz function (1.1) or the reduced Collatz function (3.4) or (3.8) gets the Collatz sequence has not common vertex until 1.
This means the path of the tree traversal by two actions jump and trace has not vertex of intersection until meets 1. Especially there is not the moment to jump to itself branch.
Proposition 7 In the sequence of the composites of Collatz function of natural number n, one jump action only down to next level or next adjacent level. There are not adjacent jump actions, namely two jump actions at least one trace action apart since is even number when x is odd.
Proposition 8 In the sequence of the composites of Collatz function of natural number n, one trace action only back to its parent. Two trace actions can adjacent, namely many trace actions can adjacent to find its ancestor. For instance, a pure even , there are 6 trace actions adjacent to find its ancestor 1.
In the sequence of the composites of Collatz function of natural number n, we call the substring of a string encountered from right to left before the first 0 as end-substring.
Proposition 9 If the length of the end-substring of given odd number is one, the next odd must be smaller than itself. If the length of the end-substring of given odd number is bigger than one, the next odd must be bigger than itself.
Proposition 10 As in [16], for adjacent pair pure numbers, in the full binary directed tree and the Collatz function (1.1) or reduced Collatz function (3.8). For a given odd number , the pure odd , if there exists natural number m such that , then for its right-child have the relation .
In the graph format, there is a similar invariants structures of two sequence of the (or reduced) Collatz function for a pure odd number with odd number lenght and its next pure number with even number length, as the
Figure 6,
Figure 7 and
Figure 8.
4. Comparison of Two Piecewise Functions and the Proof of Collatz Conjecture
Comparing the Collatz function and the function , if their domain is defined as the set of natural numbers, we find that they have the following relation:
1) The function is strictly monotonically decreasing,
2) When x is purely even, the function is only one case of the functions, is strictly monotonically increasing;
3) When
x is a pure or mixed odd number, the function
is wavy, which is increasing, followed by one or more decreasing processes, that is, “increase – decrease – increase”, or “increase – decrease ⋯ decrease – increase”. For example,
Figure 3 and 4 are the plots of the iterated sequence of Collatz functions with initial values of pure odd
and mixed odd number
, respectively.
Figure 10.
Point plot of a sequence of 47 iterations of the Collatz function for pure odd 255.
Figure 10.
Point plot of a sequence of 47 iterations of the Collatz function for pure odd 255.
Figure 11.
Point plot of a sequence of 118 iterations of the Collatz function for mixed number 97.
Figure 11.
Point plot of a sequence of 118 iterations of the Collatz function for mixed number 97.
Due to the fact that an odd number can be either pure or mixed, when x is odd, the Collatz function can be parted into two parts. i.e., .
(i) when x is a pure odd number, i.e., , The binary string is even, with just one 0 at the end, and the other part is pure even. As a result, is a mixed even number with only one 0 in the last bit and bits 1 in the second-to-last substring, corresponding , it means function T(x) is increase.
(ii) When x is a mixed odd number, it just has one 1 in the last binary substring, the value is smaller odd than x, it means function T(x) is decrease. The last binary substring of number has two kinds, which :
(a) There many 1 in the last binary substring. For example, , , .
(b) Only 1 in the last binary substring. For example, , , .
When the end of the binary substring is 1, using × denotes either 1 or 0, we discuss the changes of the last substring three digits and four digits in the procedure of the Collatz function sequences:
,
,
can adjust the structure of its binary substring, when the end of the binary substring is 1, the value of Collatz function decrease, thus the number of binary string digits decrease at least 2. This process continues several times, and eventually you can reach the minimum value of 1. The Collatz function shows that the Collatz conjecture holds.
We have known that mathematics formula
when
, there is a formula
The substantive characteristics is that the powers of 2 must be continuous natural numbers, this is the key to our proof method to solve the Collatz conjecture.
Proof. (i) If a given natural number is a pure even, it requires only an iteration of the k times Collatz function to reach the smallest natural number 1, that is the conjecture holds.
(ii) When a natural number n is not pure even, that is, when it is either pure odd or mixed odd (a mixed even is eliminated since the end-substring 0 can become an odd number; hence, we do not include this case).
Given an odd number
n, which can be expressed as follows in algebraic notation:
, then
If the length of the end-substring of n is 1, the length of end-substring of the binary string is either 1 or bigger than 1.
Two formulas, and above (5.16), can be used to modify the structure of the binary string n to the binary string . That is, there is an appended term in two equivalent terms, and . When the zeros in the middle of a binary string are compared to a bubble, it means that these zeros are gradually being driven out of the rightmost end by . It is the same as progressively removing the bubbles hidden in the sponge using a means . Once 3n+1, 0 shifts one bit to the right, i.e., the length of the associated binary substring is reduced by one bit, when the length of the end-substring is greater than 1. The end-substring length of the binary string is either greater than or equal to 1 if the length of the end-substring of n is 1.
We shall then divide
by the last term
,
get another odd number, this is the value of reduced Collatz function (4). And so on, finitely steps after finally we get a pure even number
, this is the case in above (i), thus the Collatz conjecture hold on.
We illustrate the procedure by a mixed odd number
and hard number set in the following,
For a special class of mixed numbers, the hard number
, then its Collatz sequent result is
This means that the Collatz conjecture is valid for this case. Therefore we have proved the Collatz conjecture 1 at section 1 of this paper. □
5. Conclusion
From previous proof of the conjecture, it becomes a theorem.
Theorem For any natural number n, if it is even, divide by 2, if it is odd, multiply by 3, add 1, and so on, the result must finally reach 1.
Theorem For any positive integer n, the sequence of the Collatz function is an ultimately periodic sequence, its preperiod is a related-to n positive, and the least period , .
References
- Jeffrey, C. Lagarias. The 3x + 1 Problem and Its Generalizations. American Mathematical Monthly, Vol. 92, No. 1, 3–23(1985). [CrossRef]
- Jeffrey, C. Lagarias. The 3x+1 Problem: An Overview. arXiv:2111.02635.
- Li, T. , Yorke, J. A. Period three implies chaos. Am. Mat. Monthly, 82, 985–992 (1975). [CrossRef]
- TERENCE TAO, Almost all orbits of the Collatz map attain almost bounded values. arxiv:1909.03562v5, 2022,1,15.
- Alf Kimms. The structure of the 3x+1 problem, Electronic Journal of Graph Theory and Applications. 9(1)(2021)157–174.
- Richard Kaufman. A reduced forward Collatz algorithm: How binary strings change their length under 3x+1. arXiv:2301.07466.
- Patrick Chisan Hew. Collatz on the Dyadic rdtional in [0.5,1) with fractals: How bit strings change their length under 3x+1. Experimental Mathematics, 2021, 30(4): 481–488. [CrossRef]
- G. Ganesan. Linear recurrences over a finite field with exactly two periods. Advances In Applied Mathematics 127(2021)102180. [CrossRef]
- D. Quijada. Periods of linearly recurring sequences. Bachelor thesis, Washington and LeeUniversity, 2015.
- Leonel Sternberg, Predictable trajectories of the reduced Collatz iteration and a possible pathway to the proof of the Collatz conjecture(Version 2), arXiv:2209.14230.
- F. Jishe, Proof the Collatz Conjecture in Binary Strings. [CrossRef]
- Eldar Sultanow, Christian Koch, Sean Cox, Collatz Sequences in the Light of Graph Theory. [CrossRef]
- Bart Snapp, Matt Tracy, The Collatz Problem and Analogues. Journal of Integer Sequences, Vol. 11 (2008), Article 08.4.7.
- Petro Kosobutskyy, Comment from article “Two different scenarios when the Collatz Conjecture fails”, Gen. lett. Math., 12(4) (2022),179-182.
- Bulent Sukusu, Proof of the Collatz Conjecture, Theoret. Math. App., 13(3) (2023),1-17.
- F. Jishe, Proof the Collatz Conjecture by a new view of natural numbers. [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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).