What is Armstrong number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is Armstrong number

2nd Mar 2021, 3:59 PM
Alice J Petey
Alice J Petey - avatar
2 Answers
+ 3
- Take a number and let the number of digits in it be *n* - now raise every digit of the original number to power *n* - add all the resultant numbers and if you get the original number after addition, then the number is Armstrong number For example Number = 153 n = 3 { as it is a three digit number) 1³ + 5³ + 3³ = 1 + 125 + 27 = 153 { and as it is same as original number so 153 is armstrong number )
2nd Mar 2021, 4:06 PM
Arsenic
Arsenic - avatar
+ 3
A number that is equal to sum of cubes of its digit.. E.g. 407 4³+0³+7³=407
5th Mar 2021, 6:28 PM
born2code
born2code - avatar