Preprint
Article

This version is not peer-reviewed.

A Deterministic Residue Framework for the Collatz Operator at q = 3

Submitted:

20 September 2025

Posted:

28 September 2025

You are already at the latest version

Abstract
We give a deterministic, purely arithmetic framework for the Collatz operator in the classical case q = 3. The two standard views—forward n 7→ 3n + 1 followed by division by powers of two, and reverse n 7→ (2kn − 1)/3 with admissible k—are unified by a single middle-even gate modulo 18. Working with the natural odd residues {1, 3, 5} (mod 6), we show that both the forward first step 3n + 1 and any admissible reverse first step 2kn land in the same three residue classes {4, 10, 16} (mod 18), and that these residue classes alone determine the next odd class. For every live odd n (3 ∤ n) there exists an admissible k with 2kn ≡ 3n + 1 (mod 18) (forward/reverse middle-even equivalence). Incrementing k by 2 rotates the mod-18 middle-even class 10→4→16→10, making the terminating option (10, hence a C0 child) periodically available alongside the live classes C1 and C2. These ingredients give a short exclusion of nontrivial odd cycles and a global inclusion argument: every odd is live or terminating, and every even halves to the odd layer. The result is a complete residue-theoretic resolution of the 3n + 1 dynamics in the q = 3 system. For context see [1–6].
Keywords: 

1. Introduction

The Collatz map T : N N is defined by
T ( n ) = n / 2 , n even , ( 3 n + 1 ) / 2 , n odd .
The (forward) Collatz conjecture asserts that every positive integer eventually reaches 1 under iteration of T. Despite its elementary form, the problem has resisted resolution since 1937. Classical analyses organize trajectories by parity patterns, stopping times, and modular constraints [2,3], and extensive surveys chart the landscape of techniques and phenomena [1,4,5]. More recently, ergodic/probabilistic methods have established almost-sure boundedness in a density sense [6].
This paper presents a novel and direct arithmetic framework for the q = 3 system based on two additional simple observations:
(1)
Combined lens mod 18. Because the reverse step divides by 3, one needs the mod-18 lift to make the child well-defined; pairing this with parity yields a single operational lens mod 18 = 2 · 9 . On this lens, both the forward first step 3 n + 1 and any admissible reverse first step 2 k n land in the same three residue classes { 4 , 10 , 16 } , and these residue classes alone determine the next odd class.
(2)
Forward/Reverse equivalence at the middle even. For every live odd n ( 3 n ) there exists an admissible k with 2 k n 3 n + 1 ( mod 18 ) , so the forward and reverse procedures share the same middle decision.
From these facts we see that advancing k by 2 rotates the mod-18 middle-even class 10 4 16 10 , which cycles the available child classes C 0 C 2 C 1 C 0 . Thus the terminating option C 0 recurs regularly in the rotation; it is available but not forced. This periodic availability, together with parity (every even halves to odd), ensures that the forward and reverse frameworks align and that the global dynamics converge into 4 2 1 .
We also formulate a general taxonomy for other q: rotation (no dead classes when 2 generates all units), splitting (proper order of 2 in the unit group), and collapse (composite q with many nonunits). The q = 3 case is the rotation extreme: there are no dead classes, and the mod-18 gate is fully deterministic. Background and complementary perspectives may be found in [1,2,3,4,5,6].

2. Prior Work and Novelty

Prior work.

Parity encodings, stopping-time statistics, and modular constraints underpin much of the modern Collatz literature [2,3]. Authoritative surveys and monographs systematize these tools and document many partial results and heuristics [1,4,5]. More recently, density-based approaches have shown that almost all orbits attain almost bounded values [6]. These contributions provide powerful average-case control and a broad toolkit for congruence reasoning, but they do not yield a single, deterministic local rule that simultaneously governs the forward and reverse steps at the same arithmetic resolution.

Novelty. 

Our contribution is a single-lens, local rule that completely determines the next odd class from the middle even that is shared by forward and reverse functions:
  • We use mod 18 as the operational lens: parity × the division-by-3 lift. Mod 9 supplies the minimal “division-by-3 memory” to preserve residues, but because the middle-even is always even, the dynamics close naturally in mod 18.
  • We prove forward/reverse middle-even congruence: for every live odd n and for all admissible doublings k, the reverse middle-even 2 k n lies in the same three residues { 4 , 10 , 16 } ( mod 18 ) as the forward middle-even 3 n + 1 . Thus forward and reverse dynamics are congruent at the middle even: they always meet at one of the residues { 4 , 10 , 16 } , and from this shared gate the next odd class is determined identically in both directions.
  • We deduce a finitely bound terminating-child property from ord 9 ( 4 ) = 3 : even-k increments rotate the residue classes with period 3, determining a hit of the terminating residue class 10 in at most two steps.
  • These local facts yield concise global consequences: no nontrivial odd cycles and global inclusion (every integer’s trajectory enters 4 2 1 ).
Conceptually, the framework isolates the interaction of powers of two (doubling) with the prime 3 in a single arithmetic object (mod 18), turning Collatz dynamics into a short residue computation rather than a long-range statistical argument; cf. [1,4,5].

3. Definitions

Definition 1 
(System parameter q).  Fix an odd integer q 3 . The reverse Collatz transform at order q is
R q ( n ; k ) : = 2 k n 1 q ,
well-defined exactly for those k 1 satisfying the admissibility congruence 2 k n 1 ( mod q ) . The classical Collatz case is q = 3 .
Two arithmetic lenses are attached to q:
  • the class lens modulo 2 q (records parity and proximity to multiples of q);
  • the residue lens modulo 2 q 2 (the minimal lift making the division by q in R q well-defined).
