Problem 903: (2024 AMC 12b, 6)
The national debt of the United States is on track to reach $5 \cdot 10^{13}$ dollars by $2033$. How many digits does this number of dollars have when written as a numeral in base $5$? (The approximation of $\log_{10} 5$ as $0.7$ is sufficient for this problem.)
$\textbf{(A)}\ 18 \qquad\textbf{(B)}\ 20 \qquad\textbf{(C)}\ 22 \qquad\textbf{(D)}\ 24 \qquad\textbf{(E)}\ 26 \qquad$
- $N=5\cdot10^{13}=5^{14}\cdot2^{13}$.
- $2^{13}=8192$, and $5^5=3125<8192<15625=5^6$. So $5^{19}<N<5^{20}$.
- A number with $5^{19}\le N<5^{20}$ has exactly $20$ digits in base $5$.
- The answer is (B).
How many digits does $6^{20}$ have when it is written in base $3$?