Frugal number

In number theory, a frugal number is a natural number in a given number base that has more digits than the number of digits in its prime factorization in the given number base (including exponents).[1] For example, in base 10, 125 = 53, 128 = 27, 243 = 35, and 256 = 28 are frugal numbers (sequence A046759 in the OEIS). The first frugal number which is not a prime power is 1029 = 3 × 73. In base 2, thirty-two is a frugal number, since 32 = 25 is written in base 2 as 100000 = 10101. The term economical number has been used for a frugal number, but also for a number which is either frugal or equidigital.

Mathematical definition

Let $\displaystyle{ b \gt 1 }$ be a number base, and let $\displaystyle{ K_b(n) = \lfloor \log_b{n} \rfloor + 1 }$ be the number of digits in a natural number $\displaystyle{ n }$ for base $\displaystyle{ b }$. A natural number $\displaystyle{ n }$ has the prime factorisation

$\displaystyle{ n = \prod_{\stackrel{p \,\mid\, n}{p\text{ prime}}} p^{v_p(n)} }$

where $\displaystyle{ v_p(n) }$ is the p-adic valuation of $\displaystyle{ n }$, and $\displaystyle{ n }$ is an frugal number in base $\displaystyle{ b }$ if

$\displaystyle{ K_b(n) \gt \sum_{{\stackrel{p \,\mid\, n}{p\text{ prime}}}} K_b(p) + \sum_{{\stackrel{p^2 \,\mid\, n}{p\text{ prime}}}} K_b(v_p(n)). }$