Maths Olympiad Prep

Library / /13 of 82

Algebra Difficulty 4.8 AIME Prove it Croatia

Each digit of a positive integer nn (except the first one) is larger than the digit next left to it. Determine the sum of all digits of the number 9n9n. (Russia 1999)

Solution

Let n=am1am2a1a0n = \overline{a_{m-1}a_{m-2}\dots a_1a_0}. We know that a0>a1>>am1a_0 > a_1 > \dots > a_{m-1}.

Since 9n=10nn9n = 10n - n, from
am1am2am3a1a00\multicolumn1cam1am2a2a1a0bmbm1bm2b2b1b0 \begin{array}{c c c c c c c c c c c c c c c} & a_{m-1} & a_{m-2} & a_{m-3} & \dots & a_1 & a_0 & 0 \\ - & \multicolumn{1}{c}{a_{m-1}} & a_{m-2} & \dots & a_2 & a_1 & a_0 \\ \hline b_m & b_{m-1} & b_{m-2} & \dots & b_2 & b_1 & b_0 \end{array}
we conclude b0=10a0b_0 = 10 - a_0, b1=a0(a1+1)b_1 = a_0 - (a_1 + 1), b2=a1a2b_2 = a_1 - a_2, b3=a2a3b_3 = a_2 - a_3, ..., bm1=am2am1b_{m-1} = a_{m-2} - a_{m-1}, bm=am1b_m = a_{m-1}. Those are the digits of 9n9n, and their sum is am1+(am2am1)++(a1a2)+(a0a11)+(10a0)=9a_{m-1} + (a_{m-2} - a_{m-1}) + \dots + (a_1 - a_2) + (a_0 - a_1 - 1) + (10 - a_0) = 9.

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: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.