No Loops
Before we prove orbits must descend, let's prove they can't go in circles.
A Collatz cycle would be an orbit that returns to its starting value: . If such a cycle has odd steps and even steps (total ), then the starting value must satisfy:
where is a constant determined by the specific pattern of odd and even steps (the "parity word"). The denominator is the gap — and it must divide for to be a positive integer.
Hunt for cycles
Pick any combination. The widget computes the gap, enumerates all valid parity words, and checks whether ANY word produces a cycle:
Remainder distribution (T mod 13)
What to try
- (S=5, E=8) — the first non-trivial candidate. 91 parity words, gap = 13. Watch the histogram: the remainder at 0 is empty. No cycle.
- (S=1, E=2) — the trivial case. This gives the cycle 4 → 2 → 1. The only one.
- (S=3, E=5) — ascending (). Eliminated automatically: the gap is negative, forcing .
- (S=41, E=65) — too large to enumerate here, but computationally eliminated via a meet-in-the-middle search (87 minutes in Rust).
The convergents of
The cycle candidates come from the convergents of — the best rational approximations. Explore them:
Convergent 8/5
| $E$ (even steps) | 8 |
| $S$ (odd steps) | 5 |
| $K = E + S$ | 13 |
| $E/S$ | 1.60000000 |
| $|\log_2 3 - E/S|$ | 1.504e-2 |
| Type | Descending (2ᴱ > 3ˢ) |
| Status | Enumerated: no cycle |
Blue dots (ascending) are eliminated automatically. Red dots (descending) need computation or counting. Zoom in to see how the convergents cluster around without ever reaching it.
Why no cycles exist
The proof eliminates ALL possible cycles through three mechanisms:
1. Ascending convergents: sign argument
When (the gap is negative), the formula gives . Since we need positive integers, these are automatically eliminated. This kills roughly half of all candidates.
2. Small convergents: direct computation
For : gap = 13, all 91 words checked, zero hits. For : gap ≈ , eliminated by MITM.
3. Large convergents: the counting argument
For : the number of parity words is , while the gap . Since : words/gap → 0 exponentially. There simply aren't enough words to hit even one multiple of the gap.
The second moment bound (Parseval's inequality) makes this rigorous: the deviation of the actual zero-count from the expected count is bounded by . When words/gap : the bound forces zero cycles. This holds for all .
The role of
Why does this work? The gap is governed by how well approximates . The best approximations (convergents of the continued fraction) give the smallest gaps — but even these aren't small enough.
The irrationality of is what prevents cycles. If were rational (), then and the gap would be zero — cycles would exist trivially. But is irrational, so for any positive integers, and the gap is always nonzero.
The convergents of are:
Each gives a cycle candidate. All fail. The ascending ones (even indices) fail by sign. The descending ones (odd indices) fail by computation or counting.
Front 1: Complete
Theorem. No non-trivial Collatz cycle exists.
Every convergent is eliminated. The cycle threat is dead. Now we focus on the other threat: can an orbit grow forever?