For q = 3 , these combine as a single operational lens modulo 18 = 2 · 9 .
Definition 2 
(Forward Collatz function). The (one-step) forward Collatz map T : N N is
T ( n ) = n / 2 , if n is even , ( 3 n + 1 ) / 2 , if n is odd .
Definition 3 
(Reverse Collatz function ( q = 3 )). Given an odd integer n, a doubling count k 1 is admissible if 2 k n 1 ( mod 3 ) (equivalently, n 1 ( mod 3 ) forces k even, and n 2 ( mod 3 ) forces k odd). For any admissible k, the reverse Collatz function produces the odd child
R ( n ; k ) = 2 k n 1 3 Z 1 .
If k min is the minimal admissible doubling count, then R ( n ; k min ) is called the first child of n.
In particular, n = 1 is the smallest admissible odd: it satisfies the condition with k min = 2 and yields R ( 1 ; 2 ) = 1 . Thus 1 is the unique self-parent and the root origin of the reverse tree; every odd child in the system is a descendant of an admissible k-function applied to 1.
Definition 4 
(Middle-even values). For an odd integer n, define the forward middle-even value
E f ( n ) : = 3 n + 1 .
For the reverse step with admissible doubling count k 1 (i.e., 2 k n 1 ( mod 3 ) ), define the reverse middle-even value
E r ( n , k ) : = 2 k n .
Both E f and E r are even and are read modulo 18 to determine the child’s odd class via the fixed gate 10 C 0 , 4 C 2 , 16 C 1 in the reverse function.
Definition 5 
(Parent (reverse Collatz, q = 3 )). An odd integer n is a parent . If n 3 ( mod 6 ) (an odd multiple of 3), it has no admissible doubling and is a terminating parent. Otherwise ( 3 n ), n is live and has at least one admissible k.
Definition 6 
(Child (reverse Collatz, q = 3 )). Given a parent n and an admissible k 1 , the corresponding child is
m = 2 k n 1 3 ( odd ) .
For a fixed n, admissible k have fixed parity and are exactly k = k min ( n ) + 2 t with t 0 . As k increases by + 2 , the middle-even residue cycles 10 4 16 10 (Lemma 4); under the fixed gate 10 C 0 , 4 C 2 , 16 C 1 , the children of n therefore occur in the deterministic class rotation
C 0 C 2 C 1 C 0
Definition 7 
(First child).  For a live parent n, let k min be the minimal admissible doubling count. The first child of n is
m 1 = 2 k min n 1 3 .
Definition 8 
(Admissible doubling and child).  Let n be odd. A doubling count k 1 is admissible if
2 k n 1 ( mod 3 ) .
For any admissible k, the reverse child is
R ( n ; k ) : = 2 k n 1 3 Z .
By Lemma 2, the set of admissible k for a fixed odd n has fixed parity (even if n 1 ( mod 3 ) , odd if n 2 ( mod 3 ) ), and hence k k + 2 preserves admissibility.

4. The Mod 6 Classification for Odd Integers

All odd integers fall into three residue classes modulo 6:
  • C0:  n 3 ( mod 6 ) (odd multiples of 3: 3 , 9 , 15 , ).
    Forward (middle-even identification):  3 n + 1 10 ( mod 18 ) .
    Reverse (admissibility/parity): No admissible k with 2 k n 1 ( mod 3 ) exists, so C 0 has no reverse parent.
  • C1:  n 5 ( mod 6 ) (two higher than a multiple of 3: 5 , 11 , 17 , ).
    Forward (middle-even identification):  3 n + 1 16 ( mod 18 ) .
    Reverse (admissibility/parity):  n 2 ( mod 3 ) , so admissible k are odd. The first admissible is k = 1 . One doubling gives
    n · 2 1 4 ( mod 6 ) .
    Since k min = 1 for C 1 , we have 2 k min n 1 ( mod 3 ) ; subtracting 1 yields a multiple of 3, so the reverse step is an integer. Thus C 1 always resolves after
    k = k min + 2 t = 1 + 2 t ( t Z 0 )
  • C2:  n 1 ( mod 6 ) (two lower than a multiple of 3: 1 , 7 , 13 , ).
    Forward (middle-even identification):  3 n + 1 4 ( mod 18 ) .
    Reverse (admissibility/parity):  n 1 ( mod 3 ) , so admissible k are even. The first admissible is k = 2 , yielding
    4 n 1 ( mod 3 ) m = 4 n 1 3 Z .
    Since k min = 2 for C 2 , we have 2 k min n 1 ( mod 3 ) ; subtracting 1 yields a multiple of 3, so the reverse step is an integer. Thus C 2 always resolves after
    k = k min + 2 t = 2 + 2 t ( t Z 0 )
    doublings.
Lemma 1 
(C0 is terminating under the reverse step). If n 3 ( mod 6 ) (i.e., n is an odd multiple of 3), then for every k 1 ,
2 k n 1 3 Z .
In particular, the class C0 has no admissible reverse child.
Proof. 
If 3 n then 2 k n 0 ( mod 3 ) for all k 1 , hence 2 k n 1 1 2 ( mod 3 ) , which is not divisible by 3. □
Corollary 1 
(Forward exit from C0). If n C 0 , then in the forward map 3 n + 1 = 2 k m with k 1 the next odd m satisfies 3 m , hence m C 1 C 2 .
Proof. 
If 3 m then 3 3 n + 1 , contradicting 3 3 n . □
Lemma 2 
(Admissibility parity). Let n be odd. The congruence 2 k n 1 ( mod 3 ) has a solution iff 3 n . In that case the parity of k is fixed by n mod 3 :
n 1 ( mod 3 ) k even , n 2 ( mod 3 ) k odd .
In particular, whenever k is admissible, so is k + 2 .
Proof. 
Since 2 1 ( mod 3 ) , the condition 2 k n 1 ( mod 3 ) is ( 1 ) k n 1 ( mod 3 ) . If n 1 ( mod 3 ) this forces ( 1 ) k 1 (so k even); if n 2 ( mod 3 ) it forces ( 1 ) k 2 1 (so k odd); if n 0 ( mod 3 ) there is no solution. Adding 2 to k preserves ( 1 ) k and hence admissibility. □

5. Mod 18 Deterministic Residue vs. n

