Take a test Sign in 中文
← Exercise 658 →
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 658
For each positive integer $n$, let $f(n)$ be the sum of the digits in the base-three representation of $n$ and let $g(n)$ be the sum of the digits in the base-six representation of $f(n)$. For example, $f(2024) = f(2202222_{\text{3}}) = 12 = 20_{\text{6}}$, and $g(2024) = \text{the digit sum of }20_{\text{6}} = 2$. Let $N$ be the least value of $n$ such that the base-twelve representation of $g(n)$ cannot be expressed using only the digits $0$ through $9$. Find the remainder when $N$ is divided by $1000$.
← Back to Problem 658
Solution
  1. We need $g(n)\ge10$.
  2. The least number with base-six digit sum $10$ is $55_6=35$, so $f(n)=35$.
  3. The least $n$ with base-three digit sum $35$ is $1$ followed by seventeen $2$'s in base three, i.e.\ $2\cdot3^{17}-1=258280325$.
  4. The remainder is $325$.
  5. The answer is $\boxed{325}$.
Search Go to Prev      Next

Contact Us

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