Maths Olympiad Prep

Library / /86 of 97

Combinatorics Difficulty 8.6 Shortlist Find the answer

Let SS be the set of 1010-tuples of non-negative integers that have sum 20192019. For any tuple in SS, if one of the numbers in the tuple is 9\geq 9, then we can subtract 99 from it, and add 11 to the remaining numbers in the tuple. Call thus one operation. If for A,BSA,B\in S we can get from AA to BB in finitely many operations, then denote ABA\rightarrow B.

(1) Find the smallest integer kk, such that if the minimum number in A,BSA,B\in S respectively are both k\geq k, then ABA\rightarrow B implies BAB\rightarrow A.

(2) For the kk obtained in (1), how many tuples can we pick from SS, such that any two of these tuples A,BA,B that are distinct, A↛BA\not\rightarrow B.

A number or a short expression. Spacing and $ signs are ignored.

Solution

### Part 1:
We need to find the smallest integer k k such that if the minimum number in A,BS A, B \in S are both k\geq k, then AB A \rightarrow B implies BA B \rightarrow A .

We claim that the smallest integer k k is 8 8 .

Proof:

1. **k7 k \leq 7 does not satisfy the condition:**

Consider the counterexample A=(1956,7,7,7,7,7,7,7,7,7) A = (1956, 7, 7, 7, 7, 7, 7, 7, 7, 7) and B=(1938,9,9,9,9,9,9,9,9,9) B = (1938, 9, 9, 9, 9, 9, 9, 9, 9, 9) . It is clear that AB A \rightarrow B . However, B↛A B \not\rightarrow A because each of the entries from the 2nd to the 10th in B B must be subtracted by 9 at least once. After the last subtraction, the remaining entries should be greater than or equal to 8, which contradicts the condition.

2. **k=8 k = 8 does satisfy the condition:**

Denote the numbers in the i i -th entry as xi x_i . For any i i and j j , xixjmod10 x_i - x_j \mod 10 is conserved. Assume 8a1a2a10 8 \leq a_1 \leq a_2 \leq \cdots \leq a_{10} for A A . We need to show that for each i i , we can operate on B B so that x1a1=x2a2==xiai x_1 - a_1 = x_2 - a_2 = \cdots = x_i - a_i .

We prove this by induction on i i . The base case is trivial. Suppose x1a1=x2a2==xiai x_1 - a_1 = x_2 - a_2 = \cdots = x_i - a_i . Since xixjmod10 x_i - x_j \mod 10 is conserved and AB A \rightarrow B , xiaimod10 x_i - a_i \mod 10 should be equal for all i i . Repeat operations on x1,x2,,xi+1 x_1, x_2, \cdots, x_{i+1} equal times so that x1 x_1 or xi+18 x_{i+1} \leq 8 . If xi+1ai+1<xiai x_{i+1} - a_{i+1} < x_i - a_i , let t=(xiai)(xi+1ai+1)10 t = \frac{(x_i - a_i) - (x_{i+1} - a_{i+1})}{10} . After some calculations, we can subtract 9 from all xj(ji+1) x_j (j \neq i+1) t t times, including necessary operations subtracting 9 from xj(ji+2) x_j (j \geq i+2) , while not subtracting 9 from xi+1 x_{i+1} . If xi+1ai+1>xiai x_{i+1} - a_{i+1} > x_i - a_i , proceed similarly.

Thus, the smallest k k is 8 8 .

### Part 2:
For the k k obtained in Part 1, we need to find how many tuples can be picked from S S such that any two distinct tuples A,B A, B satisfy A↛B A \not\rightarrow B .

We have practically shown that AB A \rightarrow B is equivalent to a1b1a2b2a10b10(mod10) a_1 - b_1 \equiv a_2 - b_2 \equiv \cdots \equiv a_{10} - b_{10} \pmod{10} . We need to count the number of tuples that cannot be derived from each other, ensuring x1+x2++x10=20199(mod10) x_1 + x_2 + \cdots + x_{10} = 2019 \equiv 9 \pmod{10} .

The number of such tuples is 108 10^8 .

The answer is: \boxed{10^8}.

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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.