Proposition 1 
(Deterministic child-class decision via mod 18). In the Reverse Collatz function, and for odd n, the residue of the middle even in { 4 , 10 , 16 } ( mod 18 ) alone determines the child’s odd class, both forward and reverse. This gives a one-step, local rule independent of trajectory history [1,2,3]. Via the fixed gate,
10 C 0 , 4 C 2 , 16 C 1 ,
the child’s odd class is determined locally by the middle-even residue. Equivalently, the child’s odd class depends only on the residue of the middle even modulo 18, not on the history of the trajectory.

5.1. Residue Lens (Mod 2 q 2 )

Given a live class, we lift one step deeper:
2 k n 1 + q m ( mod 2 q 2 ) .
Lemma 3 
(Gate 10 produces a C0 child). If an admissible middle even satisfies E 10 ( mod 18 ) , then
m = E 1 3 3 ( mod 6 ) ,
so the reverse child is in C0 (an odd multiple of 3).
Proof. 
Write E = 18 t + 10 . Then ( E 1 ) / 3 = 6 t + 3 3 ( mod 6 ) . □
Remark 1 
(Forward mod 6 lifts to mod 18 in the first step). For odd n, the forward middle-even value E f ( n ) : = 3 n + 1 carries the mod 6 residue of n to a residue mod 18:
n 1 ( mod 6 ) E f ( n ) 4 ( mod 18 ) ,
n 3 ( mod 6 ) E f ( n ) 10 ( mod 18 ) ,
n 5 ( mod 6 ) E f ( n ) 16 ( mod 18 ) .
Thus the first forward step lifts the mod 6 classification to the combined lens mod 18 = 2 · 9 (parity + residue), and the child’s class is then read off by the fixed gate 10 C 0 , 4 C 2 , 16 C 1 .
The quotient
T q ( n ) = 2 k n 1 q
is the child, well-defined modulo 2 q . The map n m ( mod q ) determines whether the trajectory continues or collapses into a terminating residue.

6. Microcycles and Lifted k with Tables

Lemma 4 
(Rotation under k k + 2 in mod 18). If k is admissible for odd n ( 2 k n 1 ( mod 3 ) ), then
E r ( n , k ) = 2 k n 10 , 4 , 16 ( mod 18 ) .
Moreover E r ( n , k + 2 ) = 4 E r ( n , k ) , and hence
10 + 2 4 + 2 16 + 2 10 ( mod 18 ) .
Proof. 
Admissible E r ( n , k ) are even and 1 ( mod 3 ) , so only 10 , 4 , 16 occur modulo 18. For admissible k, E r ( n , k + 2 ) = 2 k + 2 n = 4 E r ( n , k ) ; computing mod 18 gives 4 · 10 4 , 4 · 4 16 , 4 · 16 10 , which establishes the 3-cycle. □
  • Microcycles: function and reason. Fix a live odd parent n ( 3 n ). For the Reverse Collatz Function, all admissible reverse doublings for n share the same parity (by admissibility parity), so from the minimal admissible count k min we may advance by steps of 2: k min , k min + 2 , k min + 4 , . By Lemma 4, each + 2 step multiplies the reverse middle-even by 4 modulo 18, sending 10 4 16 10 and hence rotating the child classes C 0 C 2 C 1 C 0 .
    E r ( n , k min ) mod 18 { 10 , 4 , 16 } E r ( n , k min + 2 ) 4 · E r ( n , k min ) ( mod 18 ) ,
    E r ( n , k min + 4 ) 4 · E r ( n , k min + 2 ) ( mod 18 ) ,
    cycling through 10 4 16 10 (mod 18). By the common mod-18 gate (Lemma 6), these three middle-even classes deterministically select the child odd classes C 0 , C 2 , C 1 , in that order. Thus every fixed parent n generates a k-lifted microcycle of children:
    C 0 , C 2 , C 1 in some cyclic order , repeating every three even - k steps .
    Moreover, by the forward–reverse middle-even equivalence (Lemma 7), there exists an admissible k for which E r ( n , k ) E f ( n ) = 3 n + 1 ( mod 18 ) , so the reverse microcycle is aligned with the residue one sees on the forward side.
  • Why two tables (by n and by residue). The decision rule depends only on the mod-18 middle-even class together with the fixed parity of admissible k. Hence one may work either with a concrete integer n or directly with its residue r n ( mod 18 ) . The paired tables illustrate both viewpoints—the integer view (full n) and the residue view (r)—and they agree entry-by-entry in the mod-18 column and the first-child class.
  • How to read the tables. Each row advances k by + 2 (preserving admissibility). Read off: (i) the rotating mod-18 middle-even class 10 4 16 , (ii) the corresponding child class C 0 C 2 C 1 , and (iii) the 3-step periodicity. The first appearance of residue 10 mod 18 certifies an accessible termination to C 0 within at most two + 2 lifts from k min .

Tables. 

