A number is really just a symbol representing size — but repeating a calculation using only its digits sometimes reveals a surprising rule. Today, let's look at three curious kinds of numbers: palindromes, which stay the same when flipped; happy numbers, which eventually reach 1 when you keep squaring and adding their digits; and narcissistic numbers, whose digits raised to a power sum back to the number itself.
Let's start with palindromes. A number like 121 or 3553, which reads the same from front to back as from back to front, is called a palindrome. They're easy to make, but among them, numbers like 727 or 131, which are a palindrome and a prime at the same time, are especially rare and fun. The larger the numbers get, the harder it becomes to find one that's both a palindrome and a prime.
Happy numbers are a bit more curious. If you repeatedly square each digit and add them up, and eventually reach 1, it's a happy number. For example, 7 goes 7²=49, 4²+9²=97, 9²+7²=130, 1²+3²+0²=10, 1²+0²=1 — reaching 1, so it's a happy number. But not every number reaches 1. Every number that fails to reach 1 ends up circling forever through the same 8-number loop: 4→16→37→58→89→145→42→20→4. Remarkably, this loop is the only one that exists, so every number that isn't happy eventually gets stuck in this exact same place.
The flashiest of all are narcissistic numbers. These are numbers where raising each digit to the power of the digit count, then adding them up, gives back the original number. 153 is the classic example. It has 3 digits, so raise each digit to the 3rd power and add them: 1³+5³+3³ = 1+125+27 = 153 — exactly matching the original number.
153 isn't the only special one. Among 4-digit numbers, there are larger narcissistic numbers too, like 9474 (9⁴+4⁴+7⁴+4⁴=9474), 1634, and 8208. The more digits a number has, the far stricter the condition becomes, so numbers like these get rarer the more you look. All three of these kinds of numbers might look like simple number games on the surface, but they actually share something in common — they're all "repeated calculations that treat a number as the number itself." Since this is exactly the kind of calculation computers excel at, these numbers can be found easily even among very large numbers.
On our activity page, you can pick from several example numbers with buttons and instantly check whether they're palindromes; for happy numbers, you can use a slider to follow the calculation step by step and watch with your own eyes whether it reaches 1 or gets stuck in the loop. For narcissistic numbers too, you can press examples like 153 or 9474 and directly confirm the process of each digit's power sum actually matching the original number.