In number theory, an extravagant number (also known as a wasteful number) is a natural number in a given number base that has fewer digits than the number of digits in its prime factorization in the given number base (including exponents). For example, in base 10, 4 = 2<sup>2</sup>, 6 = 2ÃÂ3, 8 = 2<sup>3</sup>, and 9 = 3<sup>2</sup> are extravagant numbers .
There are infinitely many extravagant numbers in every base.
Let be a number base, and let be the number of digits in a natural number for base . A natural number has the prime factorisation
where is the p-adic valuation of , and is an extravagant number in base if