Browse · MathNet
Print48th International Mathematical Olympiad Vietnam 2007 Shortlisted Problems with Solutions
2007 number theory
Problem
Find all surjective functions such that for every and every prime , the number is divisible by if and only if is divisible by .
( is the set of all positive integers.)
( is the set of all positive integers.)
Solution
Suppose that function satisfies the problem conditions.
Lemma. For any prime and any , we have if and only if . Moreover, if and only if .
Proof. Consider an arbitrary prime . Since is surjective, there exists some such that . Let By induction on , we obtain that for all . The base is true since . Moreover, if and then, by the problem condition, as required.
Suppose that there exists an such that but . Let By the choice of , we have , and is a positive integer not divisible by . Then , while and . This contradicts the problem condition. Hence, there is no such , and Take arbitrary such that . We have ; moreover, since , we get . Then by the problem condition , , and hence .
On the other hand, assume that . Again we have which by our assumption implies that . Hence by the problem condition . Using (1) we get .
Thus, we have proved that We are left to show that : in this case (1) and (2) provide the desired statements.
The numbers have distinct residues modulo . By (2), numbers have distinct residues modulo ; hence there are at least distinct residues, and . On the other hand, by the surjectivity of , there exist such that for any . By (2), all these 's have distinct residues modulo . For the same reasons, . Hence, .
Now we prove that by induction on . If then, by the Lemma, for any prime , so , and the base is established. Suppose that and denote . Note that there exists a prime , so by the Lemma and .
If then , and there exists a prime ; we have . By the induction hypothesis we have . Now, by the Lemma we obtain which cannot be true.
Analogously, if , then by induction hypothesis. Moreover, , so there exists a prime and . By the Lemma again, , which is also false. The only remaining case is , so .
Finally, the function obviously satisfies the condition.
Lemma. For any prime and any , we have if and only if . Moreover, if and only if .
Proof. Consider an arbitrary prime . Since is surjective, there exists some such that . Let By induction on , we obtain that for all . The base is true since . Moreover, if and then, by the problem condition, as required.
Suppose that there exists an such that but . Let By the choice of , we have , and is a positive integer not divisible by . Then , while and . This contradicts the problem condition. Hence, there is no such , and Take arbitrary such that . We have ; moreover, since , we get . Then by the problem condition , , and hence .
On the other hand, assume that . Again we have which by our assumption implies that . Hence by the problem condition . Using (1) we get .
Thus, we have proved that We are left to show that : in this case (1) and (2) provide the desired statements.
The numbers have distinct residues modulo . By (2), numbers have distinct residues modulo ; hence there are at least distinct residues, and . On the other hand, by the surjectivity of , there exist such that for any . By (2), all these 's have distinct residues modulo . For the same reasons, . Hence, .
Now we prove that by induction on . If then, by the Lemma, for any prime , so , and the base is established. Suppose that and denote . Note that there exists a prime , so by the Lemma and .
If then , and there exists a prime ; we have . By the induction hypothesis we have . Now, by the Lemma we obtain which cannot be true.
Analogously, if , then by induction hypothesis. Moreover, , so there exists a prime and . By the Lemma again, , which is also false. The only remaining case is , so .
Finally, the function obviously satisfies the condition.
Final answer
f(n) = n for all n ∈ ℕ
Techniques
Prime numbersModular ArithmeticInjectivity / surjectivity