For natural numbers $a$ and $b$, what is the greatest value of $b$ so that $a^b$ has $b$ digits?
I knew that the greatest value of $b$ is $21$, where $9^{21}=\underset{21 \text{ digits}}{\underbrace{109,418,989,131,512,359,209}}$, but I am not sure how to prove that there is no greater value of $b$.
Proof sketch: First show that $a=9$ is the best possible value for $a$ (you don't have to show that it is better than any other value, just that no other value can possibly be better). Then find the maximal $b$ that works for $a=9$ through brute force.
Alternately: If $a^b$ has $b$ digits, what can be said about $\frac{a^b}{10^b}=\left(\frac{a}{10}\right)^b$? Now in a similar manner show that $a=9$ is optimal and then afterwards, find the best possible $b$. This way it's a bit easier to show that nothing untoward happens for larger $b$.