Armstrong Numbers - Python
Harshit Trehan
SDE-2 @Atlassian | Ex-Juspay | 85k+ | B.Tech Gold Medalist | Speaker | Content Writer | YouTuber
Dear Readers,
This newsletter is about the Armstrong numbers!
An Armstrong number is a number that is equal to the sum of its own digits raised to the power of the number of digits in the number.
For example, 153 is an Armstrong number because it has 3 digits and 1^3 + 5^3 + 3^3 = 153. Another example is 9474, which has 4 digits and 9^4 + 4^4 + 7^4 + 4^4 = 9474.
The first few Armstrong numbers are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9474, 54748, 92727, 93084, 548834, 1741725, 4210818 ...
Note that 0 and 1 are also considered Armstrong numbers because they are single-digit numbers.
Today, Armstrong numbers are often used as an example of how simple mathematical concepts can have unexpected and intriguing properties.
They are also used as a teaching tool to help students understand the concept of exponentiation and to develop their problem-solving skills in mathematics.
The concept of Armstrong numbers is simple and I have made this more simplified in my new video on this. This is very useful and helpful for the students and working professional who are passionate about coding and its concepts.
Please check this video on YT (#HarshitTrehan )out and reach me in case of any query/doubts. I would love to help you in getting your concepts clear on this..
If you know someone who needs this, then please forward this to him/her.
https://youtu.be/Tx5zj-pB-QM
Best Regards
Harshit Trehan
SDE-2 @Atlassian | Ex-Juspay | 85k+ | B.Tech Gold Medalist | Speaker | Content Writer | YouTuber
1 年Video Link:- https://youtu.be/Tx5zj-pB-QM