Maths Olympiad Prep

Library / /8 of 8

Algebra Difficulty 7.9 National Olympiad, round 2 Prove it Middle European Mathematical Olympiad (MEMO)

Problem:

Find all surjective functions f:NNf: \mathbb{N} \rightarrow \mathbb{N} such that for all positive integers aa and bb, exactly one of the following equations is true:
f(a)=f(b)f(a+b)=min{f(a),f(b)} \begin{aligned} f(a) &= f(b) \\ f(a+b) &= \min \{f(a), f(b)\} \end{aligned}

Remarks: N\mathbb{N} denotes the set of all positive integers. A function f:XYf: X \rightarrow Y is said to be surjective if for every yYy \in Y there exists xXx \in X such that f(x)=yf(x)=y.

Solutions — 3

Solution 1

Solution:

Each positive integer can be uniquely written as n=2kln=2^{k} l where k0k \geqslant 0 and ll is odd. We will show that the only function satisfying the conditions is f(2kl)=k+1f\left(2^{k} l\right)=k+1 for all k0k \geqslant 0 and all odd ll.

Assume that f(1)1f(1) \neq 1. Since ff is surjective, there exists aNa \in \mathbb{N} such that f(a)=1f(a)=1. Since f(1)1=f(a)f(1) \neq 1=f(a), we get f(a+1)=min{f(a),f(1)}=1f(a+1)=\min \{f(a), f(1)\}=1, and inductively we get f(n)=1f(n)=1 for each nan \geqslant a. However, this contradicts the surjectivity of ff.

Therefore f(1)=1f(1)=1. Then f(2)min{f(1),f(1)}=1f(2) \neq \min \{f(1), f(1)\}=1, and f(3)=min{f(1),f(2)}=1f(3)=\min \{f(1), f(2)\}=1. Now it easily follows by induction that f(n)=1f(n)=1 if nn is odd and f(n)>1f(n)>1 if nn is even.

We will show by induction on kk that f(2kl)=k+1f\left(2^{k} l\right)=k+1 for all odd ll and f(2km)>k+1f\left(2^{k} m\right)>k+1 for all even mm. The basis of induction has been proved above. Assume that the statement holds for all k<k0k<k_{0}. We define new function g:NNg: \mathbb{N} \rightarrow \mathbb{N} by g(n)=f(2k0n)k0g(n)=f\left(2^{k_{0}} n\right)-k_{0}. By induction hypothesis gg indeed maps to N\mathbb{N}. In addition, on the set of all integers not divisible by 2k02^{k_{0}}, the values of ff are smaller than k0+1k_{0}+1. Values greater or equal to k0+1k_{0}+1 are thus attained by ff on the set of integers divisible by 2k02^{k_{0}}, making gg surjective. A straightforward verification shows that gg also satisfies the remaining condition of the initial problem. So g(n)=1g(n)=1 if nn is odd and g(n)>1g(n)>1 if nn is even, as we have shown above. Therefore f(2k0l)=k0+1f\left(2^{k_{0}} l\right)=k_{0}+1 for odd ll and f(2k0m)>k0+1f\left(2^{k_{0}} m\right)>k_{0}+1 for even mm, which completes the induction. It is easy to check that this function indeed satisfies the conditions of the problem.

