Generalized Collatz is undecidable (Conway)
Parent: collatz
Conway (1972, Unpredictable Iterations) generalized the [[collatz|3n+1]] map and proved the family is Turing-complete — so its convergence question has no decision procedure.
Generalized Collatz functionFix a modulus
dand rationals . Defineg(n) = aᵢ·n + bᵢwhenevern ≡ i (mod d), with theaᵢ,bᵢchosen sog(n)is always a positive integer. (Collatz isd=2:g(n)=n/2or3n+1.)
Conway (1972)The problem — given such a
gand a startn, does the orbitn, g(n), g²(n), …ever reach1? — is undecidable.
ProofReduce the halting problem. A register (Minsky) machine is Turing-complete; its instructions are
inc(j)(increment registerj, go to states') andtest/dec(j)(if registerj>0, decrement and go tos', else go tos''). Deciding whether it halts is undecidable.Encode a configuration (current state
s, register contentsr₁,…,rₘ) as one integer, using distinct primes (one per state) and (one per register):One application of
g= one machine step. Take the modulus to be the product of all these primes. Then reveals both which state we're in (the unique dividing ) and which registers are zero (whether ). Case-split on that residue and multiply by the matching rational:
inc(j) → s': multiply by ;test/dec(j): if , multiply by ; else by .Each rule is "multiply
Nby a constant fixed byN's residue class modd", i.e. exactly a generalized-Collatz step (and each is integer-valued by construction). Send the halt state's configuration to1.Now the machine halts ⟺ the
g-orbit of the start configuration reaches1. A decider for "reaches1" would decide halting — contradiction. ∎
FRACTRAN (Conway, 1987) is the same idea as a language: a program is a list of fractions f₁,…,fₖ; from n, replace it by n·fᵢ for the first i making the product an integer; halt if none does. It is Turing-complete (Conway's PRIMEGAME even enumerates the primes) — generalized-Collatz undecidability is the corollary.
Tie to the thread
This is the concrete face of "does the iteration converge?" = halting = undecidable in general (recursion-is-a-phase-transition). You only recover a decidable answer by restricting — a contraction or a well-founded P×C measure is a decidable sufficient certificate (recursion-convergence-contraction, relaxing-undecidability). Collatz is hard precisely because it offers no such measure.