Maths Olympiad Prep

Library / IMO Shortlist /83 of 365

IMO Shortlist, 2011

Algebra Difficulty 8.1 Shortlist Prove it IMO

Determine all pairs (f,g)(f, g) of functions from the set of positive integers to itself that satisfy
fg(n)+1(n)+gf(n)(n)=f(n+1)−g(n+1)+1 f^{g(n)+1}(n) + g^{f(n)}(n) = f(n+1) - g(n+1) + 1
for every positive integer nn. Here, fk(n)f^{k}(n) means f(f(…f⏟k(n)…))\underbrace{f(f(\ldots f}_{k}(n) \ldots)).

Solution

The given relation implies
f(fg(n)(n))<f(n+1) for all n, \begin{equation*} f\left(f^{g(n)}(n)\right) < f(n+1) \quad \text{ for all } n, \tag{1} \end{equation*}
which will turn out to be sufficient to determine ff.
Let y1<y2<…y_1 < y_2 < \ldots be all the values attained by ff (this sequence might be either finite or infinite). We will prove that for every positive nn the function ff attains at least nn values, and we have (i)n(\mathrm{i})_n: f(x)=ynf(x) = y_n if and only if x=nx = n, and (ii)n(\mathrm{ii})_n: yn=ny_n = n. The proof will follow the scheme
(i)1,(ii)1,(i)2,(ii)2,…,(i)n,(ii)n,… \begin{equation*} (\mathrm{i})_1, (\mathrm{ii})_1, (\mathrm{i})_2, (\mathrm{ii})_2, \ldots, (\mathrm{i})_n, (\mathrm{ii})_n, \ldots \tag{2} \end{equation*}
To start, consider any xx such that f(x)=y1f(x) = y_1. If x>1x > 1, then (1) reads f(fg(x−1)(x−1))<y1f\left(f^{g(x-1)}(x-1)\right) < y_1, contradicting the minimality of y1y_1. So we have that f(x)=y1f(x) = y_1 is equivalent to x=1x = 1, establishing (i)1(\mathrm{i})_1.
Next, assume that for some nn statement (i)n(\mathrm{i})_n is established, as well as all the previous statements in (2). Note that these statements imply that for all k≥1k \geq 1 and a<na < n we have fk(x)=af^{k}(x) = a if and only if x=ax = a.
Now, each value yiy_i with 1≤i≤n1 \leq i \leq n is attained at the unique integer ii, so yn+1y_{n+1} exists. Choose an arbitrary xx such that f(x)=yn+1f(x) = y_{n+1}; we necessarily have x>nx > n. Substituting x−1x-1 into (1) we have f(fg(x−1)(x−1))<yn+1f\left(f^{g(x-1)}(x-1)\right) < y_{n+1}, which implies
fg(x−1)(x−1)∈{1,…,n} \begin{equation*} f^{g(x-1)}(x-1) \in \{1, \ldots, n\} \tag{3} \end{equation*}
Set b=fg(x−1)(x−1)b = f^{g(x-1)}(x-1). If b<nb < n then we would have x−1=bx-1 = b which contradicts x>nx > n. So b=nb = n, and hence yn=ny_n = n, which proves (ii)n_n. Next, from (i)n_n we now get f(k)=n⟺k=nf(k) = n \Longleftrightarrow k = n, so removing all the iterations of ff in (3) we obtain x−1=b=nx-1 = b = n, which proves (i)n+1_{n+1}.
So, all the statements in (2) are valid and hence f(n)=nf(n) = n for all nn. The given relation between ff and gg now reads n+gn(n)=n+1−g(n+1)+1n + g^{n}(n) = n + 1 - g(n+1) + 1 or gn(n)+g(n+1)=2g^{n}(n) + g(n+1) = 2, from which it
immediately follows that we have g(n)=1g(n) = 1 for all nn.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.