Suppose that and are integers with and such that divides . What is the number of possible values of ?
Solution
If is even, , so we can cover all odd . If is even and , then must be odd, so is even, and cannot be divisible by 4 or any prime congruent to . Conversely, if has all factors , then by CRT there exists such that note is odd . So the only bad numbers take the form , where is divisible by at least one of We count (there are 12 numbers here), (another four), (another four), giving a final answer of .
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.