The Surprising Numbers That Equal Sums of Powers of Their Digits

Introduction

Some whole numbers can be rebuilt from their own digits: raise each digit to a particular power, add the results, and the original number appears. For example, 153 equals 1³ + 5³ + 3³. These numbers are commonly called narcissistic numbers or Armstrong numbers. The rule is simple to state, but it produces a surprisingly selective collection of numbers.

What Does “A Sum of Powers of Its Digits” Mean?

In the usual decimal definition, count the digits in a number, raise each digit to that count, and add the powers. A number qualifies if the total equals the number you started with. The power is therefore determined by the number of digits, not chosen separately for each digit.

For a three-digit number, the rule is to cube each digit. For a four-digit number, raise each digit to the fourth power. The order of the digits does not affect the sum, because addition gives the same result whichever order the terms are in.

For instance, 153 has three digits, so its digits are cubed:

1³ + 5³ + 3³ = 1 + 125 + 27 = 153

The total is exactly the original number, so 153 fits the rule. By contrast, 154 does not: 1³ + 5³ + 4³ = 190, which is not 154.

Why the Examples Look Surprising

Digits usually contribute to a number through their place values. In 153, for example, the 1 represents one hundred, the 5 represents five tens, and the 3 represents three ones. The digit-power rule ignores those places. It takes the digits as separate values, transforms them, and adds the results.

That makes a match seem unlikely: the total must return to the exact number whose digits produced it. Yet a few familiar examples show that it can happen. In base ten, the three-digit examples are 153, 370, 371, and 407.

Each one works because it has three digits and each digit is cubed:

370 = 3³ + 7³ + 0³ = 27 + 343 + 0

371 = 3³ + 7³ + 1³ = 27 + 343 + 1

407 = 4³ + 0³ + 7³ = 64 + 0 + 343

A zero digit contributes zero when raised to a positive power. It still matters as part of the written number: 407 is a three-digit number, so the rule uses cubes, even though one of its digits contributes nothing to the sum.

More Examples: Four, Five, and Six Digits

The same method applies when a number has more digits, but the exponent changes. A four-digit number requires fourth powers. The decimal four-digit examples are 1634, 8208, and 9474.

For 1634, the calculation is:

1⁴ + 6⁴ + 3⁴ + 4⁴ = 1 + 1296 + 81 + 256 = 1634

For 8208, it is:

8⁴ + 2⁴ + 0⁴ + 8⁴ = 4096 + 16 + 0 + 4096 = 8208

Five-digit examples include 54748, 92727, and 93084. In each case, every digit is raised to the fifth power. For example:

54748 = 5⁵ + 4⁵ + 7⁵ + 4⁵ + 8⁵

The calculation gives 3125 + 1024 + 16807 + 1024 + 32768, which totals 54748. A six-digit example is 548834, where the digits are raised to the sixth power:

548834 = 5⁶ + 4⁶ + 8⁶ + 8⁶ + 3⁶ + 4⁶

These examples illustrate the defining pattern: a number’s digit count sets the exponent, and the digit powers add back to that number.

What Are These Numbers Called?

Two common names are narcissistic numbers and Armstrong numbers. “Narcissistic” is a mathematical nickname for a number that seems to reproduce itself from its own digits. The name does not describe a person or a psychological condition. “Armstrong number” is another widely used label in recreational mathematics and programming.

Terminology can vary between sources. The standard definition used here is often stated more formally: an n-digit number is equal to the sum of its digits, each raised to the nth power. Some explanations use “digit-power number” or “perfect digital invariant” for related ideas, but those terms may be defined differently. Checking the rule being used is more useful than relying on a label alone.

The exponent matters. If someone instead raises every digit to a fixed power, such as three regardless of how many digits the number has, that is a different condition. Under the usual definition, a four-digit candidate must use fourth powers, not cubes.

Why There Are Only a Few in Decimal Notation

The rule is easy to test, but it does not produce an unlimited supply of decimal examples. There is a straightforward reason. In an n-digit decimal number, each digit is at most 9, so the sum of the digit powers cannot be greater than n × 9ⁿ.

At the same time, every n-digit number is at least 10ⁿ⁻¹. For a qualifying number to exist at that length, the largest possible digit-power sum must be at least as large as the smallest n-digit number. In other words, n × 9ⁿ must be at least 10ⁿ⁻¹.

As the digit count grows, the smallest n-digit number grows faster than this upper bound on the sum. Eventually, the bound becomes too small for any n-digit number to meet the rule. That proves there can be only finitely many such numbers in base ten, although the bound is not a quick way to find every one.

This does not mean the examples are random or that every length has one. Some digit counts have qualifying numbers, while others do not. Finding all examples for a particular length is a matter of checking candidates or using a more efficient search.

How to Check a Number

To test a candidate by hand, first count its digits. That count is the exponent. Next, raise each digit to that power and add the answers. Finally, compare the total with the original number. The number qualifies only if the two values are exactly equal.

Consider 9474. It has four digits, so use fourth powers:

9⁴ + 4⁴ + 7⁴ + 4⁴ = 6561 + 256 + 2401 + 256 = 9474

This confirms that 9474 meets the rule. A common mistake is to use the number’s value as the exponent, or to use a different exponent for each digit. Neither is part of the standard test.

For larger candidates, a calculator or a short computer program can do the arithmetic. A basic program can read the digits, count them, calculate each digit’s power using that count, and add the results. It then checks whether the sum matches the input number. This is a useful beginner exercise because it combines loops, digit extraction, arithmetic, and a simple comparison.

A search program can also avoid testing every number in a large range. For a chosen digit count, it can calculate the possible digit-power sums and compare them with numbers of that length. The underlying definition stays the same; only the search method changes.

Single-Digit Numbers and the Role of Notation

Under the standard definition, every single-digit decimal number from 0 to 9 qualifies. A one-digit number uses the first power, and raising a digit to the first power leaves it unchanged: 7¹ = 7, for example. If a source lists only the more striking multi-digit examples, it may simply be leaving these basic cases out.

The examples above assume decimal notation, the base-ten system used for everyday numbers in many settings. The rule can be applied in another base, but the digits and their allowed values change. In base eight, for instance, the available digits are 0 through 7. A number’s written representation, digit count, and digit values all depend on the base, so a result in one base cannot automatically be read as a result in another.

This is why statements about a complete list should specify the number system and the definition. A list of decimal Armstrong numbers is not a universal list for every way of writing numbers.

Why These Numbers Are Useful to Explore

Digit-power numbers are mainly a source of mathematical curiosity and a practical way to explore basic ideas. They connect place-value notation with powers, show how a simple rule can produce unexpected examples, and give learners a clear method to verify a claim.

They are also useful in introductory programming exercises. A program that checks one number can be extended to search a range, count digits, or display the calculation. The exercise is small enough to understand without advanced mathematics, yet it encourages careful attention to definitions and edge cases such as zero digits and single-digit numbers.

These numbers are not a separate arithmetic system, and their special property does not give them a practical advantage in ordinary calculations. Their interest lies in the precise relationship between a number and the digits used to write it.

Conclusion

A number equals the sum of powers of its digits when each digit, raised to the power given by the number’s digit count, adds back to the original value. Examples include 153, 9474, and 548834 in decimal notation. The pattern is easy to test but surprisingly selective, making these numbers a neat meeting point of arithmetic, number notation, and simple programming.