To be specific, what is the best way to calculate the first 10 digits decimal approximation of $$ \large \left(123456789^{123456789}\right)^{123456789}$$?
Even WolframAlpha gives the result in a power of 10 representation as $$ \large 10^{10^{10^{1.232768993649683}}}$$ Is there any other ways to approximate the acceptable first 10 digits in decimal?
Let $m = (n^n)^n = n^{n^2}$. Then, taking logarithms in base 10, $\log{m} = n^2 \log{n}$. Therefore we can write
$$ m = s \cdot 10^p$$ where $s \in (1,10)$ is given by exponentiating the fractional part of $n^2 \log{n}$, and $p$ is the integer part of $n^2 \log{n}$. The leading ten digits of $m$ are encoded in $s$.