Browse · MathNet
PrintSAUDI ARABIAN MATHEMATICAL COMPETITIONS
Saudi Arabia counting and probability
Problem
Consider the set . How many positive integers with that satisfy the following conditions:
i) There exists some partition of the set into disjoint pairs which are with .
ii) For all partitions satisfy the condition (i), the sum has the right most digit is .
i) There exists some partition of the set into disjoint pairs which are with .
ii) For all partitions satisfy the condition (i), the sum has the right most digit is .
Solution
First, we notice that for all , we always can find a partition satisfy i). For example, we can choose , with .
Denote as the number of pairs with then Hence, the necessary condition of is is divisible by . First, we can see that all numbers satisfy the given condition.
Indeed, we have some cases:
1. If then and ii) is satisfied.
2. If then is even. Thus, we need to prove is even. This is true because we can write with are the number of pairs with the difference is that have same parity and different parity. In , the number of even and odd numbers are equal and all the pairs with also contain exactly number in each type of even/odd. These imply that or is an even number.
Hence, all numbers satisfy the given condition.
Next, we will prove that all other numbers do not satisfy the given condition.
3. If is odd then is not divisible by . We choose the partition with , and the rest are divided into pairs with being two consecutive numbers. It is easy to check that this partition satisfies i) but not ii) because .
4. If is even, is not divisible by then is an odd number that is not divisible by . We choose the partition with exactly two pairs and the rest are divided into pairs with being two consecutive numbers. Similarly with the previous case, we have .
Therefore, the necessary and sufficient condition of is . From to , we have numbers in total satisfy it.
Denote as the number of pairs with then Hence, the necessary condition of is is divisible by . First, we can see that all numbers satisfy the given condition.
Indeed, we have some cases:
1. If then and ii) is satisfied.
2. If then is even. Thus, we need to prove is even. This is true because we can write with are the number of pairs with the difference is that have same parity and different parity. In , the number of even and odd numbers are equal and all the pairs with also contain exactly number in each type of even/odd. These imply that or is an even number.
Hence, all numbers satisfy the given condition.
Next, we will prove that all other numbers do not satisfy the given condition.
3. If is odd then is not divisible by . We choose the partition with , and the rest are divided into pairs with being two consecutive numbers. It is easy to check that this partition satisfies i) but not ii) because .
4. If is even, is not divisible by then is an odd number that is not divisible by . We choose the partition with exactly two pairs and the rest are divided into pairs with being two consecutive numbers. Similarly with the previous case, we have .
Therefore, the necessary and sufficient condition of is . From to , we have numbers in total satisfy it.
Final answer
403
Techniques
Invariants / monovariantsColoring schemes, extremal argumentsIntegers