Example n = 25 (reverse step, even k; here n mod 18 = 7 , n mod 6 = 1 C 2 ):
n k ( even ) 2 k n ( 2 k n ) mod 18 2 k n 1 3 2 k n 1 3 mod 6 class 25 2 100 10 33 3 C 0 25 4 400 4 133 1 C 2 25 6 1600 16 533 5 C 1 25 8 6400 10 2133 3 C 0 25 10 25600 4 8533 1 C 2 25 12 102400 16 34133 5 C 1 r k ( even ) 2 k r ( 2 k r ) mod 18 2 k r 1 3 2 k r 1 3 mod 6 class 7 2 28 10 9 3 C 0 7 4 112 4 37 1 C 2 7 6 448 16 149 5 C 1 7 8 1792 10 597 3 C 0 7 10 7168 4 2389 1 C 2 7 12 28672 16 9557 5 C 1
Example n = 29 (reverse step, odd k; here n mod 18 = 11 , n mod 6 = 5 C 1 ):
n k ( odd ) 2 k n ( 2 k n ) mod 18 2 k n 1 3 2 k n 1 3 mod 6 class 29 1 58 4 19 1 C 2 29 3 232 16 77 5 C 1 29 5 928 10 309 3 C 0 29 7 3712 4 1237 1 C 2 29 9 14848 16 4949 5 C 1 29 11 59392 10 19797 3 C 0 r k ( odd ) 2 k r ( 2 k r ) mod 18 2 k r 1 3 2 k r 1 3 mod 6 ( class ) 11 1 22 4 7 1 C 2 11 3 88 16 29 5 C 1 11 5 352 10 117 3 C 0 11 7 1408 4 469 1 C 2 11 9 5632 16 1877 5 C 1 11 11 22528 10 7509 3 C 0
Figure 1. Even-k rotation of child classes through the mod-18 gate (Collatz case q = 3 ). Each increment of two in k multiplies the middle-even residue by 4, producing the cycle 10 4 16 10 . These residues correspond deterministically to classes C 0 C 2 C 1 C 0 (with 10 C 0 , 4 C 2 , 16 C 1 ). Hence the child class rotates in the fixed order C 0 C 2 C 1 C 0 , making the terminating class C 0 periodically available alongside the live classes.
Figure 1. Even-k rotation of child classes through the mod-18 gate (Collatz case q = 3 ). Each increment of two in k multiplies the middle-even residue by 4, producing the cycle 10 4 16 10 . These residues correspond deterministically to classes C 0 C 2 C 1 C 0 (with 10 C 0 , 4 C 2 , 16 C 1 ). Hence the child class rotates in the fixed order C 0 C 2 C 1 C 0 , making the terminating class C 0 periodically available alongside the live classes.
Preprints 177525 g001
Corollary 2 
(Linear segment pattern 19–35). List the odd integers n from 19 to 35. For each n, take its class (mod 6), its residue (mod 18), the reverse middle-even at the minimal admissible doubling k min (so k min = 2 for C 2 , k min = 1 for C 1 , none for C 0 ), and the class of the first child m = 2 k min n 1 3 when defined. The resulting first-child classes occur in the order
2 , x , 0 , 0 , x , 2 , 1 , x , 1 ,
i.e., C 2 , (none), C 0 , C 0 , (none), C 2 , C 1 , (none), C 1 .
n class ( n ) ( mod 6 ) n mod 18 ( 2 k min n ) mod 18 first - child class 19 C 2 ( 1 ) 1 4 C 2 21 C 0 ( 3 ) 3 - - none ( terminating parent ) 23 C 1 ( 5 ) 5 10 C 0 25 C 2 ( 1 ) 7 10 C 0 27 C 0 ( 3 ) 9 - - none ( terminating parent ) 29 C 1 ( 5 ) 11 4 C 2 31 C 2 ( 1 ) 13 16 C 1 33 C 0 ( 3 ) 15 - - none ( terminating parent ) 35 C 1 ( 5 ) 17 16 C 1
Explanation. 
For each n: determine its class by n mod 6 (C0: 3, C1: 5, C1: 1). If n C 0 , no admissible reverse step exists. If n C 1 (resp. C 2 ), take k min = 1 (resp. k min = 2 ) by admissibility parity. Then use the reverse mod-18 gate (Lemma 6): ( 2 k min n ) mod 18 { 10 , 4 , 16 } with the fixed mapping 10 C 0 , 4 C 2 , 16 C 1 . Evaluating these nine cases yields the displayed sequence 2 , x , 0 , 0 , x , 2 , 1 , x , 1 . □
Remark 2 
(Periodicity of the linear pattern). The assignment “first-child class of n” depends only on n mod 18 and on the parity of k min , which in turn depends only on n mod 3 . Since listing odd integers in order cycles their residues through 1 , 3 , 5 , 7 , 9 , 11 , 13 , 15 , 17 ( mod 18 ) and then repeats, the 9-term pattern
2 , x , 0 , 0 , x , 2 , 1 , x , 1
repeats indefinitely: it has period 18 in n (i.e., period 9 when restricted to consecutive odd integers).

Even distribution of first-child classes (per residue cycle).

Over any run of nine consecutive odd integers, the residues cycle 3 , 5 , 7 , 9 , 11 , 13 , 15 , 17 , 1 ( mod 18 ) (reindexed for clarity). Using admissibility parity for k min and the fixed middle-even gate (Lemma 6, Lemma 4), the first-child class for each entry in this 9-term cycle follows the pattern
C 0 × , C 1 C 0 , C 2 C 0 , C 0 × , C 1 C 2 , C 2 C 1 , C 0 × , C 1 C 1 , C 2 C 2 ,
where “×” marks a terminating parent ( C 0 has no admissible reverse step).
Consequence. Among the six live residues in the cycle (the three C 0 parents excluded), the first-child classes occur exactly twice each: two C 0 , two C 1 , and two C 2 . Hence, restricted to odd n ¬ 3 ( mod 6 ) , the first-child classes are equidistributed with frequency 1 / 3 each, and the 9-term pattern repeats periodically with period 18 in n (period 9 when listing consecutive odd integers).

7. Forward Mod 6 and Lift to Mod 18

Lemma 5 
(Forward middle-even residues mod 18). For odd n,
3 n + 1 10 ( mod 18 ) , n 3 ( mod 6 ) , 16 ( mod 18 ) , n 5 ( mod 6 ) , 4 ( mod 18 ) , n 1 ( mod 6 ) .
Proof. 
Check the three odd residues modulo 6:
3 · 1 + 1 = 4 4 ( mod 18 ) , 3 · 3 + 1 = 10 10 ( mod 18 ) , 3 · 5 + 1 = 16 16 ( mod 18 ) .
Thus 3 n + 1 4 , 10 , 16 (mod 18) according as n 1 , 3 , 5 (mod 6). □

7.1. Reverse Step: Admissible k (Odd/Even) and Valid Children

