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 4 of 5: Choose a 16-term periodic-pattern candidate
Detailed analysis
Use the displayed 16-term pattern, a truncation of a cycle of seven entries. Every seven consecutive terms have sum , and every eleven consecutive terms have sum . Thus it is enough to choose nonzero integers satisfying and .