AMC 10 Step by Step

2017 AMC 10A Problem 13

P11-15~3 minPrint

Define a sequence recursively by F0=0, F1=1,F_{0}=0,~F_{1}=1, and Fn=F_{n}= the remainder when Fn−1+Fn−2F_{n-1}+F_{n-2} is divided by 3,3, for all n≥2.n\geq 2. Thus the sequence starts 0,1,1,2,0,2,…0,1,1,2,0,2,\ldots What is F2017+F2018+F2019+F2020+F2021+F2022+F2023+F2024?F_{2017}+F_{2018}+F_{2019}+F_{2020}+F_{2021}+F_{2022}+F_{2023}+F_{2024}?

Log in to save your progress.
Show solution without answering

Key insight

The list repeats every 8 terms, so any 8 terms in a row make one full cycle, which adds up to 9.

Solution

Index 20172017 is far too big to reach by hand, so look for a repeating pattern.

  1. Each new term is the sum of the two before it, then take the remainder after dividing by 33. Keep going from the start:
nn0123456789
FnF_n0112022101

For example, F6=F_6 = remainder of 0+2=20 + 2 = 2, and F8=F_8 = remainder of 2+1=32 + 1 = 3, which is 00.
2. At n=8,9n = 8, 9 the pair 0,10, 1 appears again, exactly like F0,F1F_0, F_1. Each term depends only on the two before it, so from here the list repeats the same 88 terms forever: 0,1,1,2,0,2,2,10, 1, 1, 2, 0, 2, 2, 1.
3. The question adds 88 terms in a row (F2017F_{2017} through F2024F_{2024}). Any 88 terms in a row cover each spot of the cycle exactly once, just starting at a different place. So their sum is the sum of one full cycle:
0+1+1+2+0+2+2+1=9.0 + 1 + 1 + 2 + 0 + 2 + 2 + 1 = 9.

The answer is (D) 9\boxed{\textbf{(D)}\ 9}.

Why this works

When each term is built from the two before it using remainders, there are only a few possible pairs, so the list must eventually repeat. Watch for the starting pair to come back; that gives the cycle length. A block of terms as long as the cycle always adds up to the same total, wherever it starts.

Alternative approach

If you want to check which terms these are: 2017=8×252+12017 = 8 \times 252 + 1, so F2017F_{2017} matches F1=1F_1 = 1. The eight terms are then F1F_1 through F8F_8 in the cycle: 1,1,2,0,2,2,1,01, 1, 2, 0, 2, 2, 1, 0, which add to 99.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Continue the sequence, reducing each sum mod 33:
0, 1, 1, 2, 0, 2, 2, 1, 0, 1, 1, 2, …0,\ 1,\ 1,\ 2,\ 0,\ 2,\ 2,\ 1,\ 0,\ 1,\ 1,\ 2,\ \ldots
After eight terms the pair (0,1)(0, 1) reappears at F8,F9F_8, F_9. Since each term depends only on the previous two, the sequence repeats from there with period 88.

The requested sum has exactly eight consecutive terms, so it covers one full period, in some rotation. Its value is the sum of one period:
0+1+1+2+0+2+2+1=9.0 + 1 + 1 + 2 + 0 + 2 + 2 + 1 = 9.

The answer is (D) 9\boxed{\textbf{(D)}\ 9}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.