Maths Olympiad Prep

Track / Stage 7 / 101 of 300 #1501 of 1964

Problem 1501

National Olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.1 Prove it

Let m,nm, n be positive integers. Let S(n,m)S(n,m) be the number of sequences of length nn and consisting of 00 and 11 in which there exists a 00 in any consecutive mm digits. Prove that

S(2015n,n).S(2015m,m)≥S(2015n,m).S(2015m,n)S(2015n,n).S(2015m,m)\ge S(2015n,m).S(2015m,n)

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

1. **Define S(n,m) S(n, m) and P(n,m) P(n, m) :**
Let S(n,m) S(n, m) be the number of sequences of length n n consisting of 0 0 and 1 1 in which there exists a 0 0 in any consecutive m m digits. Let P(n,m) P(n, m) denote the number of sequences of length n n that contain at least one block of m m consecutive 1 1 's.

2. **Relationship between S(n,m) S(n, m) and P(n,m) P(n, m) :**
Clearly, S(n,m)=2n−P(n,m) S(n, m) = 2^n - P(n, m) . This is because 2n 2^n is the total number of sequences of length n n consisting of 0 0 and 1 1 , and P(n,m) P(n, m) is the number of sequences that do not satisfy the condition of having a 0 0 in any consecutive m m digits.

3. **Counting P(n,m) P(n, m) :**
The elements of P(n,m) P(n, m) can be divided into disjoint sets as follows: Pi⊂P P_i \subset P where the elements of Pi P_i contain their first block of m m consecutive 1 1 's starting from the (i+1)(i+1)th position and ending in the (i+m)(i+m)th position. Clearly, ∣P∣=∑i=0n−m−1∣Pi∣|P| = \sum_{i=0}^{n-m-1} |P_i|.

4. **Counting ∣Pi∣ |P_i| :**
By an easy counting argument, ∣Pi∣=2n−m−1−2n−k−mP(i−1,m) |P_i| = 2^{n-m-1} - 2^{n-k-m}P(i-1, m) . Thus,
P(n,m)=(n−m+1)2n−m−1−∑k=0n−m2n−k−mP(k−1,m) P(n, m) = (n-m+1)2^{n-m-1} - \sum_{k=0}^{n-m} 2^{n-k-m}P(k-1, m)
with P(−1,m)=1 P(-1, m) = 1 .

5. Prove the inequality:
We need to prove that
S(2015n,n)⋅S(2015m,m)≥S(2015n,m)⋅S(2015m,n) S(2015n, n) \cdot S(2015m, m) \ge S(2015n, m) \cdot S(2015m, n)
Using the relationship S(n,m)=2n−P(n,m) S(n, m) = 2^n - P(n, m) , we can rewrite the inequality in terms of P(n,m) P(n, m) :
(22015n−P(2015n,n))⋅(22015m−P(2015m,m))≥(22015n−P(2015n,m))⋅(22015m−P(2015m,n)) (2^{2015n} - P(2015n, n)) \cdot (2^{2015m} - P(2015m, m)) \ge (2^{2015n} - P(2015n, m)) \cdot (2^{2015m} - P(2015m, n))

6. Simplify the inequality:
Expanding both sides, we get:
22015n+2015m−22015nP(2015m,m)−22015mP(2015n,n)+P(2015n,n)P(2015m,m)≥22015n+2015m−22015nP(2015m,n)−22015mP(2015n,m)+P(2015n,m)P(2015m,n) 2^{2015n + 2015m} - 2^{2015n}P(2015m, m) - 2^{2015m}P(2015n, n) + P(2015n, n)P(2015m, m) \ge 2^{2015n + 2015m} - 2^{2015n}P(2015m, n) - 2^{2015m}P(2015n, m) + P(2015n, m)P(2015m, n)

7. Cancel common terms:
−22015nP(2015m,m)−22015mP(2015n,n)+P(2015n,n)P(2015m,m)≥−22015nP(2015m,n)−22015mP(2015n,m)+P(2015n,m)P(2015m,n) - 2^{2015n}P(2015m, m) - 2^{2015m}P(2015n, n) + P(2015n, n)P(2015m, m) \ge - 2^{2015n}P(2015m, n) - 2^{2015m}P(2015n, m) + P(2015n, m)P(2015m, n)

8. Rearrange the terms:
P(2015n,n)P(2015m,m)−P(2015n,m)P(2015m,n)≥22015n(P(2015m,n)−P(2015m,m))+22015m(P(2015n,m)−P(2015n,n)) P(2015n, n)P(2015m, m) - P(2015n, m)P(2015m, n) \ge 2^{2015n} (P(2015m, n) - P(2015m, m)) + 2^{2015m} (P(2015n, m) - P(2015n, n))

9. **Use the fact that P(n,k)<P(n,l) P(n, k) < P(n, l) when k<l k < l :**
Since P(n,k)<P(n,l) P(n, k) < P(n, l) when k<l k < l , we have P(2015m,n)>P(2015m,m) P(2015m, n) > P(2015m, m) and P(2015n,m)>P(2015n,n) P(2015n, m) > P(2015n, n) . Therefore, the right-hand side of the inequality is non-negative, and the inequality holds.

■\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.