Maths Olympiad Prep

Library / Romania — NMO Selection Tests for the Balkan and International Mathematical Olympiads /67 of 80

Romania — NMO Selection Tests for the Balkan and International Mathematical Olympiads

Algebra Difficulty 8.5 Shortlist Prove it Romania

Given a positive integer number kk, define the function ff on the set of all positive integer numbers to itself by

f(n)={1,if n≤k+1,f(f(n−1))+f(n−f(n−1)),if n>k+1. f(n) = \begin{cases} 1, & \text{if } n \le k+1, \\ f(f(n-1)) + f(n - f(n-1)), & \text{if } n > k+1. \end{cases}

Show that preimage of every positive integer number under ff is a finite non-empty set of consecutive positive integer numbers.

Solution

It is sufficient to show that the difference Δ(n)=f(n)−f(n−1)\Delta(n) = f(n) - f(n-1) is 0 or 1 for all integer numbers n≥2n \ge 2, and ff is unbounded.

Clearly, Δ(n)=0\Delta(n) = 0, 2≤n≤k+12 \le n \le k+1, provides the basis for an inductive proof. If n>k+1n > k+1, apply the recurrence. By the induction hypothesis, Δ(n−1)\Delta(n-1) is 0 or 1 and

1≤f(n−1)≤n−11 \le f(n-1) \le n-1. Notice that Δ(n)=Δ(n−f(n−1))\Delta(n) = \Delta(n-f(n-1)) if Δ(n−1)=0\Delta(n-1) = 0 and Δ(n)=Δ(f(n−1))\Delta(n) = \Delta(f(n-1)) if Δ(n−1)=1\Delta(n-1) = 1 to conclude that Δ(n)\Delta(n) is indeed 0 or 1.
To show that ff is unbounded, suppose, if possible, that ff achieves its maximum value NN for the first time at mm to deduce recursively that N=f(m+n)=f(N)+f(m−N+n)N = f(m+n) = f(N) + f(m-N+n) for all positive integers nn; that is, f(m−N+n)=N−f(N)f(m-N+n) = N-f(N), for all positive integers nn. Setting n≥Nn \ge N yields a contradiction: N=N−f(N)N = N-f(N). The conclusion follows.

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.