Maths Olympiad Prep

Library / /22 of 115

Algebra Difficulty 6.8 National olympiad Find the answer

Find, as a function of n,\, n, \, the sum of the digits of 9×99×9999××(102n1),9 \times 99 \times 9999 \times \cdots \times \left( 10^{2^n} - 1 \right), where each factor has twice as many digits as the previous one.

A number or a short expression. Spacing and $ signs are ignored.

Solution

The answer is 92n9 \cdot 2^n .
Let us denote the quantity k=0n(102k1)\prod_{k=0}^n \bigl( 10^{2^k}-1 \bigr) as PnP_n . We wish to find the sum of the digits of PnP_n .
We first note that Pn1<k=0n1102k=102n1,P_{n-1} < \prod_{k=0}^{n-1} 10^{2^k} = 10^{2^n-1}, so Pn1P_{n-1} is a number of at most 2n2^n digits. We also note that the units digit is not equal to zero. We may thus represent Pn1P_{n-1} as k=02n110kdk,\sum_{k=0}^{2^n-1} 10^k d_k , where the dkd_k are digits and d00d_0 \neq 0 . 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 PnP_n are 10d0,9d1,9d2,,9d2n1,d01,d1,d2,,d2n1,10-d_0, 9-d_1, 9-d_2, \dotsc, 9-d_{2^n-1}, d_0-1, d_1, d_2, \dotsc, d_{2^n-1} , and the sum of these is evidently 92n9 \cdot 2^n , as desired. \blacksquare
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.

Source: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.