Wasteful Number Calculator
Check whether writing the factorization of n uses more digits than writing n itself.
What it does
A wasteful number is one whose prime factorization, written with exponents, uses more decimal digits than the number itself. The sequence begins 4, 6, 8, 9, 12, 18 and 20. The number 4 is written with one digit, but its factorization 2 squared uses two digits.
The name extravagant is also used. The opposite case, where both spellings use the same number of digits, gives an equidigital number, and fewer factorization digits gives a frugal number.
The counting convention is simple: write each distinct prime in full, and write the exponent only when it is greater than one. Add the digit counts of all those pieces and compare with the digits of n.
This page factors the input, applies that convention and reports both digit counts with the verdict, so the comparison can be checked directly.
The input limit is one million, which keeps factorization immediate and the printed counts small.
How to use
- Enter a whole number n from 1 to 1,000,000.
- Read the classification in the main result box.
- Check the digits counted in the factorization beside it.
- Compare with the digits needed for n itself.
- The default n = 4 reproduces the worked example.
- Try n = 10 to see an equidigital number.
Formula
- n
- The integer being classified.
- factor digits
- Digits of each prime plus digits of exponents above one.
- number digits
- Digits in the decimal form of n.
An exponent of one is omitted from the written factorization, so it contributes no digits. A prime such as 10 factors as 2 times 5, using two digits, which equals the two digits of 10, making it equidigital rather than wasteful.
Worked example
Example: n = 4
The page opens with n = 4.
- Write 4 in decimal: it uses one digit.
- Factor 4 as 2^2, using the digit 2 for the prime and 2 for the exponent.
- That is two digits in the factorization.
- Two exceeds one, so 4 is wasteful.
- The tool reports factor digits 2, number digits 1, and Wasteful.
- For 10 the factorization 2 x 5 uses two digits, matching the number.
Reference table
| n | Factorization | Factor digits | Number digits | Verdict |
|---|---|---|---|---|
| 4 | 2^2 | 2 | 1 | Wasteful |
| 6 | 2 x 3 | 2 | 1 | Wasteful |
| 8 | 2^3 | 2 | 1 | Wasteful |
| 10 | 2 x 5 | 2 | 2 | Equidigital |
| 12 | 2^2 x 3 | 3 | 2 | Wasteful |
Limits
- Inputs above 1,000,000 are rejected to keep factorization quick.
- The convention writes exponents only when greater than one.
- Only base ten digit counts are used.
- The tool gives a verdict, not the written factorization itself.
Common mistakes
- Counting an exponent of one as a digit.
- Using binary digits instead of decimal digits.
- Counting multiplication signs or spaces as digits.
- Assuming every composite number is wasteful.
- Confusing wasteful with frugal.
Try it yourself
Quick checks. Answers sit tucked under each question.
Is 4 wasteful?
Yes. Its factorization 2^2 uses two digits against one for 4.
Is 10 wasteful?
No. Its factorization 2 x 5 uses two digits, the same as 10.
Is 12 wasteful?
Yes. Its factorization 2^2 x 3 uses three digits against two for 12.
Questions
What is another name?
Extravagant number.
How are exponents counted?
Only exponents greater than one add their digits.
What is the opposite property?
Frugal numbers use fewer factorization digits.
What is the equal case called?
Equidigital.
Are results exact?
Yes, integer factorization and digit counts are used.
What input range is accepted?
Whole numbers from 1 through 1,000,000.