Skip to content

Commit 29e1074

Browse files
authored
Merge pull request TheAlgorithms#565 from IlyaIskra/patch-1
Correct algorithm definition | ArmstrongNumber
2 parents eaed625 + 6a35362 commit 29e1074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Maths/ArmstrongNumber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Author: dephraiim
33
* License: GPL-3.0 or later
44
*
5-
* An Armstrong number is equal to the sum of the cubes of its digits.
5+
* An Armstrong number is equal to the sum of its own digits each raised to the power of the number of digits.
66
* For example, 370 is an Armstrong number because 3*3*3 + 7*7*7 + 0*0*0 = 370.
77
* An Armstrong number is often called Narcissistic number.
88
*

0 commit comments

Comments
 (0)