AlgebraDifficulty 5.2AIME, harderProve itUnited States
Problem: Let S0=0 and let Sk equal a1+2a2+…+kak for k≥1. Define ai to be 1 if Si−1<i and -1 if Si−1≥i. What is the largest k≤2010 such that Sk=0 ?
Solution
Solution: Answer: 1092
Suppose that SN=0 for some N≥0. Then aN+1=1 because N+1≥SN. The following table lists the values of ak and Sk for a few k≥N :
k
ak
Sk
N
0
N+1
1
N+1
N+2
1
2N+3
N+3
-1
N
N+4
1
2N+4
N+5
-1
N−1
N+6
1
2N+5
N+7
-1
N−2
We see inductively that, for every i≥1, SN+2i=2N+2+i and SN+1+2i=N+1−i thus S3N+3=0 is the next k for which Sk=0. The values of k for which Sk=0 satisfy the recurrence relation pn+1=3pn+3, and we compute that the first terms of the sequence are 0,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.