Armstrong number definition fix (#4466)

This is a documentation fix. This fix patches a mistake in the description of the Armstrong number.

* * Doc fix

* Armstrong number is not the sum of cube's of number digits, but
the sum of number's digits each raised to the power of the number of digits

* Update armstrong_numbers.py

Line shorten
This commit is contained in:
Grigoriy Hanin 2021-05-31 02:41:07 +03:00 committed by GitHub
parent 650039a279
commit b3b89d9460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
""" """
An Armstrong number is equal to the sum of the cubes of its digits. An Armstrong number is equal to the sum of its own digits each raised
to the power of the number of digits.
For example, 370 is an Armstrong number because 3*3*3 + 7*7*7 + 0*0*0 = 370. For example, 370 is an Armstrong number because 3*3*3 + 7*7*7 + 0*0*0 = 370.
An Armstrong number is often called Narcissistic number. An Armstrong number is often called Narcissistic number.
""" """