Problem:
Show that there exists a positive integer such that for all integers , there exists a contiguous substring of the decimal expansion of that is divisible by . (For instance, if , then , , and are all contiguous substrings of . Note that is divisible by .)
Solution
Solution:
We claim that if the decimal expansion of has at least digits, then contains the required substring. Let the decimal expansion of be . For , let be the number with decimal expansion . Then by the pigeonhole principle, for some . It follows that divides . Here is the substring . Since and are relatively prime, it follows that divides .
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.