Take a test Sign in 中文
← Exercise 674 →
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 674
Let $N$ be the greatest four-digit integer with the property that whenever one of its digits is changed to $7$, the resulting number is divisible by $13$. Let $Q$ and $R$ be the quotient and remainder, respectively, when $N$ is divided by $1000$. Find $Q+R$.
← Back to Problem 674
Solution
  1. With $N=\overline{abcd}$, changing each digit to $7$ gives four congruences mod $13$.
  2. Subtracting pairs gives $1000(a-7)\equiv100(b-7)\equiv10(c-7)\equiv d-7\pmod{13}$.
  3. Searching downward gives $N=8436$, so $Q+R=8+436=444$.
  4. The answer is $\boxed{444}$.
Search Go to Prev      Next

Contact Us

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