Next Article in Journal
Optimisation of Fuzzy Reverse Logistics Networks for Express Packaging Considering Recycling Rates
Previous Article in Journal
Intermittent Control for Synchronization-like Behavior of State-Dependent Impulsive Neural Networks via Interval–Impulse Differential Inequality
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Parity-Based Level-Set Approach to the Collatz Conjecture

1
Department of Mathematics, College of Science and Technology, Temple University Japan, Tokyo 154-0004, Japan
2
Department of Mathematics and Computer Science, College of Arts, Science, and Education, Coppin State University, Baltimore, MD 21216, USA
*
Author to whom correspondence should be addressed.
Mathematics 2026, 14(10), 1763; https://doi.org/10.3390/math14101763
Submission received: 24 March 2026 / Revised: 5 May 2026 / Accepted: 15 May 2026 / Published: 20 May 2026
(This article belongs to the Section E: Applied Mathematics)

Abstract

The Collatz conjecture concerns the iteration of the map f ( n ) = 3 n + 1 for odd n and f ( n ) = n / 2 for even n. In this paper, we study the level sets l x = { n N L ( n ) = x } , where L ( n ) denotes the Collatz length. Using the parity representation of Collatz trajectories, we partition each l x according to the number of odd steps and analyze the corresponding means μ x , k . Under a natural scaling assumption, these means satisfy an approximate geometric progression, so that log μ x , k is approximately linear in k. Computations for n 100 , 000 and 10 x 50 show highly stable regression parameters and near-perfect linear fits.
MSC:
11B25; 62E10; 62J05

1. Introduction

