Mathwords logoMathwords

Narcissistic Number — Definition, Formula & Examples

A narcissistic number (also called an Armstrong number) is a number that equals the sum of each of its digits raised to the power of how many digits it has. For example, 153 is narcissistic because 13+53+33=1531^3 + 5^3 + 3^3 = 153.

An nn-digit number NN in base 10 is a narcissistic number if N=d1n+d2n++dnnN = d_1^n + d_2^n + \cdots + d_n^n, where d1,d2,,dnd_1, d_2, \ldots, d_n are the individual decimal digits of NN.

Key Formula

N=i=1ndinN = \sum_{i=1}^{n} d_i^{\,n}
Where:
  • NN = The number being tested
  • did_i = The $i$-th digit of $N$
  • nn = The total number of digits in $N$

How It Works

To check whether a number is narcissistic, first count how many digits it has — call that count nn. Then raise each digit to the nnth power and add the results. If the sum equals the original number, it is narcissistic. All single-digit numbers (0 through 9) are trivially narcissistic since any digit raised to the first power equals itself. The interesting cases start at three digits: the narcissistic numbers with three digits are 153, 370, 371, and 407.

Worked Example

Problem: Determine whether 370 is a narcissistic number.
Count the digits: 370 has three digits, so n=3n = 3.
Cube each digit: Raise each digit to the 3rd power.
33=27,73=343,03=03^3 = 27, \quad 7^3 = 343, \quad 0^3 = 0
Sum the results: Add the cubes together.
27+343+0=37027 + 343 + 0 = 370
Answer: The sum equals the original number, so 370 is a narcissistic number.

Why It Matters

Narcissistic numbers are a classic recreational math topic that builds fluency with exponents and digit manipulation. They appear frequently in programming exercises and math competitions, making them a great way to practice both arithmetic skills and algorithmic thinking.

Common Mistakes

Mistake: Using a fixed exponent (like always cubing) instead of raising to the power of the digit count.
Correction: The exponent must equal the total number of digits. For a 4-digit number, raise each digit to the 4th power, not the 3rd.