Skip to main content

2008 AIME II Problem 4

Problem 4 of 15EasierArithmetic

There exist rr unique nonnegative integers n1>n2>⋯>nrn_1 \gt n_2 \gt \cdots \gt n_r and rr unique integers aka_k (1≤k≤r)(1 \le k \le r) with each aka_k either 11 or −1-1 such that a13n1+a23n2+⋯+ar3nr=2008. \begin{aligned} &a_1 3^{n_1} + a_2 3^{n_2} + \cdots + a_r 3^{n_r} \\ &= 2008. \end{aligned} Find n1+n2+⋯+nr.n_1 + n_2 + \cdots + n_r.

Your answer

Integer from 0 to 999
Show solution

Solution

In base 3,3, 2008=22021013,2008 = 2202101_3, that is, 2008=2⋅36+2⋅35+2⋅33+32+30. \begin{aligned} 2008 &= 2 \cdot 3^6 + 2 \cdot 3^5 + 2 \cdot 3^3 \\ &\quad {}+ 3^2 + 3^0. \end{aligned} To convert the digits 22 into coefficients ±1,\pm 1, use 2⋅3k=3k+1−3k.2 \cdot 3^k = 3^{k+1} - 3^k. The two adjacent digits 22 collapse neatly: 2⋅36+2⋅35=(37−36)+(36−35)=37−35, \begin{aligned} 2 \cdot 3^6 + 2 \cdot 3^5 &= (3^7 - 3^6) \\ &\quad {}+ (3^6 - 3^5) \\ &= 3^7 - 3^5, \end{aligned} and 2⋅33=34−33.2 \cdot 3^3 = 3^4 - 3^3. Therefore 2008=37−35+34−33+32+30, \begin{aligned} 2008 &= 3^7 - 3^5 + 3^4 - 3^3 \\ &\quad {}+ 3^2 + 3^0, \end{aligned} which has distinct exponents and coefficients ±1,\pm 1, as required. The sum of the exponents is 7+5+4+3+2+0=21.7 + 5 + 4 + 3 + 2 + 0 = 21.
AoPS wiki

Tagged: number base · exponent

More practice