The Collatz conjecture, also known as the 3 x + 1 problem, is one of the most well-known unsolved problems in mathematics. It concerns the iteration of the map f : N N defined by
f ( n ) = 3 n + 1 , if n is odd , n / 2 , if n is even .
The Collatz problem has been studied from several viewpoints, including analytic estimates, probabilistic arguments, computational verification, and structural reformulations. A comprehensive overview of the problem and its major developments is given by Lagarias [1], who discusses analytic estimates, probabilistic models, computational verification, and structural interpretations of Collatz trajectories. Krasikov and Lagarias [2] developed analytic bounds using difference inequalities, showing how probabilistic and inequality-based methods can yield nontrivial information about the distribution of Collatz trajectories. Tao [3] proved that almost all orbits of the Collatz map attain almost bounded values, providing a major probabilistic advance in understanding typical orbit behavior. Another important line of research focuses on the structure of trajectories through cycle lengths, directed graphs, and finite state representations. Eliahou [4] obtained lower bounds on nontrivial cycle lengths, contributing to the study of possible periodic behavior in Collatz dynamics. From a graph-theoretic viewpoint, Andaloro and, later, van Laarhoven and de Weger investigated graph-based descriptions of Collatz trajectories, including directed graph models and connections with De Bruijn graphs, making it possible to study their iterative behavior through combinatorial and dynamical patterns [5,6]. Conway’s (see [7]) foundational work highlighted the complex and potentially unpredictable nature of generalized Collatz iterations, showing how simple recursive rules can generate highly nontrivial computational behavior. A clustering perspective on the Collatz conjecture has also been proposed to study [8] structural regularities among Collatz trajectories and to highlight pattern-based relationships in their iterative behavior. Motivated by these structural approaches, we study the level sets l x through the parity patterns of the corresponding trajectories.
Starting from a positive integer n, the associated Collatz sequence is
n , f ( n ) , f ( 2 ) ( n ) , f ( 3 ) ( n ) , ,
where f ( k ) ( n ) denotes the k-th iterate of f. The Collatz conjecture asserts that for every n N , there exists a finite integer k such that
f ( k ) ( n ) = 1 .
The smallest such k is called the Collatz length of n, and we denote it by
L ( n ) = min { k N f ( k ) ( n ) = 1 } .
For each integer x 1 , we define the level set
l x = { n N L ( n ) = x } ,
which consists of all positive integers whose trajectories reach 1 after exactly x iterations.
Level sets of Collatz lengths have been investigated from various perspectives, including probabilistic models, analytic bounds, and large-scale computational verification [9,10,11,12]. In this paper, we study the structure of the sets l x through the parity patterns of the corresponding Collatz trajectories.
For each integer n with Collatz length L ( n ) = x , we associate a parity vector
p ( n ) = ( p 0 , p 1 , , p x 1 ) { 0 , 1 } x ,
where
p t = 1 , if the t - th iterate is odd , 0 , if the t - th iterate is even .
Thus, each element of l x is encoded by a binary sequence of length x that records the parity structure of its trajectory.
A fundamental quantity derived from this representation is the number of odd steps,
k ( n ) = t = 0 x 1 p t ,
which counts how many times the odd transformation 3 n + 1 occurs in the trajectory of n. For a fixed length x, this leads naturally to the subsets
S x , k = { n l x : k ( n ) = k } ,
which partition the level set l x according to odd-step count. We denote the mean of each such subset by
μ x , k = 1 | S x , k | n S x , k n .
The main idea of this paper is that the parity representation provides a natural framework for understanding the numerical distribution of integers inside each level set l x . Heuristically, if a trajectory of length x contains k odd steps, then its starting value is expected to scale approximately like
n C ( p ) 2 x 6 k ,
where C depends on the specific parity pattern of the trajectory. This suggests that the means μ x , k should exhibit an approximate geometric behavior as functions of k.
Motivated by this observation, we develop a statistical analysis of the parity classes S x , k . We prove a basic mean bound under a natural scaling hypothesis, derive bounds for the successive ratios μ x , k + 1 / μ x , k , and present numerical results showing that the logarithms of these means are very well approximated by linear functions of k. These results indicate that the odd-step count is a useful structural parameter for describing the distribution of integers within the level sets l x .
For n l x , let
0 t 1 < t 2 < < t k x 1
denote the positions of the odd steps in the parity code of n. It is convenient to introduce the trajectory-dependent quantity
C ( p ) = n 6 k 2 x ,
which depends only on the parity pattern p of the trajectory. The following lemma gives an exact expression for n and hence for C ( p ) .
Lemma 1.
Let n l x , and let t 1 < t 2 < < t k be the positions of the odd steps in its parity code. Then,
n = 2 x k 3 k r = 1 k 2 t r + 1 r 3 r .
Equivalently,
n = C ( p ) 2 x 6 k ,
where
C ( p ) = 1 r = 1 k 2 t r + 1 r + k x 3 k r .
Proof. 
Let
a 0 = n , a j + 1 = f ( a j ) , a x = 1
be the Collatz trajectory of n.
At each step, the update has the form
a j + 1 = 3 a j + 1 , if p j = 1 , a j / 2 , if p j = 0 .
Hence, every odd step contributes a multiplicative factor 3 and an additive term 1, while every even step contributes a factor 1 / 2 .
If the parity code contains exactly k odd steps, then the total multiplicative contribution from a 0 = n to a x is
3 k 2 x k n .
Now consider the additive contribution coming from the r-th odd step, which occurs at position t r . After this step, there remain exactly k r odd steps and
x 1 t r ( k r )
even steps. Therefore, the additive term 1 generated at position t r contributes
3 k r 2 x 1 t r ( k r )
to the final value a x .
Since a x = 1 , summing the multiplicative and additive contributions gives
1 = 3 k 2 x k n + r = 1 k 3 k r 2 x 1 t r ( k r ) .
Multiplying both sides by 2 x k 3 k , we obtain
n = 2 x k 3 k r = 1 k 2 x k 3 k · 3 k r 2 x 1 t r ( k r ) .
Simplifying the exponents yields
n = 2 x k 3 k r = 1 k 2 t r + 1 r 3 r .
Finally, since
2 x k 3 k = 2 x 6 k ,
we may factor out 2 x 6 k and write
n = C ( p ) 2 x 6 k ,
where
C ( p ) = n 6 k 2 x .
Substituting the explicit formula for n gives
C ( p ) = 1 r = 1 k 2 t r + 1 r + k x 3 k r .
The rest of the paper is organized as follows. In Section 2, we introduce the parity classes S x , k and establish the main theoretical bounds for their means. In Section 3, we present examples and numerical results illustrating the stability of these mean ratios and the corresponding regression behavior across a range of Collatz lengths.

