An improved algorithm for checking the Collatz conjecture for all n < 2^N
Vigleik Angeltveit
TL;DR
The paper tackles the problem of verifying the Collatz conjecture for all $n < 2^N$ with an algorithm whose efficiency improves as $N$ grows, by processing numbers in bit-blocks and pruning vast subspaces with four specialized sieves. The core approach combines a recursive, bit-by-bit expansion with precomputed bitvectors and a rational-growth bound to quickly certify many branches while deferring only a small subset to explicit computation, executed efficiently on CPU and GPU. Key contributions include the Descent Sieve, mod $9$ Preimage Sieve, Path-Merging Sieve, and Odd-Even-Even Sieve, plus a detailed high-level workflow (Steps 1–3) and empirical evidence of substantial speedups, including plans to push verification toward $n < 2^{72}$. The work also extends to negative integers using a parallel formulation and demonstrates practical GPU acceleration, underscoring the method’s potential to scale the search more aggressively than prior approaches. Overall, the results indicate a significant leap in feasibility for large-scale Collatz verification and provide actionable design choices for future high-N deployments.
Abstract
We describe a new algorithm for verifying the Collatz conjecture for all n < 2^N for some fixed N. The algorithm takes less than twice as long to verify convergence for all n < 2^{N+1} as it does to verify convergence for all n < 2^N. We also discuss verification of the analogue of the Collatz conjecture for negative numbers.
