Take a test Sign in 中文
← Exercise 556 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Digits (23)
Primes (14)
Divisors, GCD, and LCM (28)
Divisibility (22)
Fractions, Decimals, and the Floor Function (14)
Bases (19)
Modular Arithmetic (30)
Integer Equations (29)

Exercises and their solutions

Exercise 556
For any positive integer $k$, let $f_1(k)$ denote the sum of the squares of the digits of $k$. For $n \ge 2$, let $f_n(k) = f_1(f_{n - 1}(k))$. Find $f_{2024}(12)$.
← Back to Problem 556
Solution
  1. $f_1(12)=5$, then $25,29,85,89,145,42,20,4,16,37,58,89,\dots$: from $n=5$ on the values repeat with period $8$, $f_n$ being the $(n-5)\bmod 8$-th term of $89,145,42,20,4,16,37,58$ (counting from $0$).
  2. Since $2019\equiv3\pmod8$, $f_{2024}(12)=20$.
  3. The answer is $\boxed{020}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1996 (1 problems)
1991 (1 problems)