2018 AMC 10B Problem 20

Attempt Problem 20 of the 2018 AMC 10B below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2018 AMC 10B solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

20.

A function ff is defined recursively by f(1)=f(2)=1f(1) = f(2) = 1 and

f(n)=f(n1)f(n2)+nf(n) = f(n - 1) - f(n - 2) + n

for all integers n3.n \ge 3. What is f(2018)?f(2018)?

20162016

20172017

20182018

20192019

20202020

Answer: B
Concepts:recursionpattern recognition
Difficulty rating: 1910
Small Hint:

Look for a particular solution of the form f(n)=n+c;f(n) = n + c; subtracting it leaves g(n)=g(n1)g(n2)g(n) = g(n-1) - g(n-2)

Big Hint:

That homogeneous recursion is periodic with period 6;6; reduce 20182018 modulo 66

Solution:

Notice f(n)=n+1f(n) = n + 1 solves the recurrence on its own, so write f(n)=(n+1)+g(n).f(n) = (n + 1) + g(n). Then gg satisfies the homogeneous version g(n)=g(n1)g(n2).g(n) = g(n-1) - g(n-2). With g(1)=1g(1) = -1 and g(2)=2,g(2) = -2, it cycles with period 66: 1,2,1,1,2,1,.-1, -2, -1, 1, 2, 1, \ldots. Since 20182(mod6),2018 \equiv 2 \pmod 6, we get g(2018)=2,g(2018) = -2, so f(2018)=20192=2017.f(2018) = 2019 - 2 = 2017. Therefore, the answer is B.

Problem 19#19
Full Exam

Problem 20 in Other Years