Consider the following operation you can perform on any positive integer :
Remove the lowest digit of and add to the resulting number 4 times the removed digit.
For example, if we get , and if then we get .
If we start with and keep on applying the operation above 10000 times, what is the number you obtain at the end?
, 2015
Solution
For integers , and a positive integer , let us write to mean that is divisible by . For a non-negative integer , let be the integer obtained by applying the operation stated for the problem times starting with the initial number . Let for a non-negative integer be the lowest digit number of . Then, we get
Therefore, we get , from which it follows that .
It follows further that is valid for any . We also have
Also from , we get , which implies that . From , we
which says that is a positive integer less than or equal to 39 and has the remainder 1 when divided by 3 and remainder 4 when divided by 13. It is easy to check that 4 is the only such integer.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.