1. **Define S(n,m) and P(n,m):**
Let S(n,m) be the number of sequences of length n consisting of 0 and 1 in which there exists a 0 in any consecutive m digits. Let P(n,m) denote the number of sequences of length n that contain at least one block of m consecutive 1's.
2. **Relationship between S(n,m) and P(n,m):**
Clearly, S(n,m)=2n−P(n,m). This is because 2n is the total number of sequences of length n consisting of 0 and 1, and P(n,m) is the number of sequences that do not satisfy the condition of having a 0 in any consecutive m digits.
3. **Counting P(n,m):**
The elements of P(n,m) can be divided into disjoint sets as follows: Pi⊂P where the elements of Pi contain their first block of m consecutive 1's starting from the (i+1)th position and ending in the (i+m)th position. Clearly, ∣P∣=∑i=0n−m−1∣Pi∣.
4. **Counting ∣Pi∣:**
By an easy counting argument, ∣Pi∣=2n−m−1−2n−k−mP(i−1,m). Thus,
P(n,m)=(n−m+1)2n−m−1−k=0∑n−m2n−k−mP(k−1,m)
with 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)
Using the relationship S(n,m)=2n−P(n,m), we can rewrite the inequality in terms of P(n,m):
(22015n−P(2015n,n))⋅(22015m−P(2015m,m))≥(22015n−P(2015n,m))⋅(22015m−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)
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)
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))
9. **Use the fact that P(n,k)<P(n,l) when k<l:**
Since P(n,k)<P(n,l) when k<l, we have P(2015m,n)>P(2015m,m) and P(2015n,m)>P(2015n,n). Therefore, the right-hand side of the inequality is non-negative, and the inequality holds.
■