Like in Solution 1 we prove that
f( odd )=1, and f( even )>1 f(\text{ odd })=1, \quad \text{ and } \quad f(\text{ even })>1
We will show by induction on kk that f(2kl)=k+1f\left(2^{k} l\right)=k+1 for all odd ll and f(2km)>k+1f\left(2^{k} m\right)>k+1 for all even mm. The basis of induction has been proved above. Assume that the statement holds for all k<k0k<k_{0}. Induction step is proved similarly as above. Suppose f(2k0)k0+1f\left(2^{k_{0}}\right) \neq k_{0}+1, meaning that f(2k0)>k0+1f\left(2^{k_{0}}\right)>k_{0}+1. Surjectivity of ff implies, that there exists positive integer bb such that f(b)=k0+1f(b)=k_{0}+1. By induction hypothesis bb is of the form b=2k0rb=2^{k_{0}} r for some rr (rr may be odd or even). Considering the pair (2k0,b)\left(2^{k_{0}}, b\right) we get f(2k0(r+1))=f(b+2k0)=min{f(2k0),f(b)}=k0+1f\left(2^{k_{0}}(r+1)\right)=f\left(b+2^{k_{0}}\right)=\min \left\{f\left(2^{k_{0}}\right), f(b)\right\}=k_{0}+1. By induction we get f(2k0r)=k0+1f\left(2^{k_{0}} r'\right)=k_{0}+1 for all rrr' \geqslant r, contradicting the surjectivity of ff. Hence f(2k0)=k0+1f\left(2^{k_{0}}\right)=k_{0}+1. Conditions of the problem and induction hypothesis imply that f(n)=k0+1f(n)=k_{0}+1 iff f(n+2k0)>k0+1f\left(n+2^{k_{0}}\right)>k_{0}+1. Therefore it follows inductively that f(2k0l)=k0+1f\left(2^{k_{0}} l\right)=k_{0}+1 for odd ll and f(2k0m)>k0+1f\left(2^{k_{0}} m\right)>k_{0}+1 for even mm, which finishes the induction step.
It is easy to check that the function defined by f(2k0l)=k0+1f\left(2^{k_{0}} l\right)=k_{0}+1 for odd ll indeed satisfies the conditions of the problem.

Solution 2

Solution:

Like in Solution 1 we prove that f(f( odd )=1)=1, and f(f( even )>1)>1. Define a sequence of functions gk:NNg_{k}: \mathbb{N} \rightarrow \mathbb{N} by
g0(n)=f(n) and gk(n)=gk1(2n)1, for kN g_{0}(n)=f(n) \quad \text{ and } \quad g_{k}(n)=g_{k-1}(2 n)-1, \quad \text{ for } k \in \mathbb{N}
Using the first part of the solution we prove by induction that all gkg_{k} satisfy the initial conditions of the problem (they map to N\mathbb{N}, are surjective and satisfy the mutually exclusive equations). It follows from the first part of the solution that gk(g_{k}( odd )=1)=1 for all k=0,1,2,k=0,1,2, \ldots From gk(l)=1g_{k}(l)=1 for odd ll we inductively obtain f(2kl)=k+1f\left(2^{k} l\right)=k+1 by backward substitution. This shows that the problem has a unique solution given by f(2kl)=k+1f\left(2^{k} l\right)=k+1 for all k0k \geqslant 0 and all odd ll. It is easy to check that this function indeed satisfies the conditions of the problem.

Solution 3

Solution:

Plugging pair (a,a)(a, a) into the given equations we obtain f(2a)min{f(a),f(a)}=f(a)f(2 a) \neq \min \{f(a), f(a)\}=f(a), in particular f(4a)f(2a)f(4 a) \neq f(2 a). From pair (a,2a)(a, 2 a) we get f(3a)=f(2a+a)=min{f(2a),f(a)}f(3 a)=f(2 a+a)=\min \{f(2 a), f(a)\}. Suppose f(2a)<f(a)f(2 a)<f(a). Then f(3a)=f(2a)f(a)f(3 a)=f(2 a) \neq f(a). Considering pair (a,3a)(a, 3 a) we thus get f(4a)=min{f(a),f(3a)}=f(2a)f(4 a)=\min \{f(a), f(3 a)\}=f(2 a), a contradiction. Hence f(2a)>f(a)f(2 a)>f(a).

Next we prove by induction on ll that f(la)=f(a)f(l a)=f(a) for all odd ll. For l=1l=1, there is nothing to show. We assume that f((l2)a)=f(a)f((l-2) a)=f(a). As f(2a)>f(a)f(2 a)>f(a), we have
f(la)=min{f((l2)a),f(2a)}=min{f(a),f(2a)}=f(a) f(l a)=\min \{f((l-2) a), f(2 a)\}=\min \{f(a), f(2 a)\}=f(a)
which proves the induction step.

Let now n=2kln=2^{k} l for odd ll. By the above we have f(n)=f(2k)f(n)=f\left(2^{k}\right). Thus we only have to determine f(2k)f\left(2^{k}\right) for k0k \geqslant 0. Since f(2a)>f(a)f(2 a)>f(a) for all aa, f(2k)f\left(2^{k}\right) is increasing in kk. By surjectivity, the only solution is f(2k)=k+1f\left(2^{k}\right)=k+1. It is easily seen that f(2kl)=k+1f\left(2^{k} l\right)=k+1 is indeed a solution.

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

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