Browse · MathNet
Print2022 CGMO
China 2022 number theory
Problem
Given a prime number . Find the number of different residues for the product of three consecutive positive integers modulo .
Solution
Let the set , and let the polynomial . The congruence and congruence symbol “” in this question refer to congruence modulo . For , let Consider an element in , i.e., there exist such that . In this case, Thus, for , we have , so it can be deduced that , by the definition of , is congruent to one of , so either or , assume the former, in this case, , . When 3 is a quadratic residue modulo , has two solutions; when 3 is not a quadratic residue modulo , has no solution. Therefore, there are exactly solutions for , and the corresponding also has solutions, i.e., . On the other hand, consider the pairs that satisfy " and " (called a collision). This is equivalent to and . After changing variables to (i.e., , such that and correspond one-to-one), it is transformed into and . We consider the number of pairs satisfying (i.e., ). The above formula uses the fact that traverses the complete set of residues modulo , and that . Among the pairs , there are exactly pairs for which (i.e., ). Therefore, the number of ordered collision pairs is Thus, there are exactly unordered collision pairs . Since the elements in correspond to 3 collisions, the elements in correspond to 1 collision, and the elements in and correspond to 0 collisions, it follows that . Thus, , so the number of all possible residues of modulo is
Note 1: Another way to calculate the number of solutions is: Consider the congruence equation , which is equivalent to , having solutions ( has exactly solutions, has exactly solutions, and so on). The number of solutions with is and the number of solutions for the remaining are equal (using to map the solutions with to the solutions with ), each equal to . If one is not familiar with Legendre symbols, one can first obtain , and deduce that the number of solutions to is . The subsequent answer to this problem is , which is an integer. From this, we can still get the needed answer. Note 2: Another interpretation of the number of solutions is: For each , the number of that satisfy is , therefore
Note 1: Another way to calculate the number of solutions is: Consider the congruence equation , which is equivalent to , having solutions ( has exactly solutions, has exactly solutions, and so on). The number of solutions with is and the number of solutions for the remaining are equal (using to map the solutions with to the solutions with ), each equal to . If one is not familiar with Legendre symbols, one can first obtain , and deduce that the number of solutions to is . The subsequent answer to this problem is , which is an integer. From this, we can still get the needed answer. Note 2: Another interpretation of the number of solutions is: For each , the number of that satisfy is , therefore
Final answer
floor((2p+1)/3)
Techniques
Polynomials mod pQuadratic residues