Find n $\in \mathbb{N}$ if $n^n$ has $n$ digits. A problem I ran into today and it seemed interesting.
I know $1$, $8$ and $9$ are (the obvious) solutions, but are these the only ones? If they are, how can you prove it?
Thanks in advance.
EDIT: Yes, I was looking at natural numbers, my bad, I think it was some kind of typo.
The number of digits of $m$ is $1+\lfloor\log_{10} m\rfloor$.
So the number of digits of $n^n$ is $1+\lfloor n\log_{10} n\rfloor$.
If $log_{10} n \geq 1$, then $n log_{10} n\geq n$, so the number of digits of $n^n$ is always at least one more than $n$. So there are no such values $n>9$.