Happy Number — chase the digit-square sum
Replace the number with the sum of the squares of its digits, over and over. A happy number reaches 1; an unhappy one loops forever, which a visited set catches.
Try:
← Prev
Next →
▶ Play
Reset