From 6adfd0634fb1e2e5bb0d70cf1f84f294f84dab9a Mon Sep 17 00:00:00 2001 From: Gedeon Mutshipayi <51865914+ged-flod@users.noreply.github.com> Date: Tue, 20 Jun 2023 22:03:17 +0100 Subject: [PATCH] Use the symbol of power instead of nothing To avoid confusion, it is good practice to use the superscript symbol to indicate the operation of the power. --- Medium/Armstrong-number.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Medium/Armstrong-number.md b/Medium/Armstrong-number.md index 1008d53..6d1c4e6 100644 --- a/Medium/Armstrong-number.md +++ b/Medium/Armstrong-number.md @@ -11,7 +11,7 @@ A number is an Armstrong Number or narcissistic number if it is equal to the sum Think about the number 371. The total number of digits is 3. Now, for each digit, put the power of 3 and then add them. It will be: ```python -33 + 73 + 13 +3^3 + 7^3 + 1^3 = 27 + 343 + 1 = 371 ``` @@ -20,7 +20,7 @@ Hence, 371 is an Armstrong number. Similarly, 1634 is another Armstrong number, because the total number of digits is 4. Now, power each digit and sum them. You will get the Armstrong number. ```python -= 14 + 64 + 34 + 44 += 1^4 + 6^4 + 3^4 + 4^4 = 1 + 1296 + 81 + 256 = 1634 ```