Take a test Sign in 中文
← Problem 949: (2015 AMC 12b, 20) →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Problem 949: (2015 AMC 12b, 20)
For every positive integer $n$, let $\text{mod}_5 (n)$ be the remainder obtained when $n$ is divided by 5. Define a function $f: \{0,1,2,3,\dots\} \times \{0,1,2,3,4\} \to \{0,1,2,3,4\}$ recursively as follows: \[f(i,j) = \begin{cases}\text{mod}_5 (j+1) & \text{ if } i = 0 \text{ and } 0 \le j \le 4 \text{,}\\ f(i-1,1) & \text{ if } i \ge 1 \text{ and } j = 0 \text{, and} \\ f(i-1, f(i,j-1)) & \text{ if } i \ge 1 \text{ and } 1 \le j \le 4. \end{cases}\] What is $f(2015,2)$?
$\textbf{(A)}\; 0 \qquad\textbf{(B)}\; 1 \qquad\textbf{(C)}\; 2 \qquad\textbf{(D)}\; 3 \qquad\textbf{(E)}\; 4$
Exercise 949: Solution
For every nonnegative integer $n$, let $\text{mod}_3(n)$ be the remainder when $n$ is divided by $3$. Define $f:\{0,1,2,\dots\}\times\{0,1,2\}\to\{0,1,2\}$ by $f(0,j)=\text{mod}_3(j+1)$ for $0\le j\le2$, $f(i,0)=f(i-1,1)$ for $i\ge1$, and $f(i,j)=f(i-1,f(i,j-1))$ for $i\ge1$, $1\le j\le2$. What is $f(2025,2)$?
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year