2. Parity Representation and Statistical Clustering

In addition to studying the numerical distribution of integers within each level set,
l x = { n N L ( n ) = x } ,
we examine the internal structure of Collatz trajectories using a binary feature representation.
Let
a 0 = n , a t + 1 = f ( a t )
be the Collatz trajectory of an integer n with length L ( n ) = x . We define the parity vector
p ( n ) = ( p 0 , p 1 , , p x 1 ) { 0 , 1 } x
by
p t = 1 , a t is odd , 0 , a t is even .
Thus, each integer n l x can be associated with a binary sequence describing the parity pattern of its Collatz trajectory. The length of this sequence equals the Collatz length x.
Example 1.
For Collatz length x = 12 , the following integers and their parity codes arise:
n L(n)Parity Code
1712100100010000
9612000001010000
10412000100010000
10612010000010000
11312100100000000
64012000000010000
67212000001000000
68012000100000000
68212010000000000
409612000000000000
A natural feature derived from the parity vector is the number of odd steps,
k ( n ) = t = 0 x 1 p t ,
which counts the total number of occurrences of the odd transformation 3 n + 1 in the trajectory of n.
In the above example, the elements of l 12 are grouped according to the value of k ( n ) as follows:
k = 3 : { 17 } , k = 2 : { 96 , 104 , 106 , 113 } , k = 1 : { 640 , 672 , 680 , 682 } , k = 0 : { 4096 } .
Thus, the number of odd steps provides a natural way to organize the integers in l x .
This can be understood heuristically from the multiplicative behavior of the Collatz map. If a trajectory of length x contains k odd steps and x k even steps, then each odd step contributes approximately a factor of 3, while each even step contributes a factor of 1 / 2 . Ignoring the additive + 1 terms in the odd steps, the overall effect on the initial value is therefore approximately
n 3 k 2 x k n = 6 k 2 x n .
Since the trajectory eventually reaches 1, this suggests the approximation
1 6 k 2 x n ,
and hence,
n C 2 x 6 k ,
where C depends on the precise parity pattern of the trajectory. The constant C accounts for the cumulative effect of the additive + 1 terms in the odd steps as well as the ordering of odd and even operations.
Taking logarithms gives
log n x log 2 k log 6 + log C ,
which shows that, for fixed length x, the logarithm of n should vary approximately linearly with the number of odd steps k.
This provides a statistical explanation for the geometric behavior of the means μ x , k . Since integers with similar values of k tend to lie in comparable numerical ranges, the means of the classes S x , k are expected to exhibit approximately constant ratios. Thus, the observed geometric behavior may be viewed as a consequence of the underlying parity structure of Collatz trajectories.
Fix x 1 and consider the level set
l x = { n N L ( n ) = x } .
For each n l x , let k ( n ) denote the number of odd steps in its Collatz trajectory.
For each admissible value k, define the subset
S x , k = { n l x : k ( n ) = k } .
Thus, the level set decomposes as
l x = k S x , k .
For each k, we define the mean value of the set S x , k by
μ x , k = 1 | S x , k | n S x , k n .
Lemma 2.
Assume there exist constants A x , B x > 0 such that for every admissible k and every n S x , k ,
A x 2 x 6 k n B x 2 x 6 k .
Then, the mean value μ x , k satisfies
A x 2 x 6 k μ x , k B x 2 x 6 k .
Proof. 
Fix k. By assumption, for every n S x , k ,
A x 2 x 6 k n B x 2 x 6 k .
Summing over all n S x , k yields
| S x , k | A x 2 x 6 k n S x , k n | S x , k | B x 2 x 6 k .
Dividing by | S x , k | , we obtain
A x 2 x 6 k 1 | S x , k | n S x , k n B x 2 x 6 k .
Remark 1.
Recall that
n = C ( p ) 2 x 6 k , C ( p ) = n 6 k 2 x ,
where C ( p ) depends on the parity pattern p of the trajectory. If one wishes to determine the sharpest constants A x and B x satisfying the hypothesis of Lemma 2, then they are given by
A x = min k min n S x , k C ( p ) = min k min n S x , k n 6 k 2 x ,
and
B x = max k max n S x , k C ( p ) = max k max n S x , k n 6 k 2 x .
Indeed, the inequalities
A x 2 x 6 k n B x 2 x 6 k f o r a l l n S x , k
are equivalent to
A x C ( p ) B x f o r a l l n S x , k .
Thus, the optimal lower and upper bounds are obtained by taking the minimum and maximum of C ( p ) over all admissible pairs ( k , n ) .
Example 2.
Consider the level set
l 12 = { 17 , 96 , 104 , 106 , 113 , 640 , 672 , 680 , 682 , 4096 } .
Grouping by odd-step count gives
S 12 , 3 = { 17 } , S 12 , 2 = { 96 , 104 , 106 , 113 } , S 12 , 1 = { 640 , 672 , 680 , 682 } , S 12 , 0 = { 4096 } .
Their means are
μ 12 , 3 = 17 , μ 12 , 2 = 104.75 , μ 12 , 1 = 668.5 , μ 12 , 0 = 4096 .
If we use the scaling law n C 2 x / 6 k , then the optimal constants are
A 12 = min k min n S 12 , k n 6 k 2 12 = 27 32 , B 12 = max k max n S 12 , k n 6 k 2 12 = 1 .
Hence, for every admissible k and every n S 12 , k ,
A 12 2 12 6 k n B 12 2 12 6 k .
Therefore,
A 12 2 12 6 k μ 12 , k B 12 2 12 6 k .
For instance, when k = 2 ,
27 32 · 2 12 6 2 = 96 μ 12 , 2 = 104.75 2 12 6 2 113.78 .
Corollary 1.
Suppose the hypothesis of Lemma 2 holds. Then, for every k,
A x 6 B x μ x , k + 1 μ x , k B x 6 A x .
Proof. 
By Lemma 2,
A x 2 x 6 k μ x , k B x 2 x 6 k
and
A x 2 x 6 k + 1 μ x , k + 1 B x 2 x 6 k + 1 .
Dividing the second inequality by the first gives
A x 2 x / 6 k + 1 B x 2 x / 6 k μ x , k + 1 μ x , k B x 2 x / 6 k + 1 A x 2 x / 6 k ,
which simplifies to
A x 6 B x μ x , k + 1 μ x , k B x 6 A x .
Theorem 1.
Suppose the hypothesis of Lemma 2 holds. Then, for every k,
μ x , k + 2 μ x , k + 1 μ x , k + 1 μ x , k B x 6 A x A x 6 B x .
Proof. 
By Corollary 1, both ratios
μ x , k + 2 μ x , k + 1 and μ x , k + 1 μ x , k
belong to the interval
A x 6 B x , B x 6 A x .
Hence, the absolute difference between them is bounded by the length of this interval; then, we have
μ x , k + 2 μ x , k + 1 μ x , k + 1 μ x , k B x 6 A x A x 6 B x .

