Determine all functions from the set of positive integers to the set of positive integers such that, for all positive integers and , there exists a non-degenerate triangle with sides of lengths , and .
, 2009
Solutions — 2
Solution 1
If , then setting and in the given condition leads to the triangular triple . By the triangle inequality and (c), the only possible value of is . Likewise, we can deduce that , and so on. But this impossible, because takes values in the set of positive integers.
We conclude that . By a simple induction, we have for positive integers . In particular, setting yields
Setting in (1) gives
By (b), we conclude that , implying that . Substituting in (1) leads to the solution .
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 be finite nonempty subsets of . Then the set has cardinality at least . Equality holds if and only if either and are arithmetic progressions with equal difference or at least one of or is equal to 1. (Here denotes the number of elements in .)
Proof. Let and . The following distinct elements, arranged in increasing order, are in :
Therefore , establishing the inequality.
Next we consider the equality case. Let denote the value of the element in the above list. Assume that and . For any and , consider the following list of distinct elements in :
This list must be the same as before. Therefore . Likewise . Therefore and . Hence, both and are arithmetic progressions with the same common difference.
Now we can complete our proof in a few steps.
(d) For a positive integer , let , . Because , the given condition implies the more symmetric fact that is triangular. Hence if , then .
(e) Combining (c) and (d), we conclude that ; that is,
(f) By the lemma and (e), we deduce that is an -element set with its elements forming an arithmetic progression starting with .
(g) Consider the elements in and . Clearly, and has one additional element. If , this additional element must be at one of the ends of the arithmetic sequence formed by the elements in . But both sets have minimum value . Hence this new element must be at the upper end. We conclude that is linear except possibly for and .
(h) Note that (b) also implies that is surjective. Combining with (c), we know that is bijective. By (g), we must have for .
(g) For and large , is triangular if and only if , implying that . Likewise, or using injectivity, we have , completing our proof.