Interactive Companion · Collatz Map · August 2026

The residue graph of the accelerated Collatz map

A finite quotient of the Collatz dynamics, drawn in its own metric. Every node below is an odd residue class modulo 2M; every edge is a step of the map that some integer in the class can take. Laid out 2-adically, the graph's coset structure becomes visible geometry — and so does the reason no such finite graph can rule out cycles.

§1The map and the partition

Collapse the even steps of the Collatz iteration and the dynamics live on odd integers under the accelerated map

U(x) = (3x+1) / 2a(x), a(x) = v2(3x+1),

where v2 is the 2-adic valuation. The exponent a(x) is determined by x mod 8, which partitions the odd integers into three families: D = {4n+3} with a = 1, B = {8n+1} with a = 2, and C = {8n+5} with a ≥ 3 — the spikes, where deep powers of two divide out at once. These three colors are the only colors on this page.

§2The graph GK,M

Fix a modulus 2M and an exponent cap max_a = K+3. The graph GK,M has a node for each odd residue r mod 2M and an edge r → s whenever some integer x ≡ r with a(x) ≤ max_a has U(x) ≡ s. The key point is that this graph is nondeterministic: knowing x mod 2M determines U(x) only modulo 2M−a, because the division by 2a consumes a bits. So each node has not one successor but a full coset of 2a of them — the top a bits of the target are free, fixed by bits of x the residue never saw. Any genuine cycle of integers with exponents ≤ max_a projects to a directed cycle here; that is the sense in which the graph could, in principle, exclude cycles — if it were acyclic.

Hover over a perimeter node — or focus the circle and use ← → — to inspect its residue, exponent, and target coset.
The graph GK,M with K = 7 (max_a = 10). Each node's out-edges land on one 2-adic coset; in bit-reversed ordering a coset is a contiguous arc, so fan width is the exponent. Switch to natural ordering to see the same graph without its metric.

§3Reading the picture

Hover over any node. A teal node (family D, a = 1) throws a tight fan of 2 targets; a violet node (B, a = 2) a fan of 4; a coral spike sprays 8, 16, 32 or more. The inspector under the circle shows why: the target residues agree in their low M−a bits and differ freely in the top a — one congruence class, drawn as one arc. This works because the nodes are placed in bit-reversed order, which makes 2-adically close residues neighbors on the circle: distance on the circle approximates distance in ℤ2. In the natural (archimedean) ordering, the identical edge set collapses into an undifferentiated chord tangle. The comparison is the point: this object has a geometry, and it is not the geometry of the number line.

§4The spike train

There is a second picture, complementary to the circle: plot the exponent a(x) = v2(3x+1) over consecutive odd x. Families D and B lay down a baseline of 1s and 2s; family C contributes the isolated tall excursions — a spike train. Its shape is the most familiar object in elementary number theory, the division-by-two (“ruler”) pattern: since x ↦ 3x+1 is a 2-adic isometry, the valuation landscape it produces is the classical one, merely shifted in phase. Heights ≥ k occupy a single residue class mod 2k and thin out dyadically.

Hover over a bar — deep spikes show their half-rotation tower.
The exponent landscape. Hover over a spike of height ≥ 5 and the inspector prints its tower decomposition Lc(n) = 4j·Lσ−j(c)(m). The marked spike at x = 53 (height 5) is the same object as a 32-edge fan of the node 53 in the circle of §2–3 at M = 7: spike height there is fan width here.

The correspondence between the two pictures is exact. A spike of height a in this train is, reduced mod 2M, a node of out-degree 2a in the graph — one coset, one arc. Height in one representation is width in the other; and the fans are precisely what the deterministic shortcut of §5 throws away.

§5Recurrence, and what finite graphs cannot show

If GK,M were acyclic away from the fixed point at 1, bounded-exponent Collatz cycles would be excluded. It is nowhere near acyclic. At every modulus tested the graph has one giant strongly connected component containing all but a vanishing sliver of nodes — the gray stragglers, which are exactly the residue classes whose exponent exceeds max_a (they emit no edges under the cap) together with the nodes stranded behind them, (M−9)·2M−12 in all for K = 7:

giant SCC across moduli, K = 7
Mnodesgiant SCCoutside
111,0241,0231
122,0482,0453
134,0964,0888
148,1928,17220
1516,38416,33648
1632,76832,656112
1765,53665,280256
18131,072130,496576
19262,144260,8641,280
20524,288521,4722,816

There is a tempting shortcut here, and it is wrong. Treat each residue as an integer, give it the single successor U(r) mod 2M, and the resulting deterministic graph really is acyclic at these parameters. But that graph omits edges a genuine cycle would use: an actual integer's successor residue is only pinned down modulo 2M−a, and the deterministic quotient silently picks one of the 2a candidates. Its acyclicity is an artifact of thrown-away fan width — each fan above is exactly what it discards. The sound graph is the nondeterministic one, and the sound graph is recurrent. Full statements, proofs, and the wider program are in the paper [1].

§6Reproduce it

Everything on this page is computed in your browser from the definitions above — the graph, the strongly connected components, the layout. The same construction as a standalone script, residue_graph.py, lives in the repository [3]. Generate the table with: python3 residue_graph.py --sweep 7 11 20

§7References

  1. M. M. Ross, Spike Structures and 2-adic Transition Laws in the Accelerated Collatz Map, Zenodo (2026). doi:10.5281/zenodo.19039375
  2. M. M. Ross, Loop Structure of Collatz-Type Functions 3x+n: A Conjugacy Theorem and Powers of Three, Zenodo (2026). doi:10.5281/zenodo.19387418
  3. Code repository: github.com/michaelmross/Collatz
  4. M. M. Ross, earlier structural notes (2023): doi:10.6084/m9.figshare.24778641, doi:10.6084/m9.figshare.24778536
  5. D. J. Bernstein, A non-iterative 2-adic statement of the 3n+1 conjecture, Proc. Amer. Math. Soc. 121 (1994), 405–408 — the 2-adic conjugacy behind the recurrence heuristic of §5.