1. Introduction
The Collatz map is a classical problem at the intersection of discrete dynamical systems [
1,
2,
3,
4,
5,
6], elementary number theory [
7,
8,
9], and probabilistic modeling [
10,
11]. It is defined by
The Collatz conjecture asserts that, for every positive integer
X, repeated iteration eventually enters the period-three cycle
. The problem was proposed by L. Collatz in the 1930s [
8]. Despite its elementary formulation, the associated orbit structure is highly intricate, and a complete proof remains out of reach. A substantial body of work has investigated the problem from the perspectives of stopping times, total stopping times, modular structures, random models, 2-adic dynamics, and probabilistic methods [
12,
13,
14,
15].
In recent years, several noteworthy developments have further advanced the study of the Collatz problem. One important direction is understanding the typical behavior of Collatz orbits through probability theory and random dynamical models [
14,
15]. Tao proved that almost all Collatz orbits attain almost bounded values. Although this result does not show that every orbit reaches 1, it demonstrates that, in the sense of logarithmic density, the overwhelming majority of orbits exhibit a strong tendency toward descent [
14]. This work refines the long-standing random-walk heuristic for the Collatz problem into a more precise probabilistic framework, suggesting that the deterministic Collatz map may display effective randomness at appropriate scales. Closely related to this viewpoint, random models of Collatz orbits have long served as an important tool for understanding the problem. Kontorovich and Lagarias systematically studied random models for the
and
problems, showing that forward iteration can be approximated by additive random walks, biased random walks, or Markov processes [
8].
Another active direction concerns large-scale computational verification. Although computational evidence cannot replace a rigorous proof, it provides important support for understanding the statistical structure of orbits and for excluding counterexamples within large finite ranges [
16,
17]. Barina recently extended the verification of the Collatz conjecture to
, using improved algorithms and parallel computation, and discussed the role of GPUs and distributed computing in accelerating this task [
17]. Such computations show that no nontrivial cycle or divergent orbit appears within an extremely large range of initial values.
Beyond stopping-time analysis and computational verification, recent work has also attempted to characterize the structure of Collatz orbits from the perspective of nonlinear dynamical systems. In Ref. [
18], Collatz orbits were decomposed into upward and downward phases, leading to a direction-phase decomposition and a family of recursive functions parameterized by the number of upward phases
. A key numerical observation in that work is that the statistics of odd integers classified by the number of upward phases are well described by a Gamma-type distribution. This suggests that the number of local growth events in Collatz orbits is not merely an irregular count, but may instead exhibit a stable statistical law.
The present work is motivated by the following question: what mechanism gives rise to Gamma-type statistics in the number of upward phases of Collatz orbits? To answer this question, we model the occurrence of upward phases in the odd-compressed, or Syracuse, version of the Collatz map as a homogeneous Poisson process. Combining the mean-field logarithmic balance with the geometric distribution of the 2-adic valuations, we obtain closed-form estimates for the Gamma parameters and explain why the scale parameter is approximately constant whereas the shape parameter grows logarithmically with the maximal initial value. Large-scale numerical experiments are then performed to validate the proposed Poisson process mechanism and the resulting Gamma distribution approximation. Beyond its implications for the statistical analysis of Collatz dynamics, this framework also provides a pedagogically useful example for undergraduate and graduate courses in nonlinear dynamics, number theory, computational physics, and computational mathematics, illustrating how deterministic arithmetic rules can be effectively described through probabilistic and statistical models.
The remainder of this paper is organized as follows.
Section 2 introduces the Collatz map and defines the direction-phase decomposition, including the numbers of upward and downward phases.
Section 3 develops a probabilistic approximation for the odd-compressed Collatz dynamics and derives the Gamma distribution approximation for the statistics of
, together with theoretical estimates for the fitting parameters and the mean value.
Section 4 discusses exact closure conditions for possible periodic orbits and clarifies the role of finite-size corrections in the double-logarithmic asymptotic picture.
Section 5 presents numerical results that test the theoretical predictions over a wide range of
L. Finally,
Section 6 summarizes the main conclusions and discusses the scope and limitations of the proposed approximation.
2. The Collatz Map and Definition of Direction Phases
For brevity, the map (
1) is abbreviated as
where
. The Collatz conjecture asserts
To formalize the dynamics, we introduce “direction phases” [
19]:
Notably,
and
correspond to the counts of odd and even terms in the sequence. The total iterations satisfy
where
is parameterized as a function of
as follows:
where
denotes rounding
x to the nearest integer [
18]. Clearly, for a given
, the total number of iterations is completely determined under the condition that
is known. Moreover, Ref. [
18] numerically observed that, over finite ensembles of odd initial values, the upward-phase count
is well described by a Gamma distribution. In the following, we develop a theoretical framework to explain this empirical regularity and derive analytical estimates for the corresponding distribution parameters. Providing a mechanistic account of the numerically observed statistics constitutes both the principal motivation and the central contribution of the present work.
The direction-phase decomposition used here could be understood as a specific modeling convention rather than as a canonical decomposition universally adopted in the Collatz literature. Its application to Collatz trajectories, together with the associated upward-phase count
, was introduced in Ref. [
18] from a nonlinear-dynamics perspective. Although the terminology was motivated by the more general concept of phase ordering in nonlinear maps [
19], the present upward–downward partition is tailored to the arithmetic structure of the Collatz map.
The advantage of this convention is its direct correspondence with the two elementary operations of the map. An upward phase occurs when an odd integer is transformed according to
, whereas a downward phase occurs when an even integer is transformed according to
. Consequently,
and
coincide with the numbers of odd and even terms, respectively, along the trajectory before it enters the known cycle. Moreover, under the odd-compressed, or Syracuse [
14], representation, each compressed iteration consists of exactly one upward operation followed by one or more divisions by two. Hence,
is exactly the number of iterations of the odd-compressed map. This correspondence makes the decomposition analytically convenient for describing the trajectory, deriving the logarithmic balance, and constructing the effective statistical model developed below. Note that this decomposition is not unique or universally preferred. Other trajectory observables or alternative partitions may lead to different statistical descriptions. The results presented in this work are specifically concerned with the direction-phase convention of Ref. [
18] and with the distribution of the resulting observable
. Other decompositions may lead to different statistical observables and possibly richer behavior; exploring such alternatives remains an interesting subject for future research.
3. Poisson-Process Mechanism for Gamma-Type Upward-Phase Statistics
Before introducing the probabilistic approximation, we specify the statistical ensemble considered in this work. For a fixed positive integer
L, let
denote the finite population of odd initial values. For each
considered numerically, the Collatz trajectory is iterated until it enters the known cycle, and the direction-phase decomposition assigns to it a deterministic upward-phase count
. The resulting population of upward-phase counts is therefore
Both the initial-value population and the map are deterministic; no intrinsic randomness or pseudo-random generation of the initial values is assumed.
A probability distribution may nevertheless be associated with this finite ensemble by assigning the uniform counting measure to
. Equivalently, one may regard
as being selected uniformly from
, in which case
becomes an induced random variable with probability mass function
The Gamma distribution introduced below is used as a continuous effective approximation to this discrete finite-population distribution. It does not represent intrinsic stochasticity of the Collatz dynamics, nor is it introduced to estimate an unspecified external population parameter. Instead, its shape and scale parameters characterize the location, dispersion, and shape of the distribution of
across the prescribed ensemble of initial values.
The standard Collatz map consists of an odd step,
, and an even step,
. Since
is always even for any odd integer
X, an odd step is necessarily followed by one or more successive divisions by 2. It is therefore natural to combine these consecutive even steps and consider the odd-only accelerated map acting on the set of positive odd integers:
where
denotes the 2-adic valuation of
m, i.e., the exponent of the highest power of 2 dividing
m. This map is also referred to as the reduced Collatz function, the accelerated Collatz function, the odd-only Collatz map, or the Syracuse function [
14]. In this compressed representation, each step from
to
consists of one upward operation,
, followed by
downward divisions by 2. Hence, for an orbit segment containing
M compressed steps, the number of upward phases is
, while the total number of downward phases is
Thus, the number of iterations of the odd-compressed map is naturally identified with the number of upward phases.
Figure 1a,b compare the iteration trajectories of the odd-compressed map, indicated by the red lines, with the cobweb plots of the original Collatz map for the initial values
and
, respectively. For these two initial values, the corresponding numbers of upward and downward phases are
and
, respectively. The trajectory generated by the odd-compressed map consists entirely of odd integers, as illustrated by the red dots in
Figure 1. In the
–
coordinate system, the grid lines correspond to powers of two. Therefore, except for the fixed point
, no point along the odd-compressed trajectory can coincide with these power-of-two grid lines.
We now seek an effective probabilistic model for the finite-population distribution defined in Equation (
9). In the odd-compressed Collatz dynamics, each compressed iteration corresponds to one upward phase. Motivated by the approximately geometric statistics of the associated 2-adic valuations [
14], we adopt an effective homogeneous Poisson-process approximation for the occurrence of these upward phases. Under this interpretation, the Gamma family provides a continuous approximation to the distribution of
over the initial-value ensemble, i.e.,
where
K and
are the shape and scale parameters, respectively. Note that the Gamma family is only employed as an effective continuous model, not as an exact distribution derived from the deterministic Collatz dynamics.
The remaining task is to estimate
K and
from the arithmetic structure of the odd-compressed Collatz map. Taking logarithms of the compressed map yields
For a sufficiently large
, we use the approximation
Substituting this approximation into Equation (
13) gives
Equivalently, the logarithmic evolution can be written as
where
denotes the single-step logarithmic decrease. Since
has mean value larger than
, the average value of
is positive, corresponding to a net logarithmic contraction on average.
For odd integers that are approximately uniformly distributed among residue classes modulo powers of 2, the 2-adic valuation
may be approximated by a geometric distribution [
14], i.e.,
The geometric law in Equation (
18) specifies the marginal distribution of each
, but does not by itself imply independence of successive valuations. A stronger finite-dimensional justification was given by Tao [
14], who proved that, when a random odd initial value is approximately uniformly distributed modulo a sufficiently large power of 2, its finite Syracuse valuation vector is exponentially close in total variation to a vector of independent
random variables. Motivated by this result, we treat the successive logarithmic increments as approximately independent. This approximation gives
Since
, it follows that
and
For an initial odd integer
, reaching the small attracting cycle requires the accumulated logarithmic decrease to be of the order of
. At the mean-field level, this logarithmic balance gives
Taking
as the representative upper boundary of the sampling interval, we obtain
This estimate is in good agreement with the numerical results reported in Ref. [
18].
We next estimate the variance of
by error propagation. After
compressed steps, the accumulated logarithmic decrease is
Motivated by the finite-dimensional independence result discussed above, and within the independent-increment approximation, the variables
are treated as having negligible serial dependence. Hence, for a fixed value of
,
At the mean-field level, the accumulated logarithmic decrease is related to the number of upward phases by
Thus, a small fluctuation in
induces a corresponding fluctuation in
according to
It follows that
For a Gamma distribution with shape parameter
K and scale parameter
, one has
Therefore,
and
Thus, the theoretical estimate predicts that
is independent of
L, while
K grows logarithmically with
L. In the effective Poisson-process interpretation, the approximately constant scale parameter is consistent with a constant inverse rate. This numerical and analytical consistency supports the usefulness of the homogeneous approximation, but does not constitute a proof of an exact Poisson point process.
4. Closure Conditions for Periodic Orbits
The statistical description developed above implicitly concerns orbits that eventually enter the known cycle. If other nontrivial periodic orbits existed, their long-time behavior would not be described by the same convergent-orbit statistics. It is therefore useful to examine the exact closure conditions for periodic orbits of the accelerated Collatz map.
Suppose that there exists a periodic orbit of the accelerated map on positive odd integers with period
M, namely,
where
. Iterating the accelerated map gives the exact balance condition
where
is the total number of downward divisions by 2 along the cycle. For the known cycle
, the accelerated map has the fixed point
, corresponding to
and
. In this case, Equation (
33) reduces to
.
Equation (
33) may be rewritten as
For any nontrivial positive cycle, all odd elements satisfy
. Hence,
Taking logarithms, we obtain the necessary condition
Moreover, if
, then
Thus, any large nontrivial cycle would require the rational number
to approximate the irrational number
from above with extremely high accuracy.
For example, the numerical verification of the Collatz conjecture up to
implies that any possible nontrivial positive cycle must have
. Substituting this lower bound into Equation (
37) gives
Therefore, if one considers a hypothetical sequence of nontrivial cycles with
, then
would have to converge to
from above with an error tending to zero.
In the asymptotic approximation where
is replaced by
, the closure condition would reduce to
This equation cannot hold exactly, since
and
M are integers whereas
is irrational. Hence, in the double-logarithmic asymptotic picture, nontrivial periodic closure is excluded in the limit
. The constraint becomes increasingly stringent as the minimum element
m of the cycle increases.
However, this asymptotic obstruction is not a proof of the nonexistence of all nontrivial cycles. The finite correction in cannot be discarded rigorously in the integer dynamics, because it determines the 2-adic valuation and hence the parity structure of the subsequent trajectory. Indeed, this correction is precisely what produces the known cycle . Therefore, a complete exclusion of all finite-size corrections would amount to proving the uniqueness of the known Collatz cycle. This illustrates the subtle difference between taking asymptotic limits in the real-valued logarithmic approximation and preserving the exact arithmetic structure of the dynamics on positive integers. For example, in the real-valued asymptotic sense, the approximation is valid as . In the integer dynamics, however, this approximation is not innocuous: for odd , the quantity is even, whereas remains odd. Thus, replacing by changes the parity structure and, consequently, the 2-adic valuation that determines the subsequent divisions by 2.
5. Numerical Results
To show how well the proposed probabilistic model captures the statistical behavior of the accelerated odd-compressed Collatz dynamics, this section displays a series of goodness-of-fit analyses comparing theoretical predictions with numerical experiments. The objective is to evaluate the agreement between the empirical distributions of the upward-phase count and the Gamma-based density , examine the scaling of the fitted parameters K and with respect to L, and quantify deviations in the mean behavior relative to the theoretical expectation.
Figure 2 shows the statistical counts of
for
and
on a semilogarithmic scale. The orange dots denote the numerical counts, while the blue stars show the corresponding results obtained by restricting
to odd values in the range
. The two sets of data nearly overlap, indicating that, for sufficiently large
, the statistical distribution of
is insensitive to the lower cutoff of the sampling interval. The green curves represent the theoretical prediction obtained from the probability density function in Equation (
12), namely
, which agrees well with the numerical results.
Figure 3a shows the frequency distribution of
as a function of
for
at fixed
. The red solid curve denotes the Gamma distribution fit. To better resolve the discrepancy between the numerical data and the fitted curve at small frequencies, the same data are replotted on a double-logarithmic scale in the inset. The fitted curve shows excellent overall agreement with the numerical results.
Figure 3b presents the empirical cumulative distribution function constructed from the frequency statistics. Since the cumulative curve is smooth, we fit it using the cumulative distribution function of the Gamma distribution to determine the fitting parameters. The fitted curve in
Figure 3a is then drawn using these parameters. The red solid curve in
Figure 3b denotes the fitted cumulative distribution function. To further illustrate the fitting accuracy, the inset shows the residual
between the empirical and fitted values. The residual satisfies
, indicating that the Gamma distribution provides an accurate approximation to the statistics of
.
To quantitatively characterize the dependence of the Gamma approximation on the sampling range of
,
Figure 4a shows the fitted Gamma parameters
K and
as functions of
L. As
L increases, the fitted value of
gradually approaches an approximately constant value,
, which is slightly smaller than the theoretical prediction
. The fitted value of
K changes from slightly below to slightly above the theoretical prediction, while its overall logarithmic growth remains consistent with the theory. Quantities without subscripts in the legend are obtained from the statistics for
, whereas quantities with the subscript 2 are obtained from the restricted range
. The difference between the two data sets is small, indicating that the lower cutoff of
does not affect the qualitative behavior of the distribution.
Figure 4b further examines this dependence by plotting the local slopes obtained from linear fits between adjacent data points for
K and
. The slope of
approaches zero as
L increases, consistent with an asymptotically constant scale parameter. In contrast, the slope of
K converges toward its theoretical value, as indicated by the horizontal reference line.
Figure 4c shows the mean value of
as a function of
L. The mean estimated from the Gamma distribution fit agrees closely with the directly computed statistical mean, whereas the theoretical estimate is slightly larger. The inset shows the corresponding local slopes obtained from adjacent-point linear fits. The slope of the statistical mean is nearly identical to the theoretical prediction. Although the slope obtained from the fitted mean is slightly smaller, it gradually approaches the theoretical value
as
L increases.
Figure 4d shows the relative errors of the statistical mean and the fitted mean with respect to the theoretical prediction, i.e.,
. The relative error remains below
over the full range of
L. When
is restricted to the range from
to
, the relative error is further reduced to approximately
. Overall, the error decreases with increasing
L, consistent with the large-
approximation used in Equation (
14). Thus, larger values of
lead to smaller approximation errors in the theoretical derivation.
Figure 4c,d show that the original theoretical prediction slightly overestimates the mean value of
, while accurately capturing its scaling slope. When
is restricted to the interval
, the numerical results agree better with the theoretical prediction. This indicates that using the upper boundary
in Equation (
23) as the representative logarithmic scale of the whole sampling interval leads to a systematic overestimation for smaller values of
. This bias decreases as
approaches
. As a compact empirical finite-range correction for the restricted sampling interval considered here, we replace
by the midpoint
of the logarithmic interval
. The empirically corrected estimate is therefore
Figure 5a compares this corrected prediction with the numerical results, showing good agreement.
Figure 5b further displays the relative error of the directly computed statistical mean as a function of
L. With the corrected theory, the relative error is reduced to the order of
–
. In addition, the relative error of the mean estimated from the fitted Gamma parameters decreases and falls below
at
. This correction is sampling dependent and is not claimed to represent a universal finite-size law.
6. Summary and Discussion
In summary, we have provided a mechanistic explanation for the emergence of Gamma-type statistics in the direction-phase structure of Collatz orbits. By decomposing the Collatz dynamics into upward and downward phases and using the odd-compressed representation, we modeled the occurrence of upward phases through an effective homogeneous Poisson process mechanism. Together with the geometric approximation for the 2-adic valuations , this framework leads naturally to a Gamma-family approximation for the statistics of . The corresponding Gamma parameters can be estimated analytically from the arithmetic structure of the map. The scale parameter is predicted to be . In contrast, the shape parameter K grows logarithmically with L, consistent with the mean-field logarithmic balance between the accumulated decrease and . A corrected estimate for the mean value of , obtained by replacing the upper-boundary approximation with the average logarithmic scale of the sampling interval, further reduces the relative error to the order of –.
We also examined the closure conditions for possible periodic orbits of the accelerated Collatz map. The exact balance condition implies that any nontrivial large cycle would require to approximate from above with an accuracy better than , where m is the minimum element of the cycle. As , this condition becomes arbitrarily stringent. In the asymptotic approximation where is replaced by , the closure condition reduces to , which is impossible because is irrational. This provides an asymptotic obstruction to large nontrivial cycles, although it does not constitute a rigorous exclusion of all finite-size corrections.
Several questions remain open. Although the effective Poisson-process approximation is supported by the numerical results, a rigorous derivation from the deterministic Collatz dynamics is still lacking. In particular, it would be important to quantify correlations among successive values of and to determine whether a suitable limit theorem can be established for the odd-compressed map. Such a correlation analysis would not only provide a more reliable basis for the homogeneous Poisson-process approximation, but could also help explain and correct the slight systematic overestimation of the value of relative to the numerical measurement. A careful investigation of these effects is therefore left for future work. Another direction is to extend the direction-phase framework to generalized Collatz-type maps, such as problems, in order to clarify whether the observed Gamma-type statistics are specific to the classical map or reflect a broader feature of parity-driven integer dynamics.
Beyond its implications for the statistical analysis of Collatz dynamics, the present framework also provides a useful pedagogical example. For undergraduate and graduate teaching, it provides a compact example showing how an elementary deterministic rule can generate highly nontrivial behavior and how number-theoretic structure, discrete dynamics, probabilistic modeling, and numerical evidence can interact. In this sense, the Collatz problem is not only a classical topic in elementary number theory, but also an instructive model for illustrating how deterministic arithmetic dynamics may admit effective stochastic descriptions, while numerical evidence can motivate but not replace rigorous mathematical analysis.