A Finite Sequence

In a finite sequence of real numbers, the sum of any seven successive terms is negative, and the sum of any eleven successive terms is positive. Determine the maximum number of terms in the sequence.


The answer is 16.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Brian Moehring
Jul 20, 2018

Write the sequence as x 1 , x 2 , , x N x_1, x_2, \ldots, x_N and define S ( m , k ) = n = k k + m 1 x n S(m,k) = \displaystyle\sum_{n=k}^{k+m-1} x_n , which is the sum of the m m consecutive terms starting with index k k . Then the assumptions in the problem can be written as S ( 11 , k ) > 0 1 k N 10 S ( 7 , k ) < 0 1 k N 6 \begin{aligned} S(11,k) > 0 & & 1 \leq k \leq N-10 \\ S(7,k) < 0 & & 1 \leq k \leq N-6 \end{aligned}

By using these, we can find that S ( 4 , k ) = S ( 11 , k 7 ) S ( 7 , k 7 ) > 0 8 k N 3 S ( 3 , k ) = S ( 7 , k 4 ) S ( 4 , k 4 ) < 0 12 k N 2 x k = S ( 4 , k 3 ) S ( 3 , k 3 ) > 0 15 k N \begin{aligned} S(4,k) = S(11,k-7) - S(7,k-7) > 0 & & 8 \leq k \leq N-3 \\ S(3,k) = S(7,k-4) - S(4,k-4) < 0 & & 12 \leq k \leq N-2 \\ x_k = S(4,k-3) - S(3,k-3) > 0 & & 15 \leq k \leq N \end{aligned} but if N 17 N \geq 17 , this gives 0 < x 15 + x 16 + x 17 = S ( 3 , 15 ) < 0 0 < x_{15} + x_{16} + x_{17} = S(3,15) < 0 which is a contradiction, so N 16 N \leq 16 .

To show that this is in fact the maximum, it suffices to note that the sequence 5 , 5 , 13 , 5 , 5 , 5 , 13 , 5 , 5 , 13 , 5 , 5 , 5 , 13 , 5 , 5 5, 5, -13, 5, 5, 5, -13, 5, 5, -13, 5, 5, 5, -13, 5, 5 has length 16 16 and is such that the sum of any seven consecutive terms is 1 -1 and the sum of any eleven consecutive terms is 1 1 .

Therefore, the answer is 16 \boxed{16} .

For anyone interested in the inner workings of how I found that sequence, note that we can define the running sums S k = n = 1 k x n S_k = \sum_{n=1}^k x_n (where S 0 = 0 S_0 = 0 ) and then the two requirements given in the problem become S k + 7 S k < 0 0 k 9 S k + 11 S k > 0 0 k 5 \begin{aligned} S_{k+7} - S_k < 0 & & 0 \leq k \leq 9 \\ S_{k+11}-S_k > 0 & & 0 \leq k \leq 5 \end{aligned} Solving these gives the single chain S 10 < S 3 < S 14 < S 7 < 0 < S 11 < S 4 < S 15 < S 8 < S 1 < S 12 < S 5 < S 16 < S 9 < S 2 < S 13 < S 6 S_{10} < S_3 < S_{14} < S_7 < 0 < S_{11} < S_4 < S_{15} < S_8 < S_1 < S_{12} < S_5 < S_{16} < S_9 < S_2 < S_{13} < S_6 so we can find one solution by assigning respective to 4 < 3 < 2 < 1 < 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < 10 < 11 < 12 -4 < -3 < -2 < -1 < 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < 10 < 11 < 12 and then find the terms as x k = S k S k 1 x_k = S_k - S_{k-1} . This gives exactly the sequence given in the solution.

Brian Moehring - 2 years, 10 months ago
Mark Hennings
Jul 23, 2018

f there was a sequence with 17 17 terms, arrange the terms (with some repetitions) as follows:

x 1 x 2 x 3 . . . x 11 x 2 x 3 x 4 . . . x 12 x 3 x 4 x 5 . . . x 13 . . . x 7 x 8 x 9 . . . x 17 \begin{array}{ccccc} x_1 & x_2 & x_3 & ... & x_{11} \\ x_2 & x_3 & x_4 & ... & x_{12} \\ x_3 & x_4 & x_5 & ... & x_{13} \\ \vdots & \vdots & \vdots & ... & \vdots \\ x_7 & x_8 & x_9 & ... & x_{17} \end{array} The sum of the entries in any row is positive, and so the sum of all the terms in the array is positive. But the sum of the entries in any column is negative, and so the sum of all the terms in the array is negative. This contradiction shows that the sequence cannot contain 17 17 terms. A sequence with 16 \boxed{16} terms is possible, as in 12 12 31 12 12 12 31 12 12 31 12 12 12 31 12 12 12 \;\;\; 12 \;\;\; -31 \;\;\; 12 \;\;\; 12 \;\;\; 12\;\;\; -31 \;\;\; 12 \;\;\; 12 \;\;\; -31 \;\;\; 12 \;\;\; 12 \;\;\; 12\;\;\; -31 \;\;\; 12 \;\;\; 12

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...