Skip to content

Commit c535bd7

Browse files
authored
Clarify Disarium number definition in comments
Updated the definition of a Disarium number for clarity.
1 parent 18ea4bf commit c535bd7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

maths/special_numbers/disarum_number.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""
2-
A number n is said to be a Disarium number if
3-
the sum of its digits powered to their respective positions equals the number itself.
2+
A number n is said to be a Disarium number if the sum of its digits raised to
3+
their respective positions equals the number itself.
44
55
Examples of Disarium Numbers: 1, 2, 3, 4, 5, 6, 7, 8, 9, 89, 135, 175, 518, 598, ...
6+
7+
https://rosettacode.org/wiki/Disarium_numbers
68
"""
79

810

0 commit comments

Comments
 (0)