Lemma 6 
(Reverse middle-even residues mod 18). Let n be odd and k 1 admissible, with m = 2 k n 1 3 Z . Then
2 k n 10 , 4 , 16 ( mod 18 ) ,
and the child class is determined by the common mod-18 gate
10 C 0 , 4 C 2 , 16 C 1 .
Proof. 
Admissibility means 2 k n 1 ( mod 3 ) . Modulo 9, the residues 1 ( mod 3 ) are exactly { 1 , 4 , 7 } . Among even residues modulo 18, these lift uniquely to
1 10 , 4 4 , 7 16 ( mod 18 ) .
Hence 2 k n 10 , 4 , 16 (mod 18). Moreover,
10 1 3 3 ( mod 6 ) ( C 0 ) , 4 1 3 1 ( mod 6 ) ( C 2 ) , 16 1 3 5 ( mod 6 ) ( C 1 ) ,
so the child class is chosen by the stated gate. □

Forward–reverse equivalence.

Lemma 7 
(Middle-even equivalence mod 18). If 3 n , there exists an admissible k 1 with
2 k n 3 n + 1 ( mod 18 ) .
Proof. 
Work modulo 9. Since 3 n , n is a unit mod 9. We want 2 k n 3 n + 1 ( mod 9 ) , i.e.
2 k 3 + n 1 ( mod 9 ) .
Because ( Z / 9 Z ) × has order 6 and is generated by 2, its even powers are exactly { 1 , 4 , 7 } 1 ( mod 3 ) and its odd powers are { 2 , 5 , 8 } 2 ( mod 3 ) . Since 3 + n 1 n 1 ( mod 3 ) , the target residue lies in the required parity coset (even if n 1 ( mod 3 ) , odd if n 2 ( mod 3 ) ), so there exists k with 2 k 3 + n 1 ( mod 9 ) . As 2 k n and 3 n + 1 are both even, their difference is divisible by 9 and by 2, hence by lcm ( 9 , 2 ) = 18 , yielding 2 k n 3 n + 1 ( mod 18 ) . □

8. Forward–Reverse Equivalence

Proposition 2 
(Two-step equivalence at the middle even). For each live odd n ( 3 n ), there exists an admissible reverse step whose middle-even residue equals the forward middle-even residue (Lemma 7). Moreover, for any admissible step the middle even lies in the same three-way gate { 4 , 10 , 16 } (mod 18); in the matching case E r ( n , k ) E f ( n ) ( mod 18 ) they select the same child class. In particular, every admissible k lands in one of { 10 , 4 , 16 } ( mod 18 ) and is decoded by the same gate 10 C 0 , 4 C 2 , 16 C 1 .
Corollary 3 
(Class agreement at the gate). For any odd n and any admissible k with 2 k n 3 n + 1 ( mod 18 ) , the forward and reverse steps select the same child class at the middle-even gate.
Proof. 
By Proposition 2, E r ( n , k ) E f ( n ) ( mod 18 ) , and by the fixed gate mapping 10 C 0 , 4 C 2 , 16 C 1 , both directions choose the same class. □
Forward gate. By Lemma 5, for odd n we have
E f ( n ) mod 18 { 10 , 16 , 4 } ,
with the residue determined by n mod 6 , and these three residues map to the child classes via 10 C 0 , 4 C 2 , 16 C 1 .
Reverse gate. For any admissible k, Lemma 6 gives
E r ( n , k ) mod 18 { 10 , 4 , 16 } ,
and the same mapping 10 C 0 , 4 C 2 , 16 C 1 determines the child class.
Remark 3. 
The first child uses t = 1 and returns to 1 as above. Larger t give other (valid) reverse children (e.g. t = 2 m = 5 C 1 ), but the minimal-child dynamics that drive our arguments are governed by k min = 2 at n = 1 , which anchors the system at the 1 4 2 1 loop and shows that 1 is always a fixed reference point. This consistency ensures the reverse tree connects globally while still allowing infinitely many valid children.
Corollary 4 
(Deterministic class agreement). For any odd n and any admissible k, the child class obtained from the forward first step E f ( n ) equals the child class obtained from the reverse step E r ( n , k ) . For live n, there exists an admissible k with E r ( n , k ) E f ( n ) ( mod 18 ) .

9. The Trivial Loop from n = 1 : Reverse and Forward Views

Lemma 8 
(1 is C 2 and has even admissible doublings). Since 1 1 ( mod 6 ) , the integer 1 lies in class C 2 . Admissibility for the reverse step m = 2 k n 1 3 Z requires 2 k n 1 ( mod 3 ) . With n = 1 and 2 1 ( mod 3 ) , this gives ( 1 ) k 1 , hence k is even. The minimal admissible doubling count is k min = 2 .
Proposition 3 
(First child of 1 equals 1). With k min = 2 , the reverse child of n = 1 is
m 1 = 2 k min · 1 1 3 = 4 1 3 = 1 ,
so the first child of 1 is 1 again. Consequently, under the reverse map with minimal admissible doubling, n = 1 is a fixed point in class C 2 .
Remark 4 
(Consistency with the forward picture: the 4 2 1 loop). From the forward side, starting at 1,
3 · 1 + 1 = 4 2 1 ,
which is the well-known 4 2 1 loop. Thus the reverse fixed point at n = 1 (with minimal k = 2 ) corresponds exactly to the unique forward cycle.
Remark 5 
(Other even doublings). Any admissible doubling for n = 1 has the form k = 2 t with t 1 , yielding
m ( t ) = 2 2 t 1 3 = 4 t 1 3 Z .
The first child uses t = 1 and returns to 1 as above. Larger t give other (valid) reverse children (e.g. t = 2 m = 5 C 1 ), but for our purposes the minimal-child dynamics at n = 1 are governed by k min = 2 , which identifies 1 as a fixed point and ensures consistency with the forward 4 2 1 loop.

10. No Nontrivial Cycles

