3.1. The Iteration of Piecewise Function
A piecewise function is a mathematical function that is defined by different rules or formulas over different intervals or regions of its domain. Piecewise functions are commonly used to model situations where different rules apply in different circumstances or to account for discontinuities in a function’s behavior. The Collatz function, denoted by , can be expressed as a piecewise function, with separate cases for odd and even numbers.
An iterative function is a function that is repeatedly applied to its own output. In other words, the output of the function is used as the input for the next iteration of the function. Iterative methods involve using iterate functions to repeatedly update an initial estimate or solution until a desired level of accuracy is achieved. Iteration means repetition, and with more repetition, things will change in nature.
In order to proof the Collatz conjecture 1 in
Section 1, finding the beingness and finiteness of the number
m in the expression
for a natural number
n is the main challenge. Iteration is the key to Collatz conjecture, and although there are only two cases where piecewise functions are combined with iterative functions, the result is difficult to control.
For given natural k, the iterative formula for a given natural number n, we know that k is the length of the binary string of n minus 1, it is also the level of the full binary tree. In decimal notation, we represent n, which obscures the iteration process of odd- and /or even-number functions. When n is represented as a binary string, it can be used to understand how odd- and /or even-number functions iterative work.
3.2. The Collatz Function and the Reduced Collatz Function
As the Collatz function
(1), we can get the result about the
and
The iteration of the Collatz function is the key topic in discuss the proof procedure, we have the reduced Collatz function [2,3,6]
where
m is the number of the zeros of the end substring of the number
, and
r is the number of the zeroe of the end-substring of the number
n.
There are many different points for piecewise functions when comparing the Collatz function with the inverse function , and the reduced Collatz function with the inverse function iteration .
1) For any natural number x function and are strictly monotonically decreasing.
2) The function is increasing in the case x is an odd, in the other case, is decreasing.
3) The function
that describes the procedure of the iterative function of
, is wavy when
x is a pure or mixed odd number and decreases when
x is pure even or mixed even.
|
|
|
|
|
⋯ |
|
|
|
|
|
⋯ |
|
↓ |
|
|
|
⋯ |
|
|
|
|
|
⋯ |
|
|
|
|
|
⋯ |
|
|
|
|
|
⋯ |
|
|
|
|
|
⋯ |
|
|
|
|
|
⋯ |
The function
describes the iterative procedure of
. The wavy function is increasing at first, then goes through one or more decreasing processes, either as "increase – decrease – increase" or "increase – decrease ⋯ decrease – increase." For example, the iterated sequence of Collatz functions is plotted in
Figure 4 and 5, where the starting values are pure odd
and mixed odd numbers
, respectively.
For a given natural number n, the Collatz iterative function converges to 1 in a finite number of steps and cycles indefinitely between numbers 1, 4, and 2 for an infinite number of iterations.
3.3. Using Binary String to Explore the Collatz Conjecture
If the Collatz function (1) is expressed in binary form as
The characteristics of the left side and right side and the penultimate bit of the binary string are illustrated by the
Figure 6.
Then we use binary string to illustrate the reduced Collatz function (4) as the follows,
where × is 0 or 1.
We adopt the binary representation method for specific natural numbers and use mathematical experimental methods to obtain their Collatz sequences. The following are three kinds forms to describe the Collatz sequences respectively: (i)algebra expression, (ii)tabular, and (iii)scratch paper. We use the binary representation method for specific natural numbers and employ mathematical experimental techniques to generate their Collatz sequences. The Collatz sequences for the numbers are presented in three different formats:
(A) For the formula
, we apply the mathematical software Maple get the sequence
are algebra expression, and in decimal and binary as the follows.
| |
|
10027 |
|
| 10027=(10011100101011)
|
(111010110000010)
|
(11101011000001)2
|
|
| 15041=(11101011000001)
|
(1011000001000100)
|
(10110000010001)2
|
|
| 11281=(10110000010001)
|
(1000010000110100)
|
(10000100001101)2
|
|
| 8461=(10000100001101)
|
(110001100101000)
|
(110001100101)2
|
|
| 3173=(110001100101)
|
(10010100110000)
|
(1001010011)2
|
|
| 595=(1001010011)
|
(11011111010)
|
(1101111101)2
|
|
| 893=(1101111101)
|
(101001111000)
|
(101001111)2
|
|
| 335=(101001111)
|
(1111101110)
|
(111110111)2
|
|
| 503=(111110111)
|
(10111100110)
|
(1011110011)2
|
|
| 755=(1011110011)
|
(100011011010)
|
(10001101101)2
|
|
| 1133=(10001101101)
|
(110101001000)
|
(110101001)2
|
|
| 425=(110101001)
|
(10011111100)
|
(100111111)2
|
|
| 319=(100111111)
|
(1110111110)
|
(111011111)2
|
|
| 479=(111011111)
|
(10110011110)
|
(1011001111)2
|
|
| 719=(1011001111)
|
(100001101110)
|
(10000110111)2
|
|
| 1079=(10000110111)
|
(110010100110)
|
(11001010011)2
|
|
| 1619=(11001010011)
|
(1001011111010)
|
(100101111101)2
|
|
| 2429=(100101111101)
|
(1110001111000)
|
(1110001111)2
|
|
| 911=(1110001111)
|
(101010101110)
|
(10101010111)2
|
|
| 1367=(10101010111)
|
(1000000000110)
|
(100000000011)2
|
|
| 2051=(100000000011)
|
(1100000001010)
|
(110000000101)2
|
|
| 3077=(110000000101)
|
(10010000010000)
|
(1001000001)2
|
|
| 577=(1001000001)
|
(11011000100)
|
(110110001)2
|
|
| 433=(110110001)
|
(10100010100)
|
(101000101)2
|
|
| 325=(101000101)
|
(1111010000)
|
(111101)2
|
|
| 61=(111101)
|
(10111000)
|
(10111)2
|
|
| 23=(10111)
|
(1000110)
|
(100011)2
|
|
| 35=(100011)
|
(1101010)
|
(110101)2
|
|
| 53=(110101)
|
(10100000)
|
(101)2
|
|
| 5=(101)
|
(10000)
|
(1)2
|
|
(B) For the formula
, we get the sequence
are in decimal and binary as the following scratch paper as in
Figure 7. The horizontal arrow line means the 3n+1 operation, and Vertical arrow line meams the n/2 operation. There 6
denoted by
where
, and 13
by
where
in algebra expression.
We observe the procedure of iterative Collatz function, namely the reduced Collatz function (7), i.e., the Collatz sequences, which we pay close attention to the zeros in the right-hand side of binary strings of an even number and the end-substring between the first 0 encountered from right to left which is made of 1. For instance, for 1011001 the end-substring is 1, for 1011001111 the end-substring is 1111, for 11111 the end-substring is itself 11111. There are many properties of the end substrings.
In the Collatz sequence represented by a binary string looking backward from n:
(1) If there are several zeros at the end, remove one at a time until all zeros are deleted, and the number becomes an odd.
(2) When the number of bits at the end-substring is r (r>1), the adjacent binary string must have only a single zero at the end. Remove this zero to make it the next odd number which , and the number of bits at the end-substring is , continues these steps until only a 1 is left at the end.
(3) If the number of digits at the end-substring is only one, the adjacent binary string must end with several zeros. Deleting these zeros in sequence will result in the following two scenarios at the end of the binary string: (i) one bit 1, (ii) more than one bit 1.
Since the iterative process of the piecewise function (7) is the key to solving the problem, and either result is odd, so we only discuss the odd numbers to discuss the Collatz squences.
In papers [9,10], the Sarkovskii order is defined for the set of natural numbers. By relocating the last row number to the first column, we obtain a modified version of the Sarkovskii order as follows:
In the first row, its are odd numbers from left to right, that is , from the second row, each number is multiplying each number in its previous row by 2, etc.
We show the Collatz squence of 27 in the modified Sarkovskii order of the natural set, shown in
Figure 8.
In the scratch paper, we find that: (i) For any odd number n, the graph is made from two types of components, when the length of the end-substring is bigger than one, its is left hook and the length of the end-substring is one, its right hook. (ii) There is not point of intersection.