Determine the smallest positive integer with the last 4 digits 9999, which is divisible by 2011.
Solution
Let be a positive integer for which the last 4 digits of is . Since the one's digit of is , the one's digit of has to be . Therefore, we can represent in the form where is a non-negative integer. Then we must have and since the ten's digit of is , we see that the one's digit of has to be . Thus we conclude that with some non-negative integer . We then have , and since the hundred's digit of this number is we must have for the one's digit of , and therefore, the one's digit of must be as well. Consequently, we can represent as with a non-negative integer , and we have , and since the thousand's digit of this number must also be , we have to have for the one's digit of , which means that the one's digit of must be . Thus we can conclude that the last 4 digits of must be and since , we have for the desired answer.