Lemma 9 
(Infinite children; unique parent).  In the Collatz function, each parent has infinitely many children, and each child has exactly one parent.
Proof. 
A parent has infinitely many children because, for any live odd n, the admissible exponents are exactly k = k min ( n ) + 2 t with t 0 (Lemma 2). Each t produces a distinct odd child m ( t ) = ( 2 k min + 2 t n 1 ) / 3 , hence there are infinitely many children. A child has exactly one parent because in the forward direction 3 n + 1 is always even, and repeated halving continues until the first odd integer appears. That odd is unique, since all values between are even, and no two odd integers share the same double, the parent is uniquely determined. □
Lemma 10 
(Reverse bound: unique path to 1 ). Build the reverse graph level by level starting at 1 as follows: a child of an odd parent m is any odd n whose forward step (form 3 n + 1 and halve until the first odd appears) lands at m. Assign each child depth one more than its parent’s depth. Then every node that appears in this reverse construction has a unique finite path to 1 (its parent chain), hence its reverse position is completely determined by the rule “each child has exactly one parent.”
Proof. 
Existence (finite path). By construction, 1 is at depth 0, serving as the unique root. It has no parent apart from its trivial self-loop, and thus is not itself a child. Whenever a child n is added under a parent m, we set depth ( n ) = depth ( m ) + 1 . Hence every node is created at some finite depth and admits a finite parent chain that ultimately terminates at 1.
Uniqueness (only one path). Each child has exactly one parent by the step rule: from n, 3 n + 1 is even and the first odd reached by halving is the parent; there is no other odd between n and that parent. Hence, for any node x at depth d, its parent at depth d 1 is uniquely determined; repeating this d times yields a single chain back to 1 with no alternatives. Therefore the path to 1 is unique. □
Corollary 5 
(Reverse tree structure). Within this construction the reverse graph is a rooted tree with root 1: every node has in-degree 1 (unique parent) and a unique simple path to 1.
Proposition 4 
(Forward orbit equals reverse parent chain). Let n 0 be odd. Define its parent P ( n ) to be the first odd reached by the forward rule: form 3 n + 1 and divide by 2 until odd. Then the forward odd subsequence ( n j ) j 0 generated by T satisfies
n j + 1 = P ( n j ) ( j 0 ) .
In particular, the forward odd orbit is exactly the reverse parent chain read in reverse order.
Proof. 
By definition of P ( n ) , P ( n ) is the first odd encountered after applying 3 n + 1 and halving. But this is precisely how the next odd iterate of T is defined. Hence n j + 1 = P ( n j ) . □
Corollary 6 
(Unique parentage ⇒ forward convergence). By Lemma 9 each odd has a unique parent; by Corollary 5 the reverse graph is a rooted tree with root 1. Therefore, every parent chain is finite and terminates at 1. By Proposition 4, every forward odd orbit coincides with that chain read backward. Hence every forward trajectory reaches 1; no odd cycles or runaways can occur.
Corollary 7 
(Elimination of loops, merges, and forward divergence).  Assume the step rules of the function and the two facts established above: (i) every parent has infinitely many admissible children; (ii) every child has exactly one parent. Together with the reverse-tree bound that every path begins at 1, the following hold.
  • (A) No loops. A loop would require a parent producing a child, which produces a child, and so on, eventually producing a child equal to the original parent. But each child has a unique parent and every node’s parent chain begins at 1. If a loop existed, the parent chain would never reach 1, contradicting Lemma 10. Hence loops cannot exist.
  • (B) No forward runaways. Suppose some starting odd n under the forward function (apply 3 n + 1 , then halve until odd, repeat) never reaches 1. In the reverse picture, n has a unique parent, that parent has a unique parent, and so on; by Lemma 10 this parent chain begins at 1, so it is finite. The forward trajectory is just the same chain read in inverse, so it must terminate at 1 in finitely many steps. An infinite forward “runaway” would contradict this, so forward divergence cannot occur.
  • (C) No merges (no reverse convergence). If two distinct reverse paths converged, some child would have two different parents. This contradicts the uniqueness of the parent. Therefore distinct reverse branches never merge.

11. Higher q: Dead-Class Existence and Coverage

Lemma 11 
(Dead-class criterion for general q). Let q 3 be odd and let r n ( mod q ) . The reverse step
R q ( n ; k ) = 2 k n 1 q Z 2 k r 1 ( mod q )
is possible for some k 1 if and only if r is a unit modulo q and r 1 2 ( Z / q Z ) × . Equivalently, the class of r is
  • terminating if r 0 ( mod q ) ;
  • dead if either gcd ( r , q ) 1 or r is a unit with r 1 2 ;
  • live otherwise, with k min the least k 1 s.t. 2 k r 1 ( mod q ) .
Proof. 
The reverse integrality condition is q ( 2 k n 1 ) , i.e. 2 k n 1 ( mod q ) . If r 0 then 2 k r 0 ¬ 1 so no k exists (terminating). If gcd ( r , q ) 1 the congruence has no solution (no inverse). If r is a unit, write 2 k r 1 ( mod q ) : such k exists iff r 1 lies in the cyclic subgroup 2 generated by 2. Minimality of k is by definition. □
Corollary 8 
(Coverage criterion). For a fixed odd q, there are no dead classes (all nonzero residues are live) if and only if 2 = ( Z / q Z ) × . In particular, for primes p where 2 is a primitive root (e.g. p = 19 ), every r ¬ 0 ( mod p ) is live; for moduli such as q = 7 , 9 , 15 , 21 , proper containment 2 ( Z / q Z ) × or many nonunits ensures the existence of dead classes.
q class lens
(mod 2 q )
residue lens
(mod 2 q 2 )
live
classes
terminating
classes
dead/invalid
residues
3 mod 6 mod 18 2 1 0  (rotation)
5 mod 10 mod 50 4 1 0  (rotation)
7 mod 14 mod 98 3 1 3  (splitting)
9 mod 18 mod 162 6 1 2  (splitting)
15 mod 30 mod 450 4 1 10  (collapse)
21 mod 42 mod 882 6 1 14  (collapse)
Remark 6 
(Labels: rotation, splitting, collapse). “Rotation” indicates 2 = ( Z / q Z ) × (no dead classes); “splitting” indicates 2 is a proper subgroup of the units (some live, some dead); “collapse” highlights that many residues are nonunits (composite q), so most classes are dead. These agree with the annex tables for q = 3 , 5 , 7 , 9 , 15 , 21 .

