collatz conjecture
✓ Published0🌍 Public
Aandressarg
Last edited Aug 15, 2018
Created on Aug 15, 2018
The visualization maps the Collatz conjecture for integers 0 through 5199, encoding each number’s stopping time as a fill color and its maximum reached value as a stroke color. Hovering over a square reveals the integer, cycle count, and peak value. Built with D3.js (v3), it renders 5,200 SVG rectangles in a grid, using `d3.scale.linear` with HSL interpolation to create the color gradients. The underlying `collatz` function calculates cycle counts and maxima for each input.
AI-generated descriptionforked from <a href='http://bl.ocks.org/trinary/'>trinary</a>'s block: <a href='http://bl.ocks.org/trinary/9011649d262c27c6774b'>collatz conjecture</a>
mit Licensed