Maths Olympiad Prep

Library / /107 of 120

, 2012

Algebra Difficulty 6.3 National olympiad Prove it Saudi Arabia

Determine all positive integers kk such that there is a function f:NNf: \mathbb{N} \to \mathbb{N} satisfying the following condition: for every positive integer nn, we have both f(f(n))=knf(f(n)) = kn and f(n)<f(n+1)f(n) < f(n+1).

Solution

The answer is all k2k \neq 2. If k=2k = 2, note that f(f(n))=2nf(f(n)) = 2n implies that f(n)nf(n) \neq n for all nn. Therefore f(1)1f(1) \neq 1. We also have f(1)2f(1) \neq 2 since then f(f(1))=f(2)=2f(f(1)) = f(2) = 2, so f(1)>2f(1) > 2. But then 2=f(f(1))<f(1)2 = f(f(1)) < f(1) while f(1)>1f(1) > 1, so we have a contradiction of the second condition.

For k=1k = 1, we simply take f(n)=nf(n) = n. We give an algorithm to construct a function that works for any k>2k > 2. Note that each time we set f(a)=bf(a) = b, this implicitly means we also set f(kma)=kmbf(k^m a) = k^m b and f(kmb)=km+1af(k^m b) = k^{m+1} a. Begin by setting f(1)=2f(1) = 2. Then repeat the following: for the smallest number mm for which f(m)f(m) has yet to be defined, set f(m)=mf(m) = m' where mm' is the smallest nonmultiple of kk greater than f(m1)f(m-1). It is clear we will obtain f(f(n))=knf(f(n)) = kn this way for all nn; we now need to show f(n)<f(n+1)f(n) < f(n+1). We go by strong induction, with n=1n = 1 obvious. Given it is true up to nn, we show f(n)<f(n+1)f(n) < f(n+1) with two cases:

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

(ii) f(n+1)f(n + 1) is a multiple of kk: Let xx be the largest integer less than or equal to nn such that f(x)f(x) is a multiple of kk. Because all multiples of kk map to multiples of kk under ff, we have nk<xnn - k < x \le n. Let f(x)=kaf(x) = ka and f(n+1)=kbf(n+1) = kb. Then f(a)=xf(a) = x and f(b)=n+1f(b) = n + 1. Since x<n+1x < n + 1 and a,b<na, b < n, the inductive hypothesis implies a<ba < b. Note that for each m{nx+1,nx+2,,n}m \in \{n - x + 1, n - x + 2, \dots, n\}, f(m)f(m) was set equal to f(m1)+1f(m - 1) + 1. So this means that the algorithm would have set f(n)=f(x)+(nx)=ka+(nx)f(n) = f(x) + (n - x) = ka + (n - x). Since nx<kn - x < k, ka+(nx)<k(a+1)kbka + (n - x) < k(a + 1) \le kb. Therefore f(n)<f(n+1)f(n) < f(n + 1) as desired.

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 and solution reproduced as published; topic and difficulty added by this site.