Baltic Way 2011 · Shortlist problem
Number Theory
A number , written in decimal notation, consists of digits. All the digits are , except the middle digit. If is divisible by , find the middle digit.
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Divisibility and factorization
Solutions
Solution
Since is divisible by , so is . Noting that , by taking off blocks of from we deduce that is divisible by .
Now reduce the number further by subtracting multiples of , obtaining multiples of at every step: