Back Home

Collatz Cascade 2 Generalized

Extend the Collatz idea to any modulus and any operation. Pick a modulus m, then assign a different mathematical operation to each residue class β€” linear maps, powers, roots, logarithms, exponentials, polynomial derivatives, integrals, rational functions, and more. Stack runs, watch trajectories cascade, and inspect every step.

Run Controls

Set a start value, build and overlay runs. The rule system below defines what happens at each step.

Rule System β€” Generalized Operations

Choose a modulus m. For each residue class r = 0, 1, …, mβˆ’1, assign an operation. At each step, compute n mod m to pick a rule, then apply it to get the next n. All residues are always covered β€” no gaps.

Modulus m β€” compute n mod m
βœ“ All residues covered
Rule Summary

          
Safety and Performance

What Am I Looking At?

Each run starts at your chosen nβ‚€ and applies your rule system repeatedly. At every step, n mod m selects one of your residue rules, which applies its operation to produce the next n.

Multiple overlay runs let you compare trajectory shapes, peak behaviors, and convergence. Use mod 2 with divide for residue 0 and linear 3n+1 for residue 1 to get classic Collatz.

Try exotic rules: mod 3 with power, root, and log operations β€” then watch for cycles, divergence, or surprising convergence. The on-canvas HUD shows the live calculation at every step of the active run.

Click any row in Overlay Runs to inspect the full step-by-step sequence with calculations.

Runs

0

Distinct Nodes

0

Distinct Edges

0

Longest Steps

0

Peak Value

0

Active Frame

0

Current Active Node

-

Hover Node

-

Overlay Runs