How to show that $\log_{10} n$ is not a rational number if $n$ is any integer not a power of $10.$
If not, let $\log_{10}n=\dfrac{p}{q}$ for some $p,q(\ne0)\in\mathbb Z$ where $(p,q)=1.$
Then $q\log_{10}n=p\implies\log_{10}n^q=p\implies\log_{10}n^q=\log_{10}10^p\implies n^q=10^p$.
I don't know what to do next.
Added: I can see $5,2$ are the only prime factors of $n.$ But I cant get why the same number of 5 and 2 would occur in $n?$