Baltic Way 2025 · Problem 18
Number Theory
Find all functions such that and
for all positive integers .
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
GCD and LCM · Diophantine equations
Solutions
Solution
The solutions are precisely the functions satisfying
Let denote the assertion of the original divisibility condition. We repeatedly use that implies , and that .
From ,
Since , this gives , hence .
From we get
so for all positive integers .
From ,
Because , we have , and therefore
In particular,
Thus whenever the function increases, it increases by at most . Consequently, if a value is ever attained, all positive values below have already been attained at smaller arguments.
We show that the function never takes the value . Suppose, to the contrary, that for the least such . Then . Since and , we have .
Now gives , while gives . Hence , so . Also and, by minimality of , . Therefore .
Applying gives
which is impossible. Hence never takes the value , and therefore it never takes any value at least .
Thus for every . Since , every odd must satisfy , and is given. Conversely, assigning either or independently at every even argument other than , while taking value at every odd argument and at , satisfies the original condition.
Contest context
Results from Baltic Way 2025
11 teams
- Mean score
- 4.4 / 5
- Scores of 4 or 5
- 9 / 11
- Estonia
- 5 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Germany | 5 / 5 |
| Estonia | 5 / 5 |
| Poland | 5 / 5 |
| Lithuania | 5 / 5 |
| Norway | 5 / 5 |
| Latvia | 5 / 5 |
| Finland | 5 / 5 |
| Denmark | 5 / 5 |
| Sweden | 5 / 5 |
| Ukraine | 2 / 5 |
| Iceland | 1 / 5 |