Maths Olympiad Prep

Library / /5 of 6

, 2009

Algebra Difficulty 8.9 Shortlist Prove it United States

Determine all functions ff from the set of positive integers to the set of positive integers such that, for all positive integers aa and bb, there exists a non-degenerate triangle with sides of lengths aa, f(b)f(b) and f(b+f(a)1)f(b+f(a)-1).

Solutions — 2

Solution 1

If f(b+v2)=f(b)1f(b+v_2) = f(b)-1, then setting a=2a=2 and b=b+v2b = b+v_2 in the given condition leads to the triangular triple {2,f(b+v2)=f(b)1,f(b+2v2)}\{2, f(b+v_2) = f(b)-1, f(b+2v_2)\}. By the triangle inequality and (c), the only possible value of f(b+2v2)f(b+2v_2) is f(b)2f(b)-2. Likewise, we can deduce that f(b+3v2)=f(b)3f(b+3v_2) = f(b)-3, and so on. But this impossible, because ff takes values in the set of positive integers.
We conclude that f(b+v2)=f(b)+1f(b + v_2) = f(b) + 1. By a simple induction, we have f(b+kv2)=f(b)+kf(b + kv_2) = f(b) + k for positive integers kk. In particular, setting b=1b = 1 yields
f(1)=1,f(1+v2)=2,f(1+2v2)=3,,f(1+kv2)=1+k,(1) f(1) = 1, \quad f(1+v_2) = 2, \quad f(1+2v_2) = 3, \quad \dots, \quad f(1+kv_2) = 1+k, \dots \quad (1)
Setting k=v2k = v_2 in (1) gives
f(1+v22)=1+v2. f(1 + v_2^2) = 1 + v_2.
By (b), we conclude that 1+v22=f(f(1+v22))=f(1+v2)=21+v_2^2 = f(f(1+v_2^2)) = f(1+v_2) = 2, implying that v2=1v_2 = 1. Substituting v2=1v_2 = 1 in (1) leads to the solution f(x)=xf(x) = x.

Solution 2

We start with a lemma that is slightly stronger than Freiman's theorem. Part of this lemma could be very helpful in certain proofs of USAMO 2009 problem 2 and IMO 2000 problem 1.

Lemma 1. Let A,BA, B be finite nonempty subsets of Z\mathbb{Z}. Then the set A+B={a+b:aA,bB}A+B = \{a+b : a \in A, b \in B\} has cardinality at least A+B1|A| + |B| - 1. Equality holds if and only if either AA and BB are arithmetic progressions with equal difference or at least one of A|A| or B|B| is equal to 1. (Here S|S| denotes the number of elements in SS.)

Proof. Let A={a1<a2<<aA}A = \{a_1 < a_2 < \dots < a_{|A|}\} and B={b1<b2<<bB}B = \{b_1 < b_2 < \dots < b_{|B|}\}. The following A+B1|A| + |B| - 1 distinct elements, arranged in increasing order, are in A+BA+B:
a1+b1<<a1+bB<a2+bB<<aA+B. a_1 + b_1 < \dots < a_1 + b_{|B|} < a_2 + b_{|B|} < \dots < a_{|A|+|B|}.
Therefore A+BA+B1|A+B| \ge |A| + |B| - 1, establishing the inequality.

Next we consider the equality case. Let cic_i denote the value of the ithi^{\text{th}} element in the above list. Assume that A+B=A+B1|A+B| = |A| + |B| - 1 and A,B>1|A|, |B| > 1. For any 1<iA1 < i \le |A| and 1<jB1 < j \le |B|, consider the following list of A+B1|A| + |B| - 1 distinct elements in A+BA+B:
a1+b1<<a1+bj1j1 elements<a2+bj1<<ai+bj1i1 elements<ai+bj<<ai+bBBj+1 elements<ai+1+bB<<aA+bBAi elements. \underbrace{a_1 + b_1 < \dots < a_1 + b_{j-1}}_{j-1 \text{ elements}} < \underbrace{a_2 + b_{j-1} < \dots < a_i + b_{j-1}}_{i-1 \text{ elements}} < \underbrace{a_i + b_j < \dots < a_i + b_{|B|}}_{|B|-j+1 \text{ elements}} < \underbrace{a_{i+1} + b_{|B|} < \dots < a_{|A|} + b_{|B|}}_{|A|-i \text{ elements}}.
This list must be the same as before. Therefore ai+bj1=ci+j2a_i+b_{j-1} = c_{i+j-2}. Likewise ai1+bj=ci+j2a_{i-1}+b_j = c_{i+j-2}. Therefore ai+bj1=ai1+bja_i + b_{j-1} = a_{i-1} + b_j and aiai1=bjbj1a_i - a_{i-1} = b_j - b_{j-1}. Hence, both AA and BB are arithmetic progressions with the same common difference. \square

Now we can complete our proof in a few steps.

(d) For a positive integer nn, let In={1,2,,n}I_n = \{1, 2, \dots, n\}, An={f(i):iIn}\mathcal{A}_n = \{f(i) : i \in I_n\}. Because f(f(n))=nf(f(n)) = n, the given condition implies the more symmetric fact that {a,b,f(f(a)+f(b)1)}\{a, b, f(f(a) + f(b) - 1)\} is triangular. Hence if a,bIna, b \in I_n, then f(f(a)+f(b)1)2n1f(f(a) + f(b) - 1) \le 2n - 1.

(e) Combining (c) and (d), we conclude that {f(a)+f(b)1:a,bIn}2n1|\{f(a) + f(b) - 1 : a, b \in I_n\}| \le 2n - 1; that is,
An+Am={f(a)+f(b):a,bIn}={f(a)+f(b)1:a,bIn}2n1=2An1. |\mathcal{A}_n + \mathcal{A}_m| = |\{f(a) + f(b) : a, b \in I_n\}| = |\{f(a) + f(b) - 1 : a, b \in I_n\}| \le 2n - 1 = 2|\mathcal{A}_n| - 1.

(f) By the lemma and (e), we deduce that An\mathcal{A}_n is an nn-element set with its elements forming an arithmetic progression starting with f(1)=1f(1) = 1.

(g) Consider the elements in An\mathcal{A}_n and An+1\mathcal{A}_{n+1}. Clearly, AnAn+1\mathcal{A}_n \subset \mathcal{A}_{n+1} and An+1\mathcal{A}_{n+1} has one additional element. If n3n \ge 3, this additional element must be at one of the ends of the arithmetic sequence formed by the elements in An\mathcal{A}_n. But both sets have minimum value f(1)=1f(1) = 1. Hence this new element must be at the upper end. We conclude that ff is linear except possibly for f(2)f(2) and f(3)f(3).

(h) Note that (b) also implies that ff is surjective. Combining with (c), we know that ff is bijective. By (g), we must have f(n)=nf(n) = n for n4n \ge 4.

(g) For a=2a = 2 and large bb, {2,b,f(2)+b1}\{2, b, f(2)+b-1\} is triangular if and only if f(2)+b1<2+bf(2)+b-1 < 2+b, implying that f(2)=2f(2) = 2. Likewise, or using injectivity, we have f(3)=3f(3) = 3, completing our proof.

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.