Skip to main content
100%

Reverse Collatz odd 3 multiples

✓ Published0🌍 Public
MMTR
Last edited Sep 4, 2025
Created on Feb 15, 2025
Forked from Reverse Collatz

This interactive visualization displays the Collatz Conjecture as a radial tree, showing how numbers connect through the reverse Collatz sequence up to a user-controlled orbit length. A slider adjusts the depth of the tree, revealing the branching structure of odd multiples of 3 (highlighted in red) and their even predecessors. Built with jQuery UI for the slider and play/stop controls, it uses D3’s `d3.layout.tree()` to compute the radial layout and animates transitions between depth levels with `transition().duration()`. The code computes the reverse Collatz graph in JavaScript, mapping parent-child relationships and rendering nodes as circles with text labels.

AI-generated description
<iframe width="560" height="315" src="https://www.jasondavies.com/collatz-graph/"></iframe>
MIT Licensed

Similar vizzes