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
Detailed analysis
If a sequence had more than 16 terms, take its first terms. Make seven rows: row contains for . Each row is an eleven-term block, while each column is a seven-term block.