What is the largest $n$-digit number which is also an exact $n$th power?

470 Views Asked by At

What is the largest $n$-digit number which is also an exact $n$th power?

For example,the largest $2$-digit number which is an exact $2$nd power is $81$.

2

There are 2 best solutions below

1
On BEST ANSWER

You want the largest $a^n$ such that $10^{n-1}\le a^n\lt 10^n$ for a given $n$.

From the right inequality, we have $a=9$.

Now $10^{n-1}\le 9^n$ is true only when $n\le 21$.

So, the answer is $9^n$ for $n=1,2,\cdots, 21$. For $n\ge 22$, there is no such number.

0
On

The trick is to rearrange the problem: rather than ask for the largest $n$-digit number that is an $n$-th power, instead ask for the largest number whose $n$-th power is an $n$-digit number.