Difference between revisions of "2017 AMC 12A Problems/Problem 7"

(Solution)
(Problem)
Line 1: Line 1:
 
+
Define a function on the positive integers recursively by <math>f(1) = 2</math>, <math>f(n) = f(n-1) + 2</math> if <math>n</math> is even, and <math>f(n) = f(n-2) + 2</math> if <math>n</math> is odd and greater than <math>1</math>. What is <math>f(2017)</math>?

Revision as of 14:46, 8 February 2017

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