Skip to content

Latest commit

 

History

History

Armstrong Number

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Armstrong Number

An Armstrong number is a positive m-digit number that is equal to the sum of the mth powers of their digits. It is also known as pluperfect, or Plus Perfect, or Narcissistic number. It is an OEIS sequence A005188. Let’s understand it through an example.

Armstrong Number Example

1: 1¹ = 1

2: 2¹ = 2

3: 3¹ = 3

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

125: 1³ + 2³ + 5³ = 1 + 8 + 125 = 134 (Not an Armstrong Number)

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

Similarly, we can check other number also.

The first few Armstrong numbers between 0 to 999 are 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407. Some other Armstrong numbers are 1634, 8208, 9474, 54748, 92727, 93084, 548834, 1741725, 4210818, 9800817, 9926315, 24678050, 24678051, 88593477, 146511208, 472335975, 534494836, 912985153, 4679307774, 32164049650, 32164049651.

📝 Note: There is no two-digit Armstrong number.

Armstrong Number Programs

Sl. No. Name Path Completed
1. Amicable Number Checking Armstsrong_Number_Check.java
2. Armstsrong Number Series Armstsrong_Number_Series.java