{"status": "success", "data": {"description_md": "Define a function on the positive integers recursively by $f(1) = 2$, $f(n) = f(n-1) + 1$ if $n$ is even, and $f(n) = f(n-2) + 2$ if $n$ is odd and greater than $1$. What is $f(2017)$?\n\n$\\textbf{(A)}\\ 2017 \\qquad\\textbf{(B)}\\ 2018 \\qquad\\textbf{(C)}\\ 4034 \\qquad\\textbf{(D)}\\ 4035 \\qquad\\textbf{(E)}\\ 4036$\n___\nFull credit goes to [MAA](https://maa.org/) for authoring these problems. These problems were taken on the [AOPS](https://artofproblemsolving.com/) website.", "description_html": "<p>Define a function on the positive integers recursively by  <span class=\"katex--inline\">f(1) = 2</span> ,  <span class=\"katex--inline\">f(n) = f(n-1) + 1</span>  if  <span class=\"katex--inline\">n</span>  is even, and  <span class=\"katex--inline\">f(n) = f(n-2) + 2</span>  if  <span class=\"katex--inline\">n</span>  is odd and greater than  <span class=\"katex--inline\">1</span> . What is  <span class=\"katex--inline\">f(2017)</span> ?</p>&#10;<p> <span class=\"katex--inline\">\\textbf{(A)}\\ 2017 \\qquad\\textbf{(B)}\\ 2018 \\qquad\\textbf{(C)}\\ 4034 \\qquad\\textbf{(D)}\\ 4035 \\qquad\\textbf{(E)}\\ 4036</span> </p>&#10;<hr><p>Full credit goes to <a href=\"https://maa.org/\">MAA</a> for authoring these problems. These problems were taken on the <a href=\"https://artofproblemsolving.com/\">AOPS</a> website.</p>", "hints_md": "", "hints_html": "", "editorial_md": "", "editorial_html": "", "flag_hint": "", "point_value": 2, "problem_name": "2017 AMC 12A Problem 7", "can_next": true, "can_prev": true, "nxt": "/problem/17_amc12A_p08", "prev": "/problem/17_amc12A_p06"}}