Maths Olympiad Prep

Track / Stage 5 / 189 of 400 #1269 of 2444

Problem 1269

AIME late
Algebra Difficulty 5.3 Find the answer HMMT February

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. Fractions can be typed as 3/2, and spacing doesn't matter.

Next problem →

Official 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} \text{}NN & & 0 \$N+11\text{1}N+1$N+2 \$N+2 & 1 & 2N+32 N+3 \$N+3-1\text{-1}N$N+4 \$N+4 & 1 & 2N+42 N+4 \$N+5-1\text{-1}N-1$N+6 \$N+6 & 1 & 2N+52 N+5 \$N+7-1\text{-1}N-2. We see inductively that, for every i \geq 1,, S_{N+2 i}=2 N+2+iand and S_{N+1+2 i}=N+1-ithus thus S_{3 N+3}=0isthenext is the next kforwhich for which S_{k}=0.Thevaluesof. The values of kforwhich for which S_{k}=0 satisfy the recurrence relation p_{n+1}=3 p_{n}+3, and we compute that the first terms of the sequence are 0,3,12,39,120,363,1092$; hence 1092 is our answer.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.