Demonstration of the Happy Number graphs.
Inspired by Numberphile: 145 and the Melancoil - Numberphile
Maximum:
Base:
Warning: Large maximum may take a significant amount of time to calculate.
Happy numbers are defined as follows
- Pick a number
- Sum the squared digits that make up the number
- Repeat until you loop or reach 1
- If you reach 1 the original number is defined as a happy number
Example:
Pick: 7
72 = 49
42 + 92 = 97
92 + 72 = 130
12 + 32 + 02 = 10
12 + 02 = 1
Therefore, 7 is a happy number
D3 used for graph visualization.