MathDB
Strings of binary numbers (pure math solution required, not informatical ones)

Source: Romanian TST for 2019 IMO

October 1, 2019
Infodiscrete mathscombinatorics

Problem Statement

For a natural number n, n, a string s s of n n binary digits and a natural number kn, k\le n, define an n,s,k n,s,k -block as a string of k k consecutive elements from s. s. We say that two n,s,k-blocks, n,s,k\text{-blocks} , namely, a1a2ak,b1b2bk, a_1a_2\ldots a_k,b_1b_2\ldots b_k, are incompatible if there exists an i{1,2,,k} i\in\{1,2,\ldots ,k\} such that aibi. a_i\neq b_i. Also, for two natural numbers rn,l, r\le n, l, we say that s s is r,l r,l -typed if there are, at most, l l pairwise incompatible n,s,r-blocks. n,s,r\text{-blocks} . Let be a 3,7-typed 3,7\text{-typed} string t t consisting of 10000 10000 binary digits. Determine the maximum number M M that satisfies the condition that t t is 10,M-typed. 10,M\text{-typed} .
Cătălin Gherghe