Maths Olympiad Prep

Library / Harvard-MIT Mathematics Tournament /204 of 352

Harvard-MIT Mathematics Tournament

Algebra Difficulty 5.2 AIME, harder Prove it United States

Problem:
Let S0=0S_{0}=0 and let SkS_{k} equal a1+2a2+…+kaka_{1}+2 a_{2}+\ldots+k a_{k} for k≥1k \geq 1. Define aia_{i} to be 1 if Si−1<iS_{i-1}<i and -1 if Si−1≥iS_{i-1} \geq i. What is the largest k≤2010k \leq 2010 such that Sk=0S_{k}=0 ?

Solution

Solution:
Answer: 1092

Suppose that SN=0S_{N}=0 for some N≥0N \geq 0. Then aN+1=1a_{N+1}=1 because N+1≥SNN+1 \geq S_{N}. The following table lists the values of aka_{k} and SkS_{k} for a few k≥Nk \geq N :

kkaka_{k}SkS_{k}
NN0
N+1N+11N+1N+1
N+2N+212N+32N+3
N+3N+3-1NN
N+4N+412N+42N+4
N+5N+5-1N−1N-1
N+6N+612N+52N+5
N+7N+7-1N−2N-2

We see inductively that, for every i≥1i \geq 1,
SN+2i=2N+2+i S_{N+2i} = 2N + 2 + i
and
SN+1+2i=N+1−i S_{N+1+2i} = N + 1 - i
thus S3N+3=0S_{3N+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}=3p_{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,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.