Take a test Sign in 中文
← Exercise 550 →
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 550
Given that $x$ and $y$ are both integers between $1000$ and $9999$, inclusive; $y$ is the number formed by reversing the digits of $x$; and $z=|x-y|$. How many distinct values of $z$ are possible?
← Back to Problem 550
Solution
  1. With $x=\overline{abcd}$ ($a,d\ne0$), $z=|999(a-d)+90(b-c)|=9\,|111(a-d)+10(b-c)|$.
  2. Let $u=a-d\in[-8,8]$ and $v=b-c\in[-9,9]$; all these pairs give different values of $111u+10v$, and $(u,v)$ and $(-u,-v)$ give the same $|z|$.
  3. That is $\frac{17\cdot19-1}2+1=162$ values (including $0$).
  4. The answer is $\boxed{162}$.
Search Go to Prev      Next

Contact Us

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