12. All Integers Included for q = 3

Lemma 12 
(Global inclusion at q = 3 ). For q = 3 there are no dead classes: every odd n satisfies either n 0 ( mod 3 ) (terminating) or admits an admissible reverse doubling k with R 3 ( n ; k ) = 2 k n 1 3 Z . Since every even integer halves to the odd layer, all positive integers lie in the q = 3 system.
Proof. 
Modulo 3, ( Z / 3 Z ) × = { 1 , 2 } and 2 = { 1 , 2 } , so Corollary 8 gives no dead classes: every r { 1 , 2 } is live, and r = 0 (odd multiples of 3) is terminating. Thus every odd is either live or terminating. Any even N can be repeatedly halved to an odd n, placing N into the same framework. The operational child-class decision is made at the middle even via the common mod-18 gate 10 C 0 , 4 C 2 , 16 C 1 (Lemmas 5, 6), and forward–reverse equivalence (Proposition 2) maintains consistency. Hence all integers are included in the q = 3 system. □

13. Final Theorem

Theorem 1 
(Resolution of the 3 n + 1 dynamics in the q = 3 system). Combining Lemmas 5, 6, 7, 1, 12, Corollary 5, and Corollary 6, every forward trajectory enters the loop 4 2 1 .
Proof (structured).
Step 1: Common middle-even gate for forward and reverse. By Lemma 5, for odd n the forward middle-even E f ( n ) = 3 n + 1 lies in { 10 , 16 , 4 } ( mod 18 ) and selects the next child class via the fixed gate 10 C 0 , 4 C 2 , 16 C 1 . By Lemma 6, every admissible reverse middle-even E r ( n , k ) = 2 k n lies in the same three residues with the same gate. Lemma 7 guarantees that for each live odd n there is an admissible k with E r ( n , k ) E f ( n ) ( mod 18 ) , so forward and reverse agree at the gate.
Step 2: Unique parentage ⇒ reverse tree. By Lemma 9 each odd has exactly one parent; hence, by Corollary 5, the reverse graph is a rooted tree with root 1.
Step 3: All integers lie in the system; C 0 is terminating. Lemma 12 shows that for q = 3 there are no dead classes: every odd is either terminating ( C 0 ) or live (admits a reverse step). Lemma 1 shows that C 0 does not have a reverse child. Thus every odd integer is either the root 1, a node of the reverse tree (hence with a finite parent chain to 1), or a terminating parent in C 0 .
Step 4: Forward convergence. Reading edges forward in the tree gives the unique forward path from each node to 1. Since all runaways and odd cycles are excluded, the only forward cycle remaining is the trivial loop 4 2 1 . Therefore, every forward trajectory converges into 4 2 1 . □

14. Conclusions

This work recasts the dynamics of 3 n + 1 into a fully arithmetic framework. The class lens (mod 6) organizes the odd layer, while the operational middle-even lens (mod 18) unifies parity with the division-by-3 constraint and produces a deterministic local gate { 10 , 4 , 16 } { C 0 , C 2 , C 1 } . On the reverse side, admissibility is read purely modulo q (here q = 3 ), and k-rotation in mod 18 cycles the available child classes C 0 C 2 C 1 C 0 , making the terminating class C 0 periodically available alongside the live classes. The forward–reverse middle-even equivalence shows that both directions pass through the same gate and therefore select the same child class. Because q = 3 has no dead classes (every odd is either live or terminating), every integer lies in this system, and the reverse graph has the structure of a tree with root 1, ensuring unique parentage and excluding nontrivial cycles. As assembled in Theorem 1, every forward trajectory converges to the loop 4 2 1 .
Historically, the Collatz problem was studied through probabilistic heuristics, stopping-time statistics, and ergodic averages [1,2,3,4,5,6]. The present treatment is purely arithmetic: by partitioning odd integers into residue classes, aligning forward and reverse dynamics through their common middle-even residues, and establishing unique parentage together with the exclusion of odd cycles, the dynamics become fully deterministic at each step. In this setting, the “conjecture” in the classical case ceases to be a conjecture: within this operator framework it is a theorem, every trajectory enters 4 2 1 . A constructive arithmetic account of offsets, block coverage, and recursive lifts is developed separately in the companion supplement [7].
Outlook. The annexed tables for higher q exhibit the rotation/splitting/collapse trichotomy of live classes dictated by 2 ( Z / q Z ) × . Although these higher-order lenses are not needed for q = 3 resolution, they clarify why dead classes arise for q { 7 , 9 , 15 , 21 } and, conversely, why their absence at q = 3 implies global coverage of the integers in the classical Collatz setting.

Appendix A. Annex: Tables for q=x

How to read the annex tables (odds q=3 through q=21)

Each table lists, for a fixed odd modulus q, the behavior of odd classes under the reverse Collatz step. The columns are:
  • raw odd ( mod 2 q ) : the odd residue class in the parity lens;
  • r : = n mod q : the residue that controls divisibility by q;
  • k min : the minimal admissible doubling count solving 2 k n 1 ( mod q ) , equivalently 2 k r 1 ( mod q ) ;
  • status:
    terminating if r = 0 (odd multiples of q have no reverse parent);
    dead if gcd ( r , q ) 1 (so n is not invertible mod q), or if r is a unit but r 1 2 ( Z / q Z ) × (no k with 2 k r 1 );
    live if r is a unit and r 1 2 ; then k min is the least k 1 with 2 k r 1 ( mod q ) .
The following subsections list the tables for q = 3 , 5 , 7 , 9 , 11 , 13 , 15 , 17 , 19 , 21 .

