For integers , let denote the number of ordered pairs of integers such that and are both divisible by 5. Find the sum of all possible values of .
Solution
Standard linear algebra over the field (the integers modulo 5). The dimension of the solution set is at least 0 and at most 2, and any intermediate value can also be attained. So the answer is . This also can be easily reformulated in more concrete equation/congruence-solving terms, especially since there are few variables/equations.
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.