Maths Olympiad Prep

Library / /617 of 860

Algebra Difficulty 5.3 AIME, harder Find the answer

Let S0=0S_{0}=0 and let SkS_{k} equal a1+2a2++kaka_{1}+2 a_{2}+\ldots+k a_{k} for k1k \geq 1. Define aia_{i} to be 1 if Si1<iS_{i-1}<i and -1 if Si1iS_{i-1} \geq i. What is the largest k2010k \leq 2010 such that Sk=0S_{k}=0?

A number or a short expression. Spacing and $ signs are ignored.

Solution

Suppose that SN=0S_{N}=0 for some N0N \geq 0. Then aN+1=1a_{N+1}=1 because N+1SNN+1 \geq S_{N}. The following table lists the values of aka_{k} and SkS_{k} for a few kNk \geq N: kk & aka_{k} & SkS_{k} \hlineNN & & 0 \N+1N+1 & 1 & N+1N+1 \N+2N+2 & 1 & 2N+32 N+3 \N+3N+3 & -1 & NN \N+4N+4 & 1 & 2N+42 N+4 \N+5N+5 & -1 & N1N-1 \N+6N+6 & 1 & 2N+52 N+5 \N+7N+7 & -1 & N2N-2. We see inductively that, for every i1i \geq 1, SN+2i=2N+2+iS_{N+2 i}=2 N+2+i and SN+1+2i=N+1iS_{N+1+2 i}=N+1-i thus S3N+3=0S_{3 N+3}=0 is the next kk for which Sk=0S_{k}=0. The values of kk for which Sk=0S_{k}=0 satisfy the recurrence relation pn+1=3pn+3p_{n+1}=3 p_{n}+3, and we compute that the first terms of the sequence are 0,3,12,39,120,363,10920,3,12,39,120,363,1092; hence 1092 is our answer.

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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.