Maths Olympiad Prep

Library / USAMO /21 of 156

USAMO

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×⋯×(102n−1),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. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

The answer is 9⋅2n9 \cdot 2^n .
Let us denote the quantity ∏k=0n(102k−1)\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 Pn−1<∏k=0n−1102k=102n−1,P_{n-1} < \prod_{k=0}^{n-1} 10^{2^k} = 10^{2^n-1}, so Pn−1P_{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 Pn−1P_{n-1} as ∑k=02n−110kdk,\sum_{k=0}^{2^n-1} 10^k d_k , where the dkd_k are digits and d0≠0d_0 \neq 0 . Then Pn=(102n−1)Pn−1=∑k=02n−1−10kdk+∑k=02n−1102n+kdk=(10−d0)+∑k=12n−110k(9−dk)+102n(d0−1)+∑k=12n−1102n+kdk.\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 10−d0,9−d1,9−d2,…,9−d2n−1,d0−1,d1,d2,…,d2n−1,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 9⋅2n9 \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,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.