Browse · MathNet
Print2024 CMO
China 2024 number theory
Problem
We say a prime number is “good”, if there exists a bijection from the set to itself satisfying the following condition: for any pair of elements , if , then . If no such bijection exists, we say that the prime is “bad”.
Prove that there exist infinitely many good primes, and there exist infinitely many bad primes.
Prove that there exist infinitely many good primes, and there exist infinitely many bad primes.
Solution
Proof. First, we show that there are infinitely many good primes. It is well-known that there are infinitely many primes . We prove that if , then is a good prime. Let . Consider all quadratic residues of , denoted as . If , we draw a directed edge from to . If , it is considered a self-loop. Then all vertices in this directed graph have an out-degree of 1. Moreover, for any , let . Since , either or (but not both) is a quadratic residue modulo . Thus, every vertex also has an in-degree of 1. This means the directed graph is a disjoint union of cycles.
For a directed cycle : - If (odd), we define - If (even), we define Here, is any integer. Since each cycle uses a consecutive sequence of even numbers, we can choose these numbers appropriately to ensure that the values used by different cycles do not overlap. Notice that only even numbers are used. If is not a quadratic residue, let , and define . This ensures that remains injective and satisfies whenever . Therefore, all primes are good primes.
Next, we prove that there are infinitely many bad primes. It is well-known that for any positive integer , if an odd prime divides (where is an integer), then . This is because but , so . Thus, there are infinitely many odd primes . (If there were only finitely many, let be twice the product of these primes, which leads to a contradiction.)
Now, let . We prove that is a bad prime. By the existence of primitive roots, the equation has exactly solutions modulo . If there exists an injective function satisfying the problem's conditions, then for all satisfying and , we must have . However, there are such , while the interval contains only integers. Thus, there must be two distinct with the same image, contradicting injectivity! Therefore, is a bad prime.
Hence, there are infinitely many bad primes.
For a directed cycle : - If (odd), we define - If (even), we define Here, is any integer. Since each cycle uses a consecutive sequence of even numbers, we can choose these numbers appropriately to ensure that the values used by different cycles do not overlap. Notice that only even numbers are used. If is not a quadratic residue, let , and define . This ensures that remains injective and satisfies whenever . Therefore, all primes are good primes.
Next, we prove that there are infinitely many bad primes. It is well-known that for any positive integer , if an odd prime divides (where is an integer), then . This is because but , so . Thus, there are infinitely many odd primes . (If there were only finitely many, let be twice the product of these primes, which leads to a contradiction.)
Now, let . We prove that is a bad prime. By the existence of primitive roots, the equation has exactly solutions modulo . If there exists an injective function satisfying the problem's conditions, then for all satisfying and , we must have . However, there are such , while the interval contains only integers. Thus, there must be two distinct with the same image, contradicting injectivity! Therefore, is a bad prime.
Hence, there are infinitely many bad primes.
Techniques
Quadratic residuesPrimitive roots mod p / p^nMultiplicative orderPigeonhole principle