Using the digits 12279, the largest number that can be represented is 97,221.
7654321
1023459
1023
145,689
The smallest number that someone can get using the 91764 digits is 14679. The secret is to arrange the digits from the least number to their greatest number.
9,999,876 is the greatest seven-digit number using four different digits.
You get the largest number if you sort the digits, from largest to smallest.
Using the digits 12279, the largest number that can be represented is 97,221.
First, review the definition of an Armstrong, or narcissistic, number:"...is a number that is the sum of its own digits each raised to the power of the number of digits."So, you need to count the digits (to know what power to use), and extract the individual digits. This can be done in several ways; for example, you might convert the number to a string. In Java:String numberAsString = "" + number;Now it should be easy to figure out the length of the String (use the .length() method), and to extract the individual digits - check the methods available for strings. Then you need to convert the digits back to numeric data.Another way is to get one digit at a time, starting from the right, using the "%" operator.For example, 153 % 10 is equal to 3. Divide the number, 153, by 10 (integer division), then repeat to get the remaining digits. You might store the digits to an array.First, review the definition of an Armstrong, or narcissistic, number:"...is a number that is the sum of its own digits each raised to the power of the number of digits."So, you need to count the digits (to know what power to use), and extract the individual digits. This can be done in several ways; for example, you might convert the number to a string. In Java:String numberAsString = "" + number;Now it should be easy to figure out the length of the String (use the .length() method), and to extract the individual digits - check the methods available for strings. Then you need to convert the digits back to numeric data.Another way is to get one digit at a time, starting from the right, using the "%" operator.For example, 153 % 10 is equal to 3. Divide the number, 153, by 10 (integer division), then repeat to get the remaining digits. You might store the digits to an array.First, review the definition of an Armstrong, or narcissistic, number:"...is a number that is the sum of its own digits each raised to the power of the number of digits."So, you need to count the digits (to know what power to use), and extract the individual digits. This can be done in several ways; for example, you might convert the number to a string. In Java:String numberAsString = "" + number;Now it should be easy to figure out the length of the String (use the .length() method), and to extract the individual digits - check the methods available for strings. Then you need to convert the digits back to numeric data.Another way is to get one digit at a time, starting from the right, using the "%" operator.For example, 153 % 10 is equal to 3. Divide the number, 153, by 10 (integer division), then repeat to get the remaining digits. You might store the digits to an array.First, review the definition of an Armstrong, or narcissistic, number:"...is a number that is the sum of its own digits each raised to the power of the number of digits."So, you need to count the digits (to know what power to use), and extract the individual digits. This can be done in several ways; for example, you might convert the number to a string. In Java:String numberAsString = "" + number;Now it should be easy to figure out the length of the String (use the .length() method), and to extract the individual digits - check the methods available for strings. Then you need to convert the digits back to numeric data.Another way is to get one digit at a time, starting from the right, using the "%" operator.For example, 153 % 10 is equal to 3. Divide the number, 153, by 10 (integer division), then repeat to get the remaining digits. You might store the digits to an array.
7654321
8,754,321
Well, isn't that a happy little question! You can form the biggest numeral using all 10 digits by arranging them in descending order, starting with 9 and ending with 0. So, the biggest numeral you can form is 9876543210. Just remember, there are no mistakes in numbers, only happy little accidents!
the largest five digit number that can be formed using the digits 7 and 9 is 97,000
1023459
8643
Standard form