An Armstrong number is a n digit number, which is equal to the sum of the nth powers of its digits.

All the 1 digit numbers (1-9) are Armstrong number because

- 1*1=1 which is equals to number (1) itself,
- 2*1=2 which is equals to number(2) itself so on for all the 1 digit numbers (1-9).

There are no 2 digit Armstrong numbers.

An Armstrong number of three digit is a number such that that sum of the cubes of it's digits is equal to the number itself. so to check if a 3 digit number is an armstrong number or not we have to multiply all the three digits with itself 3 times.

For example 153 is an Armstrong number because cube of 1 is 1(1x1x1=1) + cube of 5 is 125(5*5*5=125) + cube of 3 is 27(3*3*3=27). Now add all the cubes 1+125+27=153 which is equals to number itself

There are three digits in 153. First Digit is 1, Second digit is 5, and Third digit is 3.

Now,

We will multiply each of these three digits i.e 1,5,3 with itself 3 times because there are 3 digits in 153

So,

1 * 1 * 1 = 1 5 * 5 * 5 = 125 3 * 3 * 3 = 27 ___________________ Sum of= 153

Because the sum is equals to the digit itself, so we can say that **153 is an armstrong number.**

1 * 1 * 1 = 1 5 * 5 * 5 = 125 4 * 4 * 4 = 64 ___________________ Sum of= 190

So in this example we can see that when we multiply each digit of 154 (i.e. 1 and 5 and 4) with itself 3 times (because 153 has three digits) we get these three numbers (1 and 125 and 64) and then we add these numbers i.e 1+125+64 we get 190

Because the sum 190 is not equals to the digit (154) itself, so we can say that **154 is not an armstrong number.**

3 * 3 * 3 = 27 7 * 7 * 7 = 343 0 * 0 * 0 = 0 ___________________ Sum of= 370

So in this example we can see that when we multiply each digit of 370 (i.e 3 and 4 and 0) with itself 3 times (because 370 has three digits) we get these three numbers (27 and 343 and 0) and then we add these numbers i.e 27+343+0 we get 370

Because the sum 370 is equals to the digit 370 itself, so we can say that **370 is an armstrong number.**

Check if these are armstrong numbers or not,

- 223
- 371
- 402
- 407

Related Articles

- Increasing speed of web site.
- Installing, configuring and running Tomcat 6
- Add Transaction effects to your web site.
- How to read mail through telnet
- City Globe
- What is Checksum?
- How to stop Google news crawler from indexing web site or a page.
- How to write Indian Rupee Symbol on Website
- How to become a good programmer.
- Authenticating User using Facebook connect

Latest Articles

Most Read Algorithms