Browse · MathNet
Print56th International Mathematical Olympiad Shortlisted Problems
number theory
Problem
Let denote the set of positive integers. For any positive integer , a function is called -good if for all . Find all such that there exists a -good function.
Solution
We first show that there is no -good function. Suppose that there exists a function such that for all . Now, if there are two distinct even numbers and such that and are both even, then , a contradiction. A similar argument holds if there are two distinct odd numbers and such that and are both odd. Hence we can choose an even and an odd such that is odd and is even. This also implies that , a contradiction.
We now construct a -good function. Define , where is defined recursively by and .
For any positive integers , set We need to show that . First, note that is not divisible by , so that . Now we suppose that there is an odd prime for which and derive a contradiction.
We first claim that . This is a rather weak bound; one way to prove it is as follows. Observe that and hence for every positive integer . By repeatedly applying this inequality, we obtain .
Now, since , we have , so that . Hence , which yields . However, since , this implies that , a contradiction.
---
Alternative solution.
We provide an alternative construction of a -good function . Let be the set consisting of and all odd primes. For every , we say that a number is -useful if . Note that a residue modulo which is neither nor is -useful (the latter is needed only when ).
We will construct recursively; in some steps, we will also define a -useful number . After the step, the construction will satisfy the following conditions: (i) The values of have already been defined for all , and -useful numbers have already been defined for all ; (ii) If and , then ; (iii) for all . If these conditions are satisfied, then will be a -good function.
Step 1. Set and . Clearly, all the conditions are satisfied.
Step , for . We need to determine and, if , the number .
Defining . Let for some . We will determine for all and then choose using the Chinese Remainder Theorem. Take any . If , then we define . Otherwise, if , then we define .
Defining . Now let and suppose that . We choose to be a residue modulo that is not congruent to , or for any . Since , there are at most residues to avoid, so we can always choose a remaining residue.
We first check that (ii) is satisfied. We only need to check it if or . In the former case, we have by construction. In the latter case, if and , then we have , where we make use of the fact that is -useful.
Now we check that (iii) holds. Suppose, to the contrary, that for some . Then and . If , then , which is impossible since . Otherwise, if , then This implies that , a contradiction with (ii).
We now construct a -good function. Define , where is defined recursively by and .
For any positive integers , set We need to show that . First, note that is not divisible by , so that . Now we suppose that there is an odd prime for which and derive a contradiction.
We first claim that . This is a rather weak bound; one way to prove it is as follows. Observe that and hence for every positive integer . By repeatedly applying this inequality, we obtain .
Now, since , we have , so that . Hence , which yields . However, since , this implies that , a contradiction.
---
Alternative solution.
We provide an alternative construction of a -good function . Let be the set consisting of and all odd primes. For every , we say that a number is -useful if . Note that a residue modulo which is neither nor is -useful (the latter is needed only when ).
We will construct recursively; in some steps, we will also define a -useful number . After the step, the construction will satisfy the following conditions: (i) The values of have already been defined for all , and -useful numbers have already been defined for all ; (ii) If and , then ; (iii) for all . If these conditions are satisfied, then will be a -good function.
Step 1. Set and . Clearly, all the conditions are satisfied.
Step , for . We need to determine and, if , the number .
Defining . Let for some . We will determine for all and then choose using the Chinese Remainder Theorem. Take any . If , then we define . Otherwise, if , then we define .
Defining . Now let and suppose that . We choose to be a residue modulo that is not congruent to , or for any . Since , there are at most residues to avoid, so we can always choose a remaining residue.
We first check that (ii) is satisfied. We only need to check it if or . In the former case, we have by construction. In the latter case, if and , then we have , where we make use of the fact that is -useful.
Now we check that (iii) holds. Suppose, to the contrary, that for some . Then and . If , then , which is impossible since . Otherwise, if , then This implies that , a contradiction with (ii).
Final answer
All positive integers k greater than or equal to 2
Techniques
Greatest common divisors (gcd)Fermat / Euler / Wilson theoremsChinese remainder theorem