AMC/AMC12
2015 AMC 12
50 道题目
AMC 12multiple choiceEnglish problems
选择题目
点击题号切换,正文区一次只显示一道题
For every positive integer $n$, let $\operatorname{mod}_5(n)$ be the remainder obtained when $n$ is divided by $5$. Define a function $f:\{0,1,2,3,\ldots\}\times\{0,1,2,3,4\}\to\{0,1,2,3,4\}$ recursively as follows:
$f(i,j)=\begin{cases}\operatorname{mod}_5(j+1)&\text{if }i=0\text{ and }0\le j\le4,\cr f(i-1,1)&\text{if }i\ge1\text{ and }j=0,\text{ and}\cr f(i-1,f(i,j-1))&\text{if }i\ge1\text{ and }1\le j\le4.\end{cases}$
What is $f(2015,2)$?
$f(i,j)=\begin{cases}\operatorname{mod}_5(j+1)&\text{if }i=0\text{ and }0\le j\le4,\cr f(i-1,1)&\text{if }i\ge1\text{ and }j=0,\text{ and}\cr f(i-1,f(i,j-1))&\text{if }i\ge1\text{ and }1\le j\le4.\end{cases}$
What is $f(2015,2)$?
A
$0$
B
$1$
C
$2$
D
$3$
E
$4$
查看官方答案
Official answerB
考场第一眼 / First look
逐行计算五个函数值,寻找整行不再变化的状态。