Generalized 3x + 1 Mappings : searching for cycles
Robert Tremblay

TL;DR
This paper investigates the existence of cycles in generalized 3x + 1 mappings, establishing conditions for their presence and developing a method to identify such cycles across various families.
Contribution
It introduces a systematic approach to determine and find cycles in generalized 3x + 1 mappings, expanding understanding beyond the classical case.
Findings
Conditions for cycle existence established
Method for finding cycles developed
Applicable to multiple families of mappings
Abstract
We determine the conditions for the existence or not of cycles for several families of generalized 3x + 1 mappings and develop a method to find them.
| Main nodes | |||||||
| Secondary nodes | |||||||
| PP | PG | k | ln (C) | ||||
| 1 | 1 | 0.66666666666667 | 0 | 1 | 1 | ||
| 1 | 1 | 1.33333333333333 | 1 | 0 | 1 | ||
| 2 | 1 | 0.88888888888889 | 1 | 1 | 2 | 0.9067673 | |
| 3 | 1 | 1.18518518518519 | 2 | 1 | 3 | 1.2335544 | |
| 2 | 1.05349794238683 | 3 | 2 | 5 | 2.8207519 | ||
| 4 | 1 | 0.93644261545496 | 4 | 3 | 7 | 2.8773089 | |
| 2 | 0.98654036854514 | 7 | 5 | 12 | 5.0150589 | ||
| 5 | 1 | 1.03931824834386 | 10 | 7 | 17 | 4.3258524 | |
| 2 | 1.02532940775684 | 17 | 12 | 29 | 5.2893919 | ||
| 3 | 1.01152885180861 | 24 | 17 | 41 | 6.4145496 | ||
| 6 | 1 | 0.99791404625731 | 31 | 22 | 53 | 8.3733287 | |
| 7 | 1 | 1.00941884941434 | 55 | 39 | 94 | 7.4449229 | |
| 2 | 1.00731324838746 | 86 | 61 | 147 | 8.1439169 | ||
| 3 | 1.00521203954693 | 117 | 83 | 200 | 8.7894147 | ||
| 4 | 1.00311521373084 | 148 | 105 | 253 | 9.5380817 | ||
| 5 | 1.00102276179641 | 179 | 127 | 306 | 10.841002 | ||
| 6 | 1 | 0.99893467461992 | 210 | 149 | 359 | 10.958906 | |
| 2 | 0.99995634684222 | 389 | 276 | 665 | 14.7706488 | ||
| 9 | 1 | 1.00097906399185 | 568 | 403 | 971 | 12.0393806 | |
| 2 | 1.00093536809484 | 957 | 679 | 1,636 | 12.6066976 | ||
| … | |||||||
| 22 | 1.00006185061131 | 8,737 | 6,199 | 14,936 | 17.533998 | ||
| 23 | 1.00001819475356 | 9,126 | 6,475 | 15,601 | 18.801125 | ||
| trajectories | |||
|---|---|---|---|
| 53 | 0.49895703128654 | ||
| 0.997914046257308 | |||
| 1.99582809251462 | |||
| 3.99165618502923 | |||
| trajectories | |||
|---|---|---|---|
| 17 | 1.03931824834385 | ||
| 29 | 1.02532940775684 | ||
| 41 | 1.01152885180861 | ||
| 94 | 1.00941884941434 | ||
| Main nodes | |||||||
| Secondary nodes | |||||||
| PP | PG | k | ln (C) | ||||
| 1 | 1 | 0.50000000000000 | 0 | 1 | 1 | ||
| 1 | 1 | 1.500000000000000 | 1 | 0 | 1 | ||
| 2 | 1 | 0.75000000000000 | 1 | 1 | 2 | 0.3704306 | |
| 3 | 1 | 1.12500000000000 | 2 | 1 | 3 | 1.9565895 | |
| 4 | 1 | 0.84375000000000 | 3 | 2 | 5 | 1.9956945 | |
| 2 | 0.94921875000000 | 5 | 3 | 8 | 3.6882524 | ||
| 5 | 1 | 1.06787109375000 | 7 | 4 | 11 | 3.7935996 | |
| 2 | 1.01364326477050 | 12 | 7 | 19 | 5.9107304 | ||
| 6 | 1 | 0.96216919273138 | 17 | 10 | 27 | 5.2131556 | |
| 2 | 0.97529632178184 | 29 | 17 | 46 | 6.1801493 | ||
| 3 | 0.98860254772961 | 41 | 24 | 65 | 7.3067428 | ||
| 7 | 1 | 1.00209031404109 | 53 | 31 | 84 | 9.2663084 | |
| 8 | 1 | 0.99066903751619 | 94 | 55 | 149 | 8.3375594 | |
| 2 | 0.99273984691538 | 147 | 86 | 233 | 9.0366771 | ||
| 3 | 0.99481498495653 | 200 | 117 | 317 | 9.6822330 | ||
| 4 | 0.99689446068787 | 253 | 148 | 401 | 10.4309339 | ||
| 5 | 0.99897828317652 | 306 | 179 | 485 | 11.7338762 | ||
| 9 | 1 | 1.00106646150859 | 359 | 210 | 569 | 11.8517958 | |
| 2 | 1.00004365506344 | 665 | 389 | 1,054 | 15.6635314 | ||
| 8 | 1 | 0.99902189363685 | 971 | 568 | 1,539 | 12.9322606 | |
| 2 | 0.99906550600100 | 1,636 | 957 | 2,593 | 13.4995787 | ||
| … | |||||||
| 22 | 0.99993815321363 | 14,936 | 8,737 | 23,673 | 18.426880 | ||
| 23 | 0.99998180557715 | 15,601 | 9,126 | 24,727 | 19.694008 | ||
| trajectories | |||
|---|---|---|---|
| 27 | 0.320723064243793 | ||
| 0.96216919273138 | |||
| 2.88650757819414 | |||
| 8.65952273458242 | |||
| 46 | 0.97529632178194 | ||
| 65 | 0.988602547729613 | ||
| trajectories | |||
|---|---|---|---|
| 11 | 0.11865234375 | ||
| 0.35595703125 | |||
| 1.06787109375 | |||
| 3.20361328125 | |||
| 19 | 1.0136932647051 | ||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBenford’s Law and Fraud Detection
Generalized Mappings : searching for cycles
Robert Tremblay
Boucherville, Canada (Québec),
Abstract
We determine the conditions for the existence or not of cycles for several families of generalized mappings and develop a method to find them.
1 Introduction
Mappings can be define on integers represented by functions such that each element of the set is connected to a single element of this set. These functions consist of two or more integer transformations on themselves. The two best known generate the original Collatz problem and the problem [3].
Let be an integer. The 3 transformations that give rise to the original Collatz problem are for all integers where is any integer, positive, negative or zero, for all integers and, for all integers . The 2 transformations that apply in the problem are and respectively for even and odd integers.
The mappings generating these two problems are part of a much larger family, the generalized mappings defined by Matthews [4]. The successive application of the functions that represent these mappings for any integer produces a sequence of integers called a trajectory. If we find the starting integer after operations, we have a cycle of length . The cycle is then repeated to infinity. The two problems mentioned above are defined from the convergence or not of the trajectories towards the cycles. When studying the families of generalized mappings, we observe a point that appears common to all families, that the number of cycles seems limited. In the original Collatz problem the 9 known cycles are closed (there are no integers other than those included in the cycles which converges towards these cycles), which leads to the conjecture that all these other integers are in infinite trajectories (divergence). In the other known problem, only one cycle for natural numbers have found, , and the trajectories of all other positive integers seem to converge towards this cycle (opened cycle), leading to the famous conjecture claiming that the trajectories of all natural numbers converge towards this cycle.
Using computer programs, several cycles were determined [7] in many families of the generalized mappings. Various conjectures concerning the number of these cycles, as well as the convergence or not of the trajectories, have also been stated. There are not really any methods that have been developed to determine the cycles, apart from the result of the work done by Atkin [1] when studying the function related to the original Collatz problem.
In this paper we determine under which conditions a cycle can exist or not and develop a method to find them, when studying the function that generates the infinite permutations (original Collatz problem). Thereafter, we apply this method to the function related to the problem and finally, to some mapping families studied by Carnielli [2]. In the course of the developments, we come to a somewhat unexpected result that directly links the original Collatz problem and the problem.
2 Infinite permutations
Let the function be defined as follows [3]
[TABLE]
Consider the infinite permutation
[TABLE]
The iterative application of the function to natural numbers gives rise to sequences of positive integers, called trajectories,
[TABLE]
with , and .
The study of the iterates of is called the original Collatz problem. We talk about infinite permutations because when we apply the function to all positive integers a first time, we find again each of the natural numbers, but in a different order, and so on. The first transformation gives the natural integers , the second , and the third where is any integer, positive or zero.
A sequence of integers forms a loop when there exists a such that
[TABLE]
If all integers in the sequence are different two by two, we have by definition a cycle of length . Generally, we note the sequence characterizing a cycle starting with the smallest integer.
The first natural number forms a cycle noted . The following two numbers generate the cycle with a period . Two other cycles are known, namely
[TABLE]
respectively, with the periods and .
If we extend the problem from the set of natural numbers to the set of integers, we add the cycles [4]
[TABLE]
The cycles are the same with the negative integers because the function is odd, . In addition, the cycles are closed; there are no integers other than those included in the cycles which converges towards these cycles.
The general expression giving the result of iterations of the function on an integer is
[TABLE]
where
[TABLE]
and
[TABLE]
with the number of transformations of the form and , transformations of the other two kinds, .
Unlike parameter , depend on the order of application of the transformations. Nevertheless, the maxima of this parameter are easily calculated according .
Theorem 2.1
The absolute value of the negative or positive maximum of parameter is
[TABLE]
Proof.
We have the maxima after iterations when the transformations precede the transformations. So, for ,
[TABLE]
and with the same denominator,
[TABLE]
Adding and subtracting at the first term to the numerator, we have
[TABLE]
Adding this result at the second term to the numerator,
[TABLE]
By continuing this process until the last to the numerator, leads to the expected result.
The search for conditions that can generate a cycle leads to the analysis of the parameters and appearing in the equation (3). A brief analysis of this equation when the term is small in front of , allows us to assert that can be achieved for close to 1. In the following, from results obtained by Atkin [1], we will show that the knowledge of the parameter in the neighborhood of 1, determine conditions for the existence or not of a cycle.
As that follows is very important, we recall the demonstration performed by Atkin with more details. Our final formulation will be slightly different so as to highlight the parameter on which is based our subsequent analysis.
Consider the infinite permutation (1) in the form
[TABLE]
applied on natural numbers, where is any integer positive. Of course, both forms lead to the same results. Mainly, the infinite permutation in the form (7) allows us to easily built 5 other families of infinite permutations. We will use this property a little further, after the application of the theorem 2.3.
Suppose that there is a cycle of a period , and that is its least term. If there are transformations of the form and transformations of the other two kinds with the integers , then
[TABLE]
With the definition (4) of
[TABLE]
Also, for all , , and because ,
[TABLE]
and
[TABLE]
Hence,
[TABLE]
and of the equation (9),
[TABLE]
By applying the natural logarithm,
[TABLE]
Now, for and using the Maclaurin series
[TABLE]
[TABLE]
[TABLE]
By replacing by in (17), we have
[TABLE]
For ,
[TABLE]
If we had chosen (knowing that the first 7 natural numbers are already in cycles), we would have
[TABLE]
by putting in the factor .
Replacing by in (15),
[TABLE]
Finally (14) becomes,
[TABLE]
and
[TABLE]
The condition on appears in the following inequality
[TABLE]
For a given , Atkin found
[TABLE]
where the logarithms are in the natural base. The inequality is valid for m . For a given , we take the value of which gives the minimum of the denominator. So, we have the maximum of for this .
By using of the equation (4), and replacing the parameter by at the numerator, the condition (24) reduces to that of Atkin (25). For a given , the inequalities (24) and (25) indicate that there can be no cycles beyond a certain . The smallest integer of the cycle cannot exceed this value. These inequalities therefore impose a limit on . Note that increases as is close to 1. Conversely, decreases very rapidly as moves away from 1.
We will see that the analysis of near 1 gives not only the maxima of , but also the most probable trajectories (in fact, the conditions on and for its trajectories) to the existence of cycles.
Here, we could directly present the theorem 2.3 and apply the resulting method which determine the values of and giving the maxima of . We prefer to adopt a more inductive reasoning. We first analyze how the parameter growing near 1 by adding one of the 3 transformations at a time (while remaining close to 1). Thereafter, the theorem 2.3 provides a method to find the minima of in the inequality (24) and therefore, the maxima of .
First, let us a write a theorem giving the range in which the parameter is located near 1.
Theorem 2.2
The values of parameter close to 1 are between and .
Proof.
The condition that remains above 1 is that , otherwise .
If , then
[TABLE]
The condition that remains below 1 is that , otherwise .
If , then
[TABLE]
Let be smaller than 1 (”Plus Petit que 1”) and larger than 1 (”Plus Grand que 1”), while remaining close to 1 (by theorem 2.2). Starting with and we have the following first results:
[TABLE]
The shaded transformations correspond to giving the maxima of as we will see in he next theorem. We note these , or .
The intermediate values between two consecutive are smaller than the two , but greater than (theorem 2.2).
The intermediate values between two consecutive are greater than the two , but smaller than (theorem 2.2).
Now, we present an method allowing us to determine the conditions on , and giving the values of parameter corresponding to the maxima of .
Theorem 2.3
The values of (4) calculated from the successive products of and correspond to the maxima of and gradually get closer to 1 with the increase of .
Proof.
Let and . We have the product
[TABLE]
which leads to
[TABLE]
and (except for the first two and ). Indeed, the first and in base 3 are
More generally, for ,
with , and .
The exponent, in absolute value, of the last term (the smallest) of each (or ) is equal to (or ), so the number of transformations .
Thus, the successive products of give values which approach more and more of without ever reaching it and according to equation (24), we find the maxima of , which leads to the following algorithm.
Algorithm
Start with and ; and .
The first product is , and . This operation determines a new , .
The product of this new with gives a new , , and . The new is . Then, and . The product identify a new , and .
By repeating this process we get the pairs that give the and the corresponding to the maxima of .
Define a node as the set of consecutive maxima ( or ). Let the parameter identifying the sequence of these sets (primary or main nodes) and each element of its sets (secondary nodes). Then the notation represent all the nodes with identifying both, the first and the first .
Results
The results for the first nine nodes are presented in the table 1.
The pair of integers obtained by the preceding algorithm determines the maxima of . Let be the least integer of a trajectory generated by the transformation (1) or (7) with a given . Then, the only possible cycles are those for . As we will see, these combinations also seem to determine the conditions for the most probable trajectories for the existence of cycles.
The of the 4 known cycles for the natural numbers are exactly equal to those of the nodes and of the table for the lenghts and .
In the table 2 we give some examples of trajectories for the node with and ( is close to 1). We present two trajectories for this node and each couple , and around of the node .
In the next table 3 we have chosen four other cases of close to 1 derived of the algorithm, so , , and corresponding respectively to the nodes , , and .
Then, the cycles seem more probable for close to 1 and this probability decreases very rapidly as moves away from 1.
There are some interesting families of infinite permutations that are built from the permutation of function (7). Then, we have six permutations in starting with this function,
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
The third function generates, among others, a cycle of period for the smallest term . This period is associated with the first secondary node of the node 7, namely .
In the other form the function is
[TABLE]
or more simply, after a first application of on the natural numbers
[TABLE]
Also, there is a cycle for (), namely . This case does not appear in table 1, but , which is close to 1.
3 Problem 3x + 1
Let us apply the search method of the cycles as developed in the iterative application of the function to another similar function.
Let the function be defined as follow [3]
[TABLE]
The iterative application of on the integers generate the different trajectories. The result is the same as using the function
[TABLE]
Suppose that there is a cycle of a period , and that is its least term. If there are transformations of the form and transformations of the other kind with the integers , then
[TABLE]
For the positive integers,
[TABLE]
For the negative integers,
[TABLE]
The condition to the existence of a cycle is given by the expression
[TABLE]
This inequality is valid for . is given by
[TABLE]
The values of parameter close to 1 are between 1/3 and 3.
The algorithm developed in the previous section generates the table 4. The pair of integers determines the maxima of . Let be the least integer of a trajectory generated by the transformations (33) or (34) with a given . Then, the only possible cycles are those for . These combinations also seem to determine the conditions for the most probable trajectories for the existence of cycles.
It is interesting to note that all and obtained by the successive products of (except ) are the reciprocals of those obtained in the infinite permutations. , , , , , in the problem and , , , in the problem of infinite permutations. The distribution of the primary and secondary nodes is then identical. For example, in the table 1 (infinite permutations), node contains secondary nodes, exactly like node in the table 4. Therefore, there is a direct link between two problems that appear when looking for the maxima of , or if we want, when searching for the most probable trajectories to existence for a cycle.
The general expression giving the result of iterations of the function on an integer is
[TABLE]
Because is always positive, the possible cycles for the positive integers are values , and for the negative integers we have the possible cycles for , with and giving close to 1.
For the positive integers we have the cycle with the length and corresponding to the node in the table.
For the zero and negative integers we have the cycles , , and the long cycle [4]
[TABLE]
with lengths , and .
These last values of are in table for nodes (PP = 0.5 and PG = 1.5), and .
In the table 5 and 6 we give some examples of trajectories respectively for positive integers and negative integers. Also, the cycles seem more probable for close to and this probability decreases very rapidly as moves away from .
4 Generalized 3x + 1 mappings
Defining the generalized Collatz mapping or generalized mapping [4]
[TABLE]
be a positive integer and be non-zero integers. Also for , let satisfy .
The original Collatz mapping corresponds to parameter choices , , , , and . The mapping corresponds to the choices , , , and .
Carnielli [2, 5] has proposed two natural generalizations of Collatz Problem which are the special cases of a generalized mapping. Let , for , and and for
[TABLE]
Let , for , and and for
[TABLE]
Keith Matthews developed the last transformation which is a generalization of the mapping of Lu Pei [6] with .
The conditions for the existence of a cycle in the generalization (42) or (43) are similar to the conditions (8) of the original Collatz problem or the condition (35) of the problem, then
[TABLE]
correspond to the number of transformations for .
Also, we develop the condition on the least term of cycle and find
[TABLE]
where is a parameter and is given by
[TABLE]
We have the maxima for when is close to 1 and we can apply the algorithm developed in this paper.
Carnielli has produced two tables for and giving the least term of cycles and the cycle lengths.
We can verify a very important result : all cycle lengths correspond to some values of close to 1 and we find them with our algorithm.
We can apply our algorithm because there are two different terms in equation (46). It is more complicated when we have three or more different terms giving .
For example, let the generalized mapping [4] be
[TABLE]
Matthews has found cycles (lengths in parentheses), starting at values 0(1), -3(1), 2(1), 3(2), 6(1747), -18(2), -46(34), -122(8), -330(4), -117(4), -137(4), -186(4), -513(1426), -261(4), -333(4), 5127(14), -5205(60).
It is probably possible to prove that the condition on the least term of a cycle is proportional to the inverse of with
[TABLE]
The maxima of stands for close to 1.
The six cycles of period correspond to and
[TABLE]
For example, the cycle starting with is , where the order of the transformations is .
The cycle of period has and . The cycle of period has , , , and . The cycle of period corresponds to , , , , and .
5 Conclusion
For several families of the generalized mappings which include 2 different terms , we have been able to construct a quantity such that the least integer of a trajectory generating a cycle is subjected to the condition . These families have 2 types of transformations characterized by the quantities . is the number of transformations of one kind and the set of transformations of the other kinds, with the total number of transformations. We then built an algorithm giving the values corresponding to the maxima of . Moreover the conditions seem to be those determining the possible cycles.
So, we have developed a method to determine under which conditions there is or not cycle for several families of the generalized mappings.
At the end of the paper, we discussed a case with 4 terms . As we have noted, the 17 known cycles are found for the combinations generating a close to 1. However, we have not demonstrated that there a quantity as in the previous cases and, if we can built an algorithm determining the maxima of .
An interesting question which remains outstanding and that we raised in the introduction, is the number of cycles is limited or not ?
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. O. L. Atkin, Comments on problem 63-13*, Siam review 8 (1966) 234–236.
- 2[2] W. Carnielli, Some natural generalizations of the Collatz problem, Applied Mathematical E-notes 15 (2015) 207–215.
- 3[3] J. C. Lagarias, The 3x+1 problem and its generalizations, Amer. Math. Monthly 92 (1985) 3–23.
- 4[4] K. R. Matthews, Generalized 3x+1 mappings: Markov chains and Ergodic theory, In the ultimate challenge: The 3x+1 problem (2010) 79–103.
- 5[5] K. R. Matthews, h t t p : / / w w w . n u m b e r t h e o r y . o r g / p h p / c a r n i e l l i . h t m l http://www.numbertheory.org/php/carnielli.html .
- 6[6] K. R. Matthews, h t t p : / / w w w . n u m b e r t h e o r y . o r g / p h p / L u _ P e i 0 . h t m l http://www.numbertheory.org/php/Lu\_Pei 0.html .
- 7[7] K. R. Matthews, h t t p : / / w w w . n u m b e r t h e o r y . o r g / p h p / c o l l a t z . h t m l http://www.numbertheory.org/php/collatz.html .
