MathLabs

Problem 5

Find a sequence of maximal length consisting of non-zero integers in which the sum of any seven consecutive terms is positive and that of any eleven consecutive terms is negative.
Step 1 of 5: Assume 17 terms and form the overlapping array
a1,…,a17 arranged in 7 rows of 11 consecutive termsa_1,\ldots,a_{17}\text{ arranged in }7\text{ rows of }11\text{ consecutive terms}
Detailed analysis

If a sequence had more than 16 terms, take its first 1717 terms. Make seven rows: row ii contains ai,ai+1,…,ai+10a_i,a_{i+1},\ldots,a_{i+10} for i=1,…,7i=1,\ldots,7. Each row is an eleven-term block, while each column is a seven-term block.