Prove that $2002^{2001}$ and $2002^{2001}+2^{2001}$ have the same number of digits. I have an arithmetic exercise as follows: Prove that $2002^{2001}$ and $2002^{2001}+2^{2001}$ have a same number of digits. It seems easy but I don't know how to do. I can do it if $2002$ is replaced by $2000$. Any hints are appreciated.

Thanks a lot!
For those who learned key facts about logarithms in their youth, here is a way through which may not appeal to OP (though if decent log tables to five digits are available this will do - I did it using facts I remember).

The first number is $$M=2^{2001}\cdot1001^{2001}$$

The second is $$N=2^{2001}\cdot\left(1001^{2001}+1\right)$$

Now if we take logs to base $10$ $$\log M=2001 \log 2+2001 (3+\log 1.001)$$

We want to estimate the leading digit (or few) of $M$ and hence the decimal part of the logarithm to a significant figure or two.

Now $\log 2 =0.30103$ to the nearest $0.00001$ so $2001 \log 2$ is within the bounds $602.36\pm 0.02$

$\ln 10 \approx 2.303$ (within 0.05%) and $\ln 1.001 \approx 0.001$ (easily within 0.5%) so $\log 1.001 =\cfrac {\ln 1.001}{\ln 10} \approx 0.00043$ and $2001 \log 1.001 \approx 0.86$ certainly to within $2\%$ so say $\pm 0.02$

So the fractional part of the logarithm is $0.86+0.36\pm0.04=1+0.22\pm 0.04$ which makes the leading digit $1$.

If the leading digit is $1$, then increasing the number by less than 1% will not increase the number of digits.
$\ln (a + b) = \ln (a(1 + \dfrac{b}{a})) = \ln a + \ln (1 + \dfrac{b}{a})$.

The number of digits in the base-10 numeral for integer $n &gt; 0$ is $\lceil \log_{10}n \rceil$.  $\log_{10} n = \dfrac{\ln n}{\ln 10}$

Let $a = 2002^{2001}$ and $b = 2^{2001}$

$\lceil \log_{10} a \rceil = \left\lceil \dfrac{\ln a}{\ln 10} \right\rceil = \left\lceil \dfrac{\ln 2002^{2001}}{\ln 10} \right\rceil=\left\lceil \dfrac{2001 \ln 2002}{\ln 10} \right\rceil = \lceil 6606.2296\dots\rceil = 6697$

$$\begin{align}
\\ \lceil \log_{10} (a + b)\rceil &amp;= \left\lceil \dfrac{\ln (a+ b)}{\ln 10} \right\rceil 
\\ &amp; =  \left\lceil \dfrac{\ln a + \ln (1 + \dfrac{b}{a})}{\ln 10} \right\rceil 
\\ &amp; =  \left\lceil \dfrac{\ln a + \ln \left(1 + \left(\dfrac{2}{2002}\right)^{2001}\right)}{\ln 10} \right\rceil 
\\ &amp; =  \left\lceil \dfrac{\ln a + O(10^{-6003})}{\ln 10} \right\rceil 
\\ &amp; =  \left\lceil \dfrac{\ln a}{\ln 10} + O(10^{-6003}) \right\rceil
\\ &amp; =  \left\lceil 6606.2296\dots + O(10^{-6003}) \right\rceil
\\ &amp;= 6697
\end{align}$$