Enter a whole number up to 999,999.
Click "Go!" to see your number and the next number. Keep clicking "Go!" to get more numbers.
Click "Reset" to start with a new number. (Or just type a new number in the box and click "Go!".)
(This program is easy to break. It won't complain if you enter things that aren't whole numbers or enter numbers that are too big... but it won't work either. Play nice.)
(Watch out for this little bug... if you move to another section and then come back and click "Go!" here again, the new added numbers will show up in the last section you were in instead of here.)
To find the number of steps to get to 1 for a happy number, enter the happy number and click "Go!" (To try a new number, just type a new number in the box and Click "Go!". Click "reset" to clear the results area.) (Play nice! Danger of infinite loops! (But it's okay to enter numbers that aren't happy.))
To find the number of steps for a range of numbers to get to 1, enter the low and high numbers (between 1 and 999999 - play nice!) and click "Go!". The results will only display the happy numbers in the range you selected.
Click reset to clear the current results.
Low
High
Minimum steps reported
To find the degrees of separation from the melancholy loop, enter a whole number between 1 and 999,999 here and click 'Go!' (Play nice... bad inputs could crash your browser!)
Click "Reset" to clear the results area.
To find the degrees of separation from the melancholy loop for a range of numbers, enter the low and high ends (between 1 and 999,999) of your range and click 'Go!'. You may also specify the minimum degrees of separation you wish to be reported (otherwise you will get lots and lots of results if you give a large range.)
(And play nice! Danger of infinite loops! Large ranges may take a few seconds to show up.)
Click reset to clear the current results.
Low
High
Minimum degrees reported
To find the distribution of degrees of separation from the melancholy loop for a range of numbers, enter the low and high numbers and click "Go!". This will not work if the range is too big. The maximum that will work seems to be around 125,000. You may need to scroll down to see the graph.
Happy numbers are shown in red and have degrees of separation of -1.
Numbers on the melancholy loop are shown in blue and have 0 degrees of separation.
All other numbers are shown in purple and their degrees of separation are given on the horizontal axis.
Low High