Statistical Model for Parity-Based Clusters

The parity representation introduced in the previous section suggests that the integers in the set
l x = { n N L ( n ) = x }
can be naturally grouped according to the number of odd steps in their Collatz trajectories.
For a fixed Collatz length x, define
k ( n ) = t = 0 x 1 p t ,
where p t denotes the parity indicator defined earlier. Thus, k ( n ) counts the total number of odd steps in the trajectory of n.
The empirical analysis indicates that these means follow an approximate exponential relationship with respect to k. Specifically, the data suggest a model of the form
μ k = A e b k ,
where A > 0 and b < 0 are constants depending on the Collatz length x.
Taking natural logarithms yields the linear relation
log μ k = log A + b k .
Thus, the parameters A and b can be estimated by fitting a linear regression model to the points
( k , log μ k ) .

3. Numerical Results

To investigate the statistical structure of the level sets l x , we computed all integers
n 100 , 000
and determined their Collatz lengths. For each length x = 10 , 11 , , 50 , the set
l x = { n N L ( n ) = x }
was constructed. Integers in l x were then grouped according to the number of odd steps
k ( n ) = t = 0 x 1 p t
in their parity representation. The regression analysis is used to test whether the relationship between the cluster means μ k and the number of odd steps k follows an exponential pattern. Accordingly, for each cluster indexed by k, the mean value μ k was computed, and a linear regression of
log μ k
against k was performed. The resulting regression model has the form
log μ k = a + b k .
To summarize these numerical findings, Table 1 and Figure 1 and Figure 2 present the behavior of the regression parameters across Collatz lengths.
Table 1 shows that, across the tested lengths, the parity-based clustering is consistently pure (purity = 1.0 ) , meaning that each cluster is perfectly separated by the odd-step count in the computed data. Across all tested values of L, the linear fits were extremely strong, with coefficients of determination R 2 values that are extremely close to 1, indicating that the logarithm of the cluster means is very well approximated by a linear function of the cluster index. Moreover, the fitted slopes b are highly stable, ( 1.80 b 1.86 ). This supports the claim that the cluster means of the parity classes follow an approximate exponential trend as the odd-step count increases.
Figure 1 shows the estimated slope b as a function of the Collatz length L. The graph demonstrates that the slope remains highly stable across the entire range 10 L 50 .
Figure 2 illustrates the growth of the level-set size | l L | as L increases, while exhibiting fluctuations likely tied to the irregular structure of Collatz trajectories. This provides context for the regression analysis by showing how many integers contribute to each computation.

