Let $a_{n}$ be the number of terms in the sequence $2^{1},2^{2},\cdots ,2^{n}$ which begins with digit 1.
Prove that $$\log2 -\frac{1}{n}<\frac{a_{n}}{n}<\log2\text{ (log base is 10)}$$
Note: This is only a part of the question.The actual question is:Prove that the probability that randomly chosen power of 2 begins with 1 is $\log2$.
The rest is quite easy(once I've proven the above inequality).Could anyone give me any hint for solving this question?Thanks!