Skip to main content
OlympiadHQ

Browse · MathNet

Print

Saudi Arabia Mathematical Competitions 2012

Saudi Arabia 2012 algebra

Problem

Determine all positive integers such that there is a function satisfying the following condition: for every positive integer , we have both and .
Solution
The answer is all . If , note that implies that for all . Therefore . We also have since then , so . But then while , so we have a contradiction of the second condition.

For , we simply take . We give an algorithm to construct a function that works for any . Note that each time we set , this implicitly means we also set and . Begin by setting . Then repeat the following: for the smallest number for which has yet to be defined, set where is the smallest nonmultiple of greater than . It is clear we will obtain this way for all ; we now need to show . We go by strong induction, with obvious. Given it is true up to , we show with two cases:

(i) is not a multiple of : This means was selected as an in the algorithm, and was deliberately set to be greater than .

(ii) is a multiple of : Let be the largest integer less than or equal to such that is a multiple of . Because all multiples of map to multiples of under , we have . Let and . Then and . Since and , the inductive hypothesis implies . Note that for each , was set equal to . So this means that the algorithm would have set . Since , . Therefore as desired.
Final answer
all positive integers except 2

Techniques

Injectivity / surjectivityExistential quantifiersInduction / smoothingAlgorithms