Take a test Sign in 中文
← Exercise 566 →
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 566
For a permutation $p = (a_1,a_2,\ldots,a_9)$ of the digits $1,2,\ldots,9$, let $s(p)$ denote the sum of the three $3$-digit numbers $a_1a_2a_3$ , $a_4a_5a_6$, and $a_7a_8a_9$. Let $m$ be the minimum value of $s(p)$ subject to the condition that the units digit of $s(p)$ is $5$. Let $n$ denote the number of permutations $p$ with $s(p) = m$. Find $|m - n|$.
← Back to Problem 566
Solution
  1. Write $s=100H+10T+U$ with $H+T+U=45$ (digit sums of the hundreds, tens, units places). For units digit $5$, $U\in\{15,25\}$.
  2. To minimize, take $H=6$ (digits $1,2,3$); then the units come from $\{4,\dots,9\}$, whose three largest sum to $24<25$, so $U=15$ (digits $4,5,6$) and $T=24$, giving $m=600+240+15=855$.
  3. Each place's digits can be permuted: $n=(3!)^3=216$. So $|m-n|=639$.
  4. The answer is $\boxed{639}$.
Search Go to Prev      Next

Contact Us

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