4. Conclusions

In this paper, we studied the level sets
l x = { n N L ( n ) = x }
of the Collatz map through the parity structure of their trajectories. For each fixed length x, we partitioned l x into the subsets
S x , k = { n l x : k ( n ) = k } ,
where k ( n ) denotes the number of odd steps in the trajectory of n, and we analyzed the corresponding means
μ x , k = 1 | S x , k | n S x , k n .
The parity-based viewpoint developed here suggests several possible directions for further study. One is to investigate whether sharper theoretical bounds for A x and B x can be obtained directly from the parity patterns of Collatz trajectories. Another is to examine whether similar statistical laws persist for larger computational ranges or for other quantities associated with the trajectories. More broadly, the results indicate that the level sets l x possess additional internal structure that may be useful in understanding the dynamics of the Collatz map.

Author Contributions

Software, P.A. and C.E.; formal analysis, S.K., T.S., and P.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lagarias, J. The Ultimate Challenge: The 3x + 1 Problem; American Mathematical Society: Providence, RI, USA, 2010. [Google Scholar]
  2. Krasikov, I.; Lagarias, J.C. Bounds for the 3x+1 problem using difference inequalities. Acta Arith. 2003, 109, 237–258. [Google Scholar] [CrossRef][Green Version]
  3. Tao, T. Almost all orbits of the Collatz map attain almost bounded values. In Forum of Mathematics; Cambridge University Press: Cambridge, UK, 2022; Volume 10, p. e12. [Google Scholar]
  4. Eliahou, S. The 3x+1 problem: New lower bounds on nontrivial cycle lengths. Discret. Math. 1993, 118, 45–56. [Google Scholar] [CrossRef]
  5. Andaloro, P.J. The 3x+1 problem and directed graphs. Fibonacci Quart. 2002, 40, 43–54. [Google Scholar] [CrossRef]
  6. van Laarhoven, T.; de Weger, B. The Collatz conjecture and De Bruijn graphs. Indag. Math. 2013, 24, 971–983. [Google Scholar] [CrossRef]
  7. Conway, J.H. Unpredictable iterations. In Proceedings of the 1972 Number Theory Conference; University of Colorado: Boulder, CO, USA, 1972; pp. 49–52. [Google Scholar]
  8. Machado, J.A.T.; Galhano, A.; Cao Labora, D. A Clustering Perspective of the Collatz Conjecture. Mathematics 2021, 9, 314. [Google Scholar] [CrossRef]
  9. Terras, R. A stopping time problem on the positive integers. Acta Arith. 1976, 30, 241–252. [Google Scholar] [CrossRef]
  10. Crandall, R.E. On the “3x+1” problem. Math. Comp. 1978, 32, 1281–1292. [Google Scholar] [CrossRef] [PubMed]
  11. Oliveira e Silva, T. Empirical Verification of the 3X + 1 and Related Conjectures, the Ultimate Challenge: The 3X + 1 Problem; American Mathematical Society: Providence, RI, USA, 2010; pp. 189–207. [Google Scholar]
  12. Lagarias, J.C. The 3x+1 problem and its generalizations. Amer. Math. Mon. 1985, 92, 3–23. [Google Scholar] [CrossRef]
