Skip to main content
OlympiadHQ

Browse · MathNet

Print

International Mathematical Olympiad

counting and probability

Problem

For any finite sets and of positive integers, denote by the smallest positive integer not in , and let Let be a set of positive integers, and let be a set of positive integers. Prove that if , then
Solution
For any function and any subset , we define . We have that the image of is . We now show a general lemma about the operation , with the goal of showing that is associative.

Lemma 1. Let and be finite sets of positive integers. The functions and are equal.

Proof. We have Thus, the functions and are strictly increasing functions with the same range. Because a strictly increasing function is uniquely defined by its range, we have .

Lemma 1 implies that is associative, in the sense that for any finite sets , and of positive integers. We prove the associativity by noting In light of the associativity of , we may drop the parentheses when we write expressions like . We also introduce the notation Our goal is then to show that implies . We will do so via the following general lemma.

Lemma 2. Suppose that and are finite sets of positive integers satisfying and . Then, we must have .

Proof. Assume that and are not equal. Let be the largest number in exactly one of and . Without loss of generality, say that . The number counts the number not in , which implies that Since , we have that which, together with the assumption that , gives Now consider the equation This equation is satisfied only when , because the left hand side counts the number of elements up to that are not in . We have that the value satisfies the above equation because of (1) and (2). Furthermore, since and , we have that due to the maximality of . Thus, by the above discussion, we must have .

Finally, we arrive at a contradiction. The value is neither in nor in , because is not in by assumption. Thus, . However, since , we have , a contradiction.

---

Alternative solution.

We will use Lemma 1 from Solution 1. Additionally, let be defined as in Solution 1. If and are finite sets, then where the first equivalence is because and are strictly increasing functions, and the second equivalence is because and .

Denote and . The given relation is equivalent to because of (3), and by Lemma 1 of the first solution, this is equivalent to . Similarly, the required relation is equivalent to . We will show that for all , which suffices to solve the problem.

To start, we claim that (4) holds for all sufficiently large . Indeed, let and be the maximal elements of and , respectively; we may assume that . Then, for every we have and , whence , as was claimed.

In view of this claim, if (4) is not identically true, then there exists a maximal with . Without loss of generality, we may assume that , for if we had , then would satisfy (4). As is increasing, we then have , so (4) holds for . But then we have where the last equality holds in view of . By the injectivity of , the above equality yields , which contradicts the choice of . Thus, we have proved that (4) is identically true on , as desired.

Comment 2. We present another proof of Lemma 2 of the first solution.

Let . Say that is the smallest number in and is the smallest number in ; assume without loss of generality that .

Let be any finite set of positive integers, and define . Enumerate the elements of as . Define , and enumerate its elements . Note that the are pairwise disjoint; indeed, if we have , then We claim the following statement, which essentially says that the are eventually linear translates of each other:

Claim. For every , there exists some and such that for all , we have that . Furthermore, the do not depend on the choice of .

First, we show that this claim implies Lemma 2. We may choose and . Then, there is some such that for all , we have Because is the minimum element of , is the minimum element of , and , we have that and in both the first and second expressions, the unions are of pairwise distinct sets. By (5), we obtain . Now, because and commute, we get , and so .

We now prove the claim.

Proof of the claim. We induct downwards on , first proving the statement for , and so on.

Assume that is chosen so that all elements of are greater than all elements of (which is possible because is finite). For , we have that for every . Thus, all numbers of the form for and are less than . We then have that is the number not in , which is equal to . So we may choose , which does not depend on , which proves the base case for the induction.

Techniques

Functional equationsInjectivity / surjectivity