Take a test Sign in 中文
← Exercise 617 →
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 617
Find the number of five-digit positive integers, $n$, that satisfy the following conditions: \begin{itemize} \item[(a)] the number $n$ is divisible by $4,$ \item[(b)] the first and last digits of $n$ are equal, and \item[(c)] the sum of the digits of $n$ is divisible by $7.$ \end{itemize}
← Back to Problem 617
Solution
  1. Write $n=\overline{d\,a\,b\,c\,d}$.
  2. Divisibility by $4$ forces $d$ even and nonzero ($d=2,4,6,8$) and $\overline{cd}\equiv0\pmod4$, i.e.\ $c$ odd when $d\in\{2,6\}$ and $c$ even when $d\in\{4,8\}$.
  3. For each such choice the digit sum $2d+a+b+c$ must be divisible by $7$.
  4. Counting the choices of $a,b,c$ (by computer) gives $285$.
  5. The answer is $\boxed{285}$.
Search Go to Prev      Next

Contact Us

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