Take a test Sign in 中文
← Exercise 369 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Basic Counting (90)
---- (44)
Probability (91)

Exercises and their solutions

Exercise 369
An integer between $1000$ and $9999,$ inclusive, is called lopsided if the sum of its two leftmost digits is exactly $2$ more than the sum of its two rightmost digits. How many lopsided integers are there?
← Back to Problem 369
Solution
  1. Let $L(t)$ count pairs $(a,b)$ with $1\le a\le9$, $0\le b\le9$, $a+b=t$, and $R(s)$ count digit pairs with sum $s$.
  2. The answer is $\sum_sL(s+2)R(s)$, so $s=0,\dots,7$ give $\sum(s+2)(s+1)=240$; $s=8,9$ give $9\cdot9+8\cdot10=161$; $s=10,\dots,16$ give $\sum(17-s)(19-s)=196$.
  3. Total $240+161+196=597$.
  4. The answer is $\boxed{597}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1985 (1 problems)
1984 (1 problems)