Figure 1. Estimated regression slope b as a function of Collatz length L. The slope remains highly stable across the tested range 10 L 50 , indicating that the exponential decay rate of cluster means is essentially constant.
Figure 1. Estimated regression slope b as a function of Collatz length L. The slope remains highly stable across the tested range 10 L 50 , indicating that the exponential decay rate of cluster means is essentially constant.
Mathematics 14 01763 g001
Figure 2. Growth of the level-set size | l L | with respect to the Collatz length L.
Figure 2. Growth of the level-set size | l L | with respect to the Collatz length L.
Mathematics 14 01763 g002
Table 1. Regression summary for Collatz level sets of length L showing the level-set of size | l L | , the number of parity clusters, the purity of the clustering, the fitted exponential slope b, and the coefficient of determination R 2 .
Table 1. Regression summary for Collatz level sets of length L showing the level-set of size | l L | , the number of parity clusters, the purity of the clustering, the fitted exponential slope b, and the coefficient of determination R 2 .
L |lL|ClustersPurity b R 2
10631.0−1.85630.9999
11831.0−1.84640.9999
121041.0−1.83071.0000
131441.0−1.82511.0000
141851.0−1.82521.0000
152451.0−1.81981.0000
162961.0−1.82741.0000
173551.0−1.82591.0000
184351.0−1.82481.0000
195761.0−1.83140.9999
206351.0−1.83371.0000
218151.0−1.83170.9999
228051.0−1.79690.9995
2310551.0−1.83151.0000
2413851.0−1.83021.0000
2512441.0−1.83681.0000
2617151.0−1.83141.0000
2718651.0−1.82170.9999
2819541.0−1.83591.0000
2926851.0−1.83381.0000
3020141.0−1.83361.0000
3128941.0−1.83301.0000
3241651.0−1.82751.0000
3329041.0−1.83051.0000
3442851.0−1.82491.0000
3526141.0−1.82441.0000
3640841.0−1.82691.0000
3761841.0−1.82851.0000
3837141.0−1.82141.0000
3957141.0−1.82521.0000
4062941.0−1.80900.9999
4148341.0−1.82501.0000
4278241.0−1.81871.0000
4340031.0−1.82271.0000
4465241.0−1.81531.0000
45105041.0−1.81891.0000
4651041.0−1.81241.0000
4786341.0−1.81361.0000
4838431.0−1.81461.0000
4967241.0−1.80651.0000
50114841.0−1.80561.0000
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.

Share and Cite

MDPI and ACS Style

Koyuncu, S.; Sathiyakumar, T.; Alayode, P.; Ellis, C.; Thomas, P. Parity-Based Level-Set Approach to the Collatz Conjecture. Mathematics 2026, 14, 1763. https://doi.org/10.3390/math14101763

AMA Style

Koyuncu S, Sathiyakumar T, Alayode P, Ellis C, Thomas P. Parity-Based Level-Set Approach to the Collatz Conjecture. Mathematics. 2026; 14(10):1763. https://doi.org/10.3390/math14101763

Chicago/Turabian Style

Koyuncu, Selcuk, Thevasha Sathiyakumar, Praise Alayode, Christopher Ellis, and Peyton Thomas. 2026. "Parity-Based Level-Set Approach to the Collatz Conjecture" Mathematics 14, no. 10: 1763. https://doi.org/10.3390/math14101763

APA Style

Koyuncu, S., Sathiyakumar, T., Alayode, P., Ellis, C., & Thomas, P. (2026). Parity-Based Level-Set Approach to the Collatz Conjecture. Mathematics, 14(10), 1763. https://doi.org/10.3390/math14101763

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop