Find, as a function of the sum of the digits of where each factor has twice as many digits as the previous one.
Solution
The answer is .
Let us denote the quantity as . We wish to find the sum of the digits of .
We first note that so is a number of at most digits. We also note that the units digit is not equal to zero. We may thus represent as where the are digits and . Then \begin{align*} P_n &= \bigl( 10^{2^n}-1 \bigr) P_{n-1} = \sum_{k=0}^{2^n-1} - 10^k d_k + \sum_{k=0}^{2^n-1} 10^{2^n+k} d_k \\ &= (10-d_0) + \sum_{k=1}^{2^n-1} 10^k(9-d_k) + 10^{2^n}(d_0-1) + \sum_{k=1}^{2^n-1} 10^{2^n+k} d_k . \end{align*} Thus the digits of are and the sum of these is evidently , as desired.
Alternate solutions are always welcome. If you have a different, elegant solution to this problem, please add it to this page.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.