Special Number Property Checker
Explore interactive step-by-step calculations and visual graphs for these numbers.
The fascinating world of numbers
Happy numbers eventually reach 1 when you repeatedly replace the number with the sum of squares of its digits.
Explore interactive step-by-step calculations and visual graphs for these numbers.
19 → 1²+9²=82 → 8²+2²=68 → ... → 1
| # | n (number) |
|---|---|
| 1 | 1 |
| 2 | 7 |
| 3 | 10 |
| 4 | 13 |
| 5 | 19 |
| 6 | 23 |
| 7 | 28 |
| 8 | 31 |
| 9 | 32 |
| 10 | 44 |
| 11 | 49 |
| 12 | 68 |
| 13 | 70 |
| 14 | 79 |
| 15 | 82 |
| 16 | 86 |
| 17 | 91 |
| 18 | 94 |
| 19 | 97 |
| 20 | 100 |
| 21 | 365 |
| 22 | 376 |
| 23 | 888 |
| 24 | 1000 |
| 25 | 2584 |
| 26 | 4096 |
| 27 | 4181 |
| 28 | 7225 |
| 29 | 7744 |
| 30 | 8281 |
| 31 | 9604 |
| 32 | 10000 |
| 33 | 11025 |
| 34 | 12321 |
| 35 | 12996 |
| 36 | 14641 |
| 37 | 15625 |
| 38 | 17424 |
| 39 | 17956 |
| 40 | 22201 |
| 41 | 24025 |
| 42 | 27225 |
| 43 | 27556 |
| 44 | 27889 |
| 45 | 28561 |
| 46 | 29584 |
| 47 | 75025 |
| 48 | 100000 |
| 49 | 262143 |
A happy number is an integer that eventually reaches 1 when replaced iteratively by the sum of the squares of its digits. If this process loops endlessly in a repeating cycle that excludes 1, the number is designated an unhappy (or sad) number:
1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, 100, …
Happy numbers provide a beautiful introduction to discrete dynamical systems, orbit cycles, and attractor basins.
4 → 16 → 37 → 58 → 89 → 145 → 42 → 20 → 4
Every single unhappy number in base 10 eventually falls into this exact 8-number periodic orbit!
Numbers that are both prime and happy: 7, 13, 19, 23, 31, 79, 97, 103, 109, 139, 167, 193, 239, 263, 293... No one knows if there are infinitely many happy primes.
Approximately 14.4% of all positive integers are happy numbers. Among integers up to 1,000, exactly 143 are happy.
The smallest pair of consecutive happy numbers is (31, 32). The smallest triplet is (1880, 1881, 1882).
Because for numbers with 4 or more digits, the sum of squared digits is strictly smaller than the number itself (e.g. for 9,999, sum = 4 × 81 = 324 < 9999). This guarantees every trajectory enters a finite set of numbers below 243, where it must eventually repeat.
Yes: 7² = 49 → 4² + 9² = 97 → 9² + 7² = 130 → 1² + 3² + 0² = 10 → 1² + 0² = 1.