Take a test Sign in 中文
← Exercise 561 →
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 561
For any positive integer $x$, let $S(x)$ be the sum of the digits of $x$, and let $T(x)$ be $|S(x+3)-S(x)|.$ For example, $T(198)=|S(201)-S(198)|=|3-18|=15.$ How many values of $T(x)$ do not exceed 2025?
← Back to Problem 561
Solution
  1. If adding $3$ causes $k$ carries, then $S(x+3)=S(x)+3-9k$.
  2. So $T(x)=3$ for $k=0$ and $T(x)=9k-3$ for $k\ge1$, and every $k$ occurs (e.g.\ $x$ made of $k-1$ nines followed by an $8$).
  3. The values $9k-3\le2025$ have $k\le225$.
  4. With $T=3$, that is $226$ values.
  5. The answer is $\boxed{226}$.
Search Go to Prev      Next

Contact Us

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