2017 AMC 12A Problem 7

Below is the professionally curated solution for Problem 7 of the 2017 AMC 12A, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2017 AMC 12A solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:recursionpattern recognition

Difficulty rating: 1380

7.

Define a function on the positive integers recursively by f(1)=2,f(1)=2, f(n)=f(n1)+1f(n)=f(n-1)+1 if nn is even, and f(n)=f(n2)+2f(n)=f(n-2)+2 if nn is odd and greater than 1.1. What is f(2017)?f(2017)?

20172017

20182018

40344034

40354035

40364036

Solution:

Listing values: f(1)=2,f(1)=2, f(2)=f(1)+1=3,f(2)=f(1)+1=3, f(3)=f(1)+2=4,f(3)=f(1)+2=4, f(4)=f(3)+1=5,f(4)=f(3)+1=5, suggesting f(n)=n+1.f(n)=n+1.

Both rules are consistent with f(n)=n+1:f(n)=n+1: for even n,n, (n1)+1+1=n+1,(n-1)+1+1=n+1, and for odd n,n, (n2)+1+2=n+1.(n-2)+1+2=n+1. Since the recursion determines ff uniquely, f(2017)=2018.f(2017)=2018.

Thus, the correct answer is B.

Problem 7 in Other Years