Take a test Sign in 中文
← Exercise 751 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 751
Let $n$ be the smallest positive integer that is divisible by both $5$ and $9$, and whose base-$10$ representation consists of only $5$'s and $9$'s, with at least one of each. What are the last four digits of $n$?
← Back to Problem 751
Solution
  1. Divisible by $5$: the last digit is $5$.
  2. Divisible by $9$: with $a$ fives and $b$ nines, $5a+9b\equiv5a\equiv0\pmod9$, so $9\mid a$ and $a\ge9$.
  3. The smallest such number has $9$ fives and $1$ nine, ends in $5$, and has the $9$ as far right as possible: $5555555595$.
  4. Its last four digits are $\boxed{5595}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year