AMC 12 Mock Exam 8 Problem 20
Problem 20 of 25
For how many integers with do the numbers and leave the same remainder when divided by ? For example, and have this property, but does not, because and leave different remainders.
Answer choices
Show solution
Solution
We need . By the Chinese Remainder Theorem the number of good residues mod is the product of the counts mod and mod , and is one full set of residues.
Mod 8. If is even, then is odd, so : one residue. If is odd, , so and : all odd residues. That is residues.
Mod 125. Any two of the factors , , , have no common factor : the first three differ pairwise by or ; ; and . So must divide one factor: , , , or . The last congruence has exactly two solutions: , so work, and if then while cannot divide both factors (it would divide , hence , but ), so . That is residues, all distinct.
The answer is . (Forgetting the roots of gives ; forgetting gives .)
Tagged: counting solutions of a quintic congruence modulo 1000 (CRT, square roots of -1)