For positive integers and , let denote the remainder of when divided by . Determine the number of positive integers for which .
Solution
Note that and . Consider the ways to choose pairs such that . By the Chinese Remainder Theorem, there is exactly one such that such that and . Finally, it is easy to check that none of the in the range 1000001 to 1001000 satisfy the condition, so the answer is exactly 499500.
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.