Skip to main content

2000 AIME II Problem 14

Problem 14 of 15HarderAlgebraArithmetic

Every positive integer kk has a unique factorial base expansion (f1,f2,f3,…,fm),(f_1, f_2, f_3, \ldots, f_m), meaning that k=1!⋅f1+2!⋅f2k = 1! \cdot f_1 + 2! \cdot f_2 +3!⋅f3+⋯+m!⋅fm,+ 3! \cdot f_3 + \cdots + m! \cdot f_m, where each fif_i is an integer, 0≤fi≤i,0 \le f_i \le i, and 0<fm.0 \lt f_m. Given that (f1,f2,f3,…,fj)(f_1, f_2, f_3, \ldots, f_j) is the factorial base expansion of 16!−32!+48!−64!+⋯+1968!−1984!+2000!, \begin{aligned} &16! - 32! + 48! \\ &\quad {}- 64! + \cdots + 1968! \\ &\quad {}- 1984! + 2000!, \end{aligned} find the value of f1−f2+f3f_1 - f_2 + f_3 −f4+⋯+(−1)j+1fj.- f_4 + \cdots + (-1)^{j+1} f_j.

Your answer

Integer from 0 to 999
Show solution

Solution

Since (i+1)!−i!=i⋅i!,(i+1)! - i! = i \cdot i!, telescoping gives a!−b!=∑i=ba−1i⋅i!a! - b! = \sum_{i=b}^{a-1} i \cdot i! for a>b.a \gt b. Group the given number as 16!+(48!−32!)+(80!−64!)+⋯+(2000!−1984!), \begin{aligned} &16! + (48! - 32!) + (80! - 64!) \\ &\quad {}+ \cdots + (2000! - 1984!), \end{aligned} with 6262 parenthesized groups (32j+16)!−(32j)!(32j + 16)! - (32j)! for j=1,…,62.j = 1, \ldots, 62. The group for jj contributes factorial-base digits fi=if_i = i for 32j≤i≤32j+15,32j \le i \le 32j + 15, and the lone 16!16! contributes f16=1;f_{16} = 1; all other digits are 0.0. Every digit satisfies 0≤fi≤i,0 \le f_i \le i, so by uniqueness this is the factorial base expansion. In the alternating sum, f16=1f_{16} = 1 sits at an even index and contributes −1.-1. Each group’s range starts at an even index and has length 16,16, so it splits into 88 consecutive pairs, each contributing −i+(i+1)=1,-i + (i + 1) = 1, for +8+8 per group. The total is 62⋅8−1=495.62 \cdot 8 - 1 = 495.
AoPS wiki

Tagged: number base · factorial · telescoping

More practice