Browse · MathNet
PrintVMO
Vietnam counting and probability
Problem
For two positive integers and , let be the set of all ordered -tuples that satisfy all the following conditions:
i) for every ; ii) for every ; iii) There do not exist indices such that and .
a) Compute .
b) Prove that if and only if .
i) for every ; ii) for every ; iii) There do not exist indices such that and .
a) Compute .
b) Prove that if and only if .
Solution
a) To calculate , we need to count the number of such that and satisfy the conditions ii), iii). We investigate these two cases.
If the first 3 terms are distinct, we consider the case where represents. For then or , but if then there is no choice for . Hence, and . So this case has only one satisfying set. Note that there are ways to choose for so there are 6 satisfying tuples.
If there are two identical numbers in the first 3 terms, we consider to represent. With set , we see that cannot be 1 or 2 so , thus . Similarly, we can compute that there are exactly 6 satisfying sets.
Thus, .
b) Call a set beautiful if it satisfies the given conditions. We will prove that the necessary and sufficient conditions for the existence of a nice set of numbers in the set are .
Sufficient condition. For , we consider a set of numbers of the form
By direct checking, we obtain that the upper set is beautiful. It follows that for every , the set is non-empty.
Necessary condition. To prove when , we only need to prove that there is no satisfying tuple when . We will prove this by induction.
For , the statement is clearly true. Assume that for every , there does not exist a beautiful tuple when . We will show that this is also true for . Suppose that there exists a beautiful tuple for , which is then let be the number of the occurrences of the element in that tuple, we have the following cases:
If then this nice tuple has length but the elements only take values not exceed , which is a contradiction.
If . If is at the beginning or the end of the tuple, we delete it and the new set is also beautiful with the length is , which is a contradiction. Therefore, the position of must be centered with the form
If then deleting again as above; and if , removing along with or (so that no two equal numbers are next to each other), then the new set is also beautiful and has a length of , which is a contradiction.
From the above argument, we observe that it is impossible for any value to appear exactly one time. Therefore, if then all the values appear exactly two times in the tuple. Let be the number between two elements in the form
then it is clear that the outer numbers must be different from these numbers. Without loss of generality, suppose that these number takes the value of , then and these numbers form a new beautiful tuple, which is a contradiction.
If , by the above argument, this case does not happen.
Therefore, in all cases, the assertion is true. Thus, if and only if .
If the first 3 terms are distinct, we consider the case where represents. For then or , but if then there is no choice for . Hence, and . So this case has only one satisfying set. Note that there are ways to choose for so there are 6 satisfying tuples.
If there are two identical numbers in the first 3 terms, we consider to represent. With set , we see that cannot be 1 or 2 so , thus . Similarly, we can compute that there are exactly 6 satisfying sets.
Thus, .
b) Call a set beautiful if it satisfies the given conditions. We will prove that the necessary and sufficient conditions for the existence of a nice set of numbers in the set are .
Sufficient condition. For , we consider a set of numbers of the form
By direct checking, we obtain that the upper set is beautiful. It follows that for every , the set is non-empty.
Necessary condition. To prove when , we only need to prove that there is no satisfying tuple when . We will prove this by induction.
For , the statement is clearly true. Assume that for every , there does not exist a beautiful tuple when . We will show that this is also true for . Suppose that there exists a beautiful tuple for , which is then let be the number of the occurrences of the element in that tuple, we have the following cases:
If then this nice tuple has length but the elements only take values not exceed , which is a contradiction.
If . If is at the beginning or the end of the tuple, we delete it and the new set is also beautiful with the length is , which is a contradiction. Therefore, the position of must be centered with the form
If then deleting again as above; and if , removing along with or (so that no two equal numbers are next to each other), then the new set is also beautiful and has a length of , which is a contradiction.
From the above argument, we observe that it is impossible for any value to appear exactly one time. Therefore, if then all the values appear exactly two times in the tuple. Let be the number between two elements in the form
then it is clear that the outer numbers must be different from these numbers. Without loss of generality, suppose that these number takes the value of , then and these numbers form a new beautiful tuple, which is a contradiction.
If , by the above argument, this case does not happen.
Therefore, in all cases, the assertion is true. Thus, if and only if .
Final answer
a) 12 b) |S_n(d)| > 0 if and only if d ≤ 2n − 1
Techniques
Induction / smoothingColoring schemes, extremal arguments