Problem:
Find all functions defined on the natural numbers that take values among the natural numbers for which
for all and all prime numbers .
Solution
Solution:
The substitution , a prime, yields , so that is divisible by . Hence, for each prime , or .
Let . If is infinite, then for infinitely many primes . By the little Fermat theorem, , so that is a multiple of for infinitely many primes . This can happen only if for all values of , and it can be verified that this is a solution.
If is empty, then for all primes , and any function satisfying this condition is a solution.
Now suppose that is finite and non-empty. Let be the largest prime in . Suppose, if possible, that . Therefore, for any prime exceeding , . However, this is not true. Let be the product of all the odd primes up to . Then must have a prime factor exceeding and at least one of them must be incongruent to . (An alternative argument notes that Bertrand's postulate can turn up a prime between and which fails to satisfy .)
The only remaining case is that . Then and for every odd prime . Since , and must have the same parity. Conversely, any function for which for all , and for all odd primes satisfies the condition.
Therefore the only solutions are
- for all ;
- any function with for all primes ;
- any function for which , for primes exceeding and and have the same parity.