Skip to content

Affine Orbit Structure ​

The affine structure of orbits within residue classes is due to Terras (1976) and Everett (1977). This page explains it in the dropping-set notation used on this site.

Statement ​

Theorem (Terras 1976, Everett 1977; stated in dropping-set notation). For any integer nn with dropping time kk and orbital oddity ss, within each residue class mod 2k−s2^{k-s}:

dest(n)=3s2k−s⋅n+C\text{dest}(n) = \frac{3^s}{2^{k-s} } \cdot n + C

where CC is a constant depending only on the residue class, not on nn. The slope 3s/2k−s3^s / 2^{k-s} is the contraction ratio.

Similarly, the orbit sum ∑j=0k−1fj(n)\sum_{j=0}^{k-1} f^j(n) is an exact affine function of nn within each residue class.

The theorem speaks about one residue class at a time. Whether every residue class of Dsetk\text{Dset}_k has the same ss, and so the same slope, is a separate question. Terras proved that each Dsetk\text{Dset}_k agrees, apart from at most finitely many integers, with a union of residue classes mod 2k−s2^{k-s} that all have the same ss. That there are no exceptions at all among n≥2n \geq 2 is his coefficient stopping time conjecture. It is open, and it would imply that there are no nontrivial cycles (Lagarias, The 3x+1 problem and its generalizations, 1985). Checked by computer: there is no exception in any dropping set with k≤39k \le 39, nor at any n≤107n \le 10^7. In that range the slope is the same across all residue classes of Dsetk\text{Dset}_k, and only the intercept CC varies.

Why it matters ​

Collatz dynamics are piecewise-affine: within each residue class of a Dropping Set, the destination and the orbit sum are affine functions of the starting value (and so is the orbit maximum in every class I have checked, k≤39k \le 39). Each individual drop is simple; the difficulty is in how the pieces chain together. The contraction ratio 3s/2k−s3^s/2^{k-s} connects directly to the list of possible dropping times: 3s/2k−s<13^s/2^{k-s} < 1 iff k>s⋅log⁡26k > s \cdot \log_2 6.

Examples ​

Table of verified slopes:

kkssSlope 3s/2k−s3^s/2^{k-s}DecimalExample
101/21/20.500dest=n/2\text{dest} = n/2
313/43/40.750dest=34n+14\text{dest} = \frac{3}{4}n + \frac{1}{4}
629/169/160.5625dest=916n+516\text{dest} = \frac{9}{16}n + \frac{5}{16}
8327/3227/320.844Two residue classes, same slope
11481/12881/1280.633Three residue classes, same slope
135243/256243/2560.949Seven residue classes, same slope

Worked example for Dset3\text{Dset}_3: All members satisfy n≡1(mod4)n \equiv 1 \pmod{4}. For n=5n = 5: dest=34(5)+14=164=4\text{dest} = \frac{3}{4}(5) + \frac{1}{4} = \frac{16}{4} = 4. Verify: 5→16→8→45 \to 16 \to 8 \to 4. ✓

Checked exactly (using Fraction arithmetic) on the first four members of each of the 81,119 residue classes that make up the dropping sets with k≤39k \le 39.

Proof ​

By induction on kk (number of Collatz steps).

Base case (k=0k = 0): f0(n)=n=3020n+0f^0(n) = n = \frac{3^0}{2^0} n + 0. ✓

Inductive step (k→k+1k \to k+1): Assume after kk steps with parity word w=(w0,…,wk−1)w = (w_0, \ldots, w_{k-1}) containing ss ones:

fk(n)=3s2k−sn+Cwf^k(n) = \frac{3^s}{2^{k-s} } n + C_w

We must show this holds at step k+1k+1.

Case 1: fk(n)f^k(n) is even (halving step, ss unchanged):

fk+1(n)=fk(n)2=3s2k−s+1n+Cw2f^{k+1}(n) = \frac{f^k(n)}{2} = \frac{3^s}{2^{k-s+1} } n + \frac{C_w}{2}

Slope = 3s/2(k+1)−s3^s / 2^{(k+1)-s}. ✓

Case 2: fk(n)f^k(n) is odd (3x+13x+1 step, s→s+1s \to s+1):

fk+1(n)=3⋅fk(n)+1=3s+12k−sn+3Cw+1f^{k+1}(n) = 3 \cdot f^k(n) + 1 = \frac{3^{s+1} }{2^{k-s} } n + 3C_w + 1

Slope = 3s+1/2(k+1)−(s+1)3^{s+1} / 2^{(k+1)-(s+1)}. ✓

Key insight (bit consumption): The parities of the first kk iterates n,f(n),…,fk−1(n)n, f(n), \ldots, f^{k-1}(n) are determined by n mod 2k−sn \bmod 2^{k-s} whenever the kk-th step is a halving, as it is at a drop:

  • Each even step consumes one bit of nn (requires knowing one more bit of nn to determine the next parity)
  • Each odd step consumes no additional bits (the result of 3x+13x+1 is always even, so the next parity is determined for free)

After kk steps with ss odd steps and k−sk-s even steps, exactly k−sk-s bits of nn have been consumed. Therefore, the parity word — and hence the entire affine map — is determined by n mod 2k−sn \bmod 2^{k-s}.

Corollaries ​

Corollary 1 (Orbital Oddity). All members of Dsetk\text{Dset}_k in the same residue class share the same parity word, hence the same number of odd steps ss. That two different residue classes of the same Dsetk\text{Dset}_k also share ss is not proved in general; it would follow from the coefficient stopping time conjecture. It holds for every k≤39k \le 39 and every n≤107n \le 10^7.

Corollary 2 (Affine Orbit Sums). Each intermediate value fj(n)f^j(n) for j=0,…,k−1j = 0, \ldots, k-1 is affine in nn (by the theorem at step jj). Therefore the orbit sum ∑j=0k−1fj(n)\sum_{j=0}^{k-1} f^j(n) is also affine in nn within each residue class. The orbit maximum max⁡jfj(n)\max_j f^j(n) is the largest of kk affine functions, which in general is only piecewise affine. In every dropping set with k≤39k \le 39 it is a single affine function on each residue class (checked by computer: the maximum is always reached at the step whose slope is largest). For larger kk the same holds for all large enough nn in a residue class; I have no proof for the smallest ones.

Corollary 3 (Period of Dsetk\text{Dset}_k). Apart from at most finitely many exceptions, the members of Dsetk\text{Dset}_k are the integers n≥2n \geq 2 in certain residue classes mod 2k−s2^{k-s} (Terras 1976). The period is 2k−s2^{k-s}. For k≤39k \le 39 there are no exceptions (checked by computer); that there are none for any kk is the coefficient stopping time conjecture.

Corollary 4 (Dropping Condition). A drop needs the contraction ratio 3s/2k−s3^s / 2^{k-s} to be below 1 (because C≥0C \geq 0), which is equivalent to k>s⋅log⁡26k > s \cdot \log_2 6. So every dropping time satisfies k≥⌊s⋅log⁡26⌋+1k \geq \lfloor s \cdot \log_2 6 \rfloor + 1. In every case checked (k≤39k \le 39, and all n≤107n \le 10^7) the dropping time is exactly this smallest value, k=⌊s⋅log⁡26⌋+1=1,3,6,8,11,13,…k = \lfloor s \cdot \log_2 6 \rfloor + 1 = 1, 3, 6, 8, 11, 13, \ldots These are the "allowable" dropping times of OEIS A122437, whose own comments note that it is not known whether every nn obeys the formula. See Bit Destruction for the size of each drop.