Appendix A.1. q=3

class raw odd ( mod 6 ) r : = n mod 3 k min s . t . 2 k n 1 ( mod 3 ) status C 0 3 0 - - terminating C 1 5 2 1 live C 2 1 1 2 live

Appendix A.2. q=5

class raw odd ( mod 10 ) r : = n mod 5 k min s . t . 2 k n 1 ( mod 5 ) status C 0 5 0 - - terminating C 1 7 2 3 live C 2 9 4 2 live C 3 1 1 4 live C 4 3 3 1 live

Appendix A.3. q=7

class raw odd ( mod 14 ) r : = n mod 7 k min s . t . 2 k n 1 ( mod 7 ) status C 0 7 0 - - terminating C 1 9 2 2 live C 2 11 4 1 live C 3 13 6 none dead C 4 1 1 3 live C 5 3 3 none dead C 6 5 5 none dead

Appendix A.4. q=9

class raw odd ( mod 18 ) r : = n mod 9 k min s . t . 2 k n 1 ( mod 9 ) status C 0 9 0 - - terminating C 1 11 2 5 live C 2 13 4 4 live C 3 15 6 none dead C 4 17 8 3 live C 5 1 1 6 live C 6 3 3 none dead C 7 5 5 1 live C 8 7 7 2 live

Appendix A.5. q=11

class raw odd ( mod 22 ) r : = n mod 11 k min s . t . 2 k n 1 ( mod 11 ) status C 0 11 0 - - terminating C 1 13 2 9 live C 2 15 4 8 live C 3 17 6 1 live C 4 19 8 7 live C 5 21 10 5 live C 6 1 1 10 live C 7 3 3 2 live C 8 5 5 6 live C 9 7 7 3 live C 10 9 9 4 live

Appendix A.6. q=13

class raw odd ( mod 26 ) r : = n mod 13 k min s . t . 2 k n 1 ( mod 13 ) status C 0 13 0 - - terminating C 1 15 2 11 live C 2 17 4 10 live C 3 19 6 7 live C 4 21 8 9 live C 5 23 10 2 live C 6 25 12 6 live C 7 1 1 12 live C 8 3 3 8 live C 9 5 5 3 live C 10 7 7 1 live C 11 9 9 4 live C 12 11 11 5 live

Appendix A.7. q=15

class raw odd ( mod 30 ) r : = n mod 15 k min s . t . 2 k n 1 ( mod 15 ) status C 0 15 0 - - terminating C 1 17 2 3 live C 2 19 4 2 live C 3 21 6 none dead C 4 23 8 1 live C 5 25 10 none dead C 6 27 12 none dead C 7 29 14 none dead C 8 1 1 4 live C 9 3 3 none dead C 10 5 5 none dead C 11 7 7 none dead C 12 9 9 none dead C 13 11 11 none dead C 14 13 13 none dead

Appendix A.8. q=17

class raw odd ( mod 34 ) r : = n mod 17 k min s . t . 2 k n 1 ( mod 17 ) status C 0 17 0 - - terminating C 1 19 2 7 live C 2 21 4 6 live C 3 23 6 none dead C 4 25 8 5 live C 5 27 10 none dead C 6 29 12 none dead C 7 31 14 none dead C 8 33 16 4 live C 9 1 1 8 live C 10 3 3 none dead C 11 5 5 none dead C 12 7 7 none dead C 13 9 9 1 live C 14 11 11 none dead C 15 13 13 2 live C 16 15 15 3 live

Appendix A.9. q=19

class raw odd ( mod 38 ) r : = n mod 19 k min s . t . 2 k n 1 ( mod 19 ) status C 0 19 0 - - terminating C 1 21 2 17 live C 2 23 4 16 live C 3 25 6 4 live C 4 27 8 15 live C 5 29 10 1 live C 6 31 12 3 live C 7 33 14 11 live C 8 35 16 14 live C 9 37 18 9 live C 10 1 1 18 live C 11 3 3 5 live C 12 5 5 2 live C 13 7 7 12 live C 14 9 9 10 live C 15 11 11 6 live C 16 13 13 13 live C 17 15 15 7 live C 18 17 17 8 live

Appendix A.10. q=21

class raw odd ( mod 42 ) r : = n mod 21 k min s . t . 2 k n 1 ( mod 21 ) status C 0 21 0 - - terminating C 1 23 2 5 live C 2 25 4 4 live C 3 27 6 none dead C 4 29 8 3 live C 5 31 10 none dead C 6 33 12 none dead C 7 35 14 none dead C 8 37 16 2 live C 9 39 18 none dead C 10 41 20 none dead C 11 1 1 6 live C 12 3 3 none dead C 13 5 5 none dead C 14 7 7 none dead C 15 9 9 none dead C 16 11 11 1 live C 17 13 13 none dead C 18 15 15 none dead C 19 17 17 none dead C 20 19 19 none dead

References

  1. J. C. Lagarias, The 3x + 1 Problem and Its Generalizations, Amer. Math. Monthly 92 (1985), no. 1, 3–23. [CrossRef]
  2. R. Terras, A stopping time problem on the positive integers, Acta Arith. 30 (1976), 241–252.
  3. C. J. Everett, Iteration of the number-theoretic function f(2n) = n, f(2n + 1) = 3n + 2, Advances in Mathematics 25 (1977), 42–45. [CrossRef]
  4. G. J. Wirsching, The Dynamical System Generated by the 3n + 1 Function, Lecture Notes in Mathematics 1681, Springer, 1998.
  5. J. C. Lagarias (ed.), The Ultimate Challenge: The 3x + 1 Problem, American Mathematical Society, 2010.
  6. T. Tao, Almost all orbits of the Collatz map attain almost bounded values, arXiv:1909.03562 (2019).
  7. M. Spencer, Arithmetic Offsets and Recursive Coverage Patterns in the Collatz Function, Supplement to Spencer (2025), Manuscript, 2025.
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated