Skip to main content

2020 AIME II Problem 8

Problem 8 of 15IntermediateAlgebraNumber TheoryProblem-Solving Techniques

Define a sequence recursively by f1(x)=∣x−1∣f_1(x) = |x - 1| and fn(x)=fn−1(∣x−n∣)f_n(x) = f_{n-1}(|x - n|) for integers n>1.n \gt 1. Find the least value of nn such that the sum of the zeros of fnf_n exceeds 500,000.500{,}000.

Your answer

Integer from 0 to 999
Show solution

Solution

Since fn(x)=fn−1(∣x−n∣),f_n(x) = f_{n-1}(|x - n|), the zeros of fnf_n are exactly x=n±zx = n \pm z as zz runs over the nonnegative zeros of fn−1.f_{n-1}. The first few zero sets are {1},\{1\}, {1,3},\{1, 3\}, {0,2,4,6},\{0, 2, 4, 6\}, {−2,0,2,…,10}.\{-2, 0, 2, \ldots, 10\}. Writing Tk=k(k+1)2,T_k = \frac{k(k+1)}{2}, we claim the zeros of fnf_n are every other integer from n−Tn−1n - T_{n-1} through Tn.T_n. Indeed, by induction the nonnegative zeros of fn−1f_{n-1} are every other integer from 00 or 11 up to Tn−1,T_{n-1}, and applying n±zn \pm z yields every integer of the appropriate parity from n−Tn−1n - T_{n-1} through n+Tn−1=Tn.n + T_{n-1} = T_n. This progression has Tn+Tn−1−n2+1=n(n−1)2+1\frac{T_n + T_{n-1} - n}{2} + 1 = \frac{n(n-1)}{2} + 1 terms, and its first and last terms sum to (n−Tn−1)+Tn=2n,(n - T_{n-1}) + T_n = 2n, so the sum of the zeros is Sn=n(n(n−1)2+1),S_n = n\left(\frac{n(n-1)}{2} + 1\right), which is increasing in n.n. Now S100=100⋅4951S_{100} = 100 \cdot 4951 =495,100≤500,000,= 495{,}100 \le 500{,}000, while S101=101⋅5051S_{101} = 101 \cdot 5051 =510,151>500,000.= 510{,}151 \gt 500{,}000. The least such nn is 101.101.
AoPS wiki

Tagged: absolute value · recursion · triangular number · induction

More practice