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 5 of 5: Instantiate the pattern and attain the bound
Detailed analysis
Taking and gives the sequence . Its seven-term sums equal and its eleven-term sums equal , so it is valid. Together with the upper bound, the maximum length is .