How to Use
Enter n:
- Happy: Sequence reaches 1
- Unhappy: Enters cycle
- Sequence: Full iteration
Properties
- Permutations of happy numbers are happy
- Adding zeros doesn't change happiness
- Happy primes: 7,13,19,23,31,79,97...
- The only cycle for unhappy is length 8
Other Bases
Happiness depends on the base. In base 2, the only happy number is 1. In base 3, happy numbers include 1,10. The concept extends to any base b≥2.
Step-by-Step Instructions
- 1Enter n.
- 2Check happy/unhappy.
- 3View sequence.
- 4See cycle.
- 5Scan range.