Let be a positive integer with digits and be non-negative integers satisfying . We say that a positive integer number is a sub-divisor of , if it divides the number obtained by erasing the first and last digits of . (For example, sub-divisors of are , , , , , , , , and .) For any positive integer , let be the set of positive integers for which is not a sub-divisor. Find all positive integers for which the set is finite.
, 2019
Solution
Answer: All positive integers which are coprime with .
If a number is divisible by either or then it can not divide any number of the form . Therefore, for all numbers which are not coprime with the set is not finite.
Now let be a positive integer which is coprime with and . Let us show that any number is not in the set . Consider the numbers , , , , . Since there are and , such that . Therefore, . Since is coprime with we get and hence is not in . Thus, all numbers in have at most digits and consequently is finite.
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.