Positively non-positive

Algebra Level 5

For how many positive integers N N between 3 and 1000 (inclusive) is the following statement true?

If { a i } i = 1 N \{ a_i \} _{i=1}^N is a set of N N (not necessarily distinct) real numbers such that

a 1 + a 2 + + a N = 0 , a_1 + a_2 + \cdots + a_N = 0,

then we must (always) have

a 1 a 2 + a 2 a 3 + + a N 1 a N + a N a 1 0. a_1 a_2 + a_2 a_3 + \ldots + a_{N-1} a_N + a_N a_1 \leq 0.

Clarification : The cases of N = 1 , N = 2 N=1, N=2 are removed to avoid ambiguity in the second summation.


The answer is 2.

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.

8 solutions

Vikram Waradpande
Nov 18, 2013

We will show that only N = 3 , 4 N=3,4 work. Consider the sequence ( N 3 ) + 1 + ( 1 ) + ( 1 ) . . + ( 1 ) N-2 times = 0 (N-3) + 1 + \underbrace{ {(-1) + (-1)..+ (-1)} }_{ \text{ N-2 times } } = 0 These are N N real numbers whose sum is equal to 0 0 . Now we consider their second summation. That equals

( N 3 ) 1 1 + 1 + 1 + 1.. + 1 N-4 times ( N 3 ) = ( N 4 ) (N-3)*1 - 1 + \underbrace{ {1+1+1..+1 } }_{ \text{N-4 times } } - (N-3) = (N-4) which is positive when N 5 N \geq 5 This contradicts the second inequality. So all N 5 N \geq 5 don't always work.

Now consider the cases when N = 3 , N = 4 N=3, N=4 Case 1 : When N = 3 N=3 : Let the numbers be a 1 , a 2 , a 3 a_1 , a_2 , a_3
a 1 + a 2 + a 3 = 0 a_1 + a_2 +a_3 = 0 so , a 1 + a 2 = a 3 a_1 + a_2 = -a_3 It can easily be checked that the second summation in this case is always 0 \leq 0

Case 2 : When N = 4 N=4 : Let the numbers be a 1 , a 2 , a 3 , a 4 a_1 , a_2 , a_3 , a_4 In this case the second summation after simplifications reduces to ( a 2 + a 4 ) 2 -(a_2 + a_4)^2 which is again non positive. So we conclude that only N = 3 N=3 and N = 4 N=4 work, and hence the answer is 2 \boxed{2}

When you considered the second summation, U put +1 a N-4 times whereas it should be a N-3 times.

shaurya gupta - 7 years, 6 months ago
Zi Song Yeoh
Nov 17, 2013

If N 5 N \ge 5 , we can choose a 1 = 1 , a N = 1 , a 3 = 2 , a 2 = a 4 = . . . = a N 1 = 0 a_1 = -1, a_N = -1, a_3 = 2, a_2 = a_4 = ... = a_{N - 1} = 0 , which contradicts the second inequality and satisfy the first equality.

If N = 4 N = 4 , note that the second inequality can be written as ( a + b ) ( c + d ) = ( a + b ) 2 0 (a + b)(c + d) = -(a + b)^2 \le 0 .

Finally, if N = 3 N = 3 , a b + a c + b c = c ( a + b ) + a b = ( a + b ) 2 + a b ab + ac + bc = c(a + b) + ab = -(a + b)^2 + ab .

We claim that ( a + b ) 2 a b (a + b)^2 \ge ab .

Note that by a + b + c = 0 a + b + c = 0 , at least one of a , b , c a, b, c is nonpositive and at least one is nonnegative.

If b c 0 bc \le 0 , we're done, since squares are nonnegative.

If not, b c > 0 bc > 0 , the inequality follows from ( b c ) 2 0 b 2 + c 2 4 b c b c (b - c)^2 \ge 0 \Rightarrow b^2 + c^2 \ge 4bc \ge bc .

Thus, there are 2 \boxed{2} possible values of N N .

Note : I think the problem should include the word inclusive to avoid ambiguity. I submitted 1 1 the first time for not including N = 3 N = 3 .

I think the 4 b c 4bc at the end should be 2 b c . 2bc.

Michael Tang - 7 years, 6 months ago

Log in to reply

Oops, typo. :)

Zi Song Yeoh - 7 years, 6 months ago
Jau Tung Chan
Nov 22, 2013

For all N 5 N \geq 5 , we consider the following construction:

  • a 1 = a N 1 = 0 a_1 = a_{N-1} = 0
  • a 2 = a 3 = a 4 = . . . = a N 2 = 1 a_2 = a_3 = a_4 = ... = a_{N-2} = 1
  • a N = ( a 1 + a 2 + a 3 + . . . a N 1 ) = ( N 3 ) a_N = -(a_1 + a_2 + a_3 + ... a_{N-1}) = -(N-3)

this includes the condition in the question

Now, with this construction, we consider the sum:

a 1 a 2 + a 2 a 3 + . . . + a N 1 a N + a N a 1 a_1 a_2 + a_2 a_3 + ... + a_{N-1} a_N + a_N a_1

= a 2 a 3 + a 3 a 4 + a 4 a 5 + . . . a N 3 a N 2 = a_2 a_3 + a_3 a_4 + a_4 a_5 + ... a_{N-3} a_{N-2}

= 1 + 1 + 1 + 1 + . . . + 1 = 1 + 1 + 1 + 1 + ... + 1

= N 4 = N - 4

1 > 0 \geq 1 > 0

Hence, for all N 5 N \geq 5 , the statement is false by construction. However, obviously, if N < 5 N < 5 , this construction would not hold. Therefore, we will instead prove that the statement is true for N = 3 N = 3 and N = 4 N = 4 separately.

N = 3 : N = 3:

a 1 a 2 + a 2 a 3 + a 3 a 1 a_1 a_2 + a_2 a_3 + a_3 a_1

= a 1 a 2 + ( a 1 + a 2 ) ( a 1 a 2 ) = a_1 a_2 + (a_1 + a_2) ( - a_1 - a_2) , by the condition given

= a 1 2 a 2 2 a 1 a 2 = - a_1^2 - a_2^2 - a_1 a_2

= ( a 1 + 1 2 a 2 ) 2 3 4 a 2 2 = - (a_1 + \frac{1}{2} a_2)^2 - \frac{3}{4} a_2^2

0 \leq 0 for all a 1 , a 2 a_1 , a_2

N = 4 : N = 4:

a 1 a 2 + a 2 a 3 + a 3 a 4 + a 4 a 1 a_1 a_2 + a_2 a_3 + a_3 a_4 + a_4 a_1

= a 1 a 2 + a 2 a 3 + ( a 1 + a 3 ) ( a 1 a 2 a 3 ) = a_1 a_2 + a_2 a_3 + (a_1 + a_3) ( - a_1 - a_2 - a_3) , by the condition given

= a 1 2 a 3 2 2 a 1 a 3 = - a_1^2 - a_3^2 - 2 a_1 a_3

= ( a 1 + a 3 ) 2 = - (a_1 + a_3)^2

0 \leq 0 for all a 1 , a 2 , a 3 a_1 , a_2 , a_3

Hence, the statement is only true for N = 3 , 4 N = 3 , 4 , and the answer is 2 2 .

Marek Bernat
Nov 18, 2013

Notice that 0 = ( a 1 + + a N ) 2 = a 1 2 + a N 2 + i j a i a j . 0 = (a_1 + \cdots + a_N)^2 = a_1^2 + \cdots a_N^2 + \sum_{i\neq j} a_i a_j . Let's split the last sum as 2 T + V 2T + V where T = a 1 a 2 + a 2 a 3 + + a N a 1 T = a_1a_2 + a_2a_3 + \cdots + a_N a_1 and in V V we collect the remaining terms. V V contains O ( N 2 ) O(N^2) terms whereas T T only N N terms. Therefore we expect T 0 T \leq 0 to be generically false. To be explicit, for N 6 N \geq 6 even, the set a 1 = = a N / 2 = 1 a_1 = \cdots = a_{N/2} = 1 , a N / 2 + 1 = = a N = 1 a_{N/2+1} = \cdots = a_N = -1 gives positive T T . For N 5 N \geq 5 odd, take the same configuration on the first N 1 N-1 terms and a N = 0 a_N = 0 .

Let's turn to the small cases. For N = 3 N = 3 the summand V V always vanishes and so 2 T = a 1 2 a 2 2 a 3 2 0. 2T = -a_1^2 -a_2^2 - a_3^2 \leq 0. For N = 4 N = 4 we get 2 T = ( a 1 + a 3 ) 2 ( a 2 + a 4 ) 2 0. 2T = -(a_1 + a_3)^2 - (a_2 + a_4)^2 \leq 0. So N = 3 , 4 N = 3, 4 are the only integers for which the statement is true and the answer is 2 \bf 2 .

Sujoy Roy
Nov 18, 2013

For N = 3 N=3 , the expression = a 1 a 2 + a 2 a 3 + a 3 a 1 = a 1 a 2 ( a 1 + a 2 ) 2 = ( a 1 + a 2 2 ) 2 3 a 2 2 4 < 0 =a_1a_2+a_2a_3+a_3a_1=a_1a_2-(a_1+a_2)^2=-(a_1+\frac{a_2}{2})^2-\frac{3a_2^2}{4}<0 . For N = 4 N=4 , the expression =a_1a_2+a_2a_3+a_3a_4+a_4a_1=(a_1+a_3)(a_4+a_2)=-(a_1+a_3}^2 <0. For N = 5 N=5 , let the numbers are 9 , 4 , 1 , 5 , 7 -9,-4,1,5,7 . Then numerical value of the expression is 9 9 . So for N = 5 N=5 , the expression is positive. For N = 6 N=6 , embed a 0 0 in between 4 -4 and 1 1 . So the sequence is 9 , 4 , 0 , 1 , 5 , 7 -9,-4,0,1,5,7 and the value of the expression is 13 13 . Now, for each subsequent cases, embed a 0 0 in between 0 0 and 1 1 , and for each cases we get a new sequence whose sum is 0 0 and the value of the expression is 13 13 . So answer is 2 2 .

There is some wrong expression in the above solution. The correction is given below: For N = 4 N=4 , the expression = a 1 a 2 + a 2 a 3 + a 3 a 4 + a 4 a 1 = ( a 1 + a 3 ) ( a 2 + a 4 ) = ( a 1 + a 3 ) 2 < 0 =a_1a_2+a_2a_3+a_3a_4+a_4a_1=(a_1+a_3)(a_2+a_4)=-(a_1+a_3)^2 < 0

sujoy roy - 7 years, 6 months ago
Hero P.
Nov 17, 2013

We first claim that if N > 4 N > 4 , we can always choose a sequence { a i } i = 1 N \{ a_i \}_{i=1}^N such that i = 1 N a i = 0 \sum_{i=1}^N a_i = 0 but a 1 a N + i = 1 N 1 a i a i + 1 > 0 a_1 a_N + \sum_{i=1}^{N-1} a_i a_{i+1} > 0 . Consider a i = 1 a_i = 1 for i { 1 , 2 , , N 2 } i \in \{ 1, 2, \ldots, N-2 \} , a N 1 = 1 a_{N-1} = -1 , hence a N = 3 N a_N = 3-N . Then a 1 a N + i = 1 N 1 a i a i + 1 = 3 N + i = 1 N 3 1 + a N 2 a N 1 + a N 1 a N = ( 3 N ) + ( N 3 ) + ( 1 ) ( 1 ) + ( 1 ) ( 3 N ) = N 4 > 0. \begin{aligned} a_1 a_N + \sum_{i=1}^{N-1} a_i a_{i+1} &= 3-N + \sum_{i=1}^{N-3} 1 + a_{N-2} a_{N-1} + a_{N-1} a_N \\ &= (3-N) + (N-3) + (1)(-1) + (-1)(3-N) \\ &= N-4 > 0. \end{aligned} Now consider the case N = 3 N = 3 . We have a 3 = ( a 1 + a 2 ) a_3 = -(a_1 + a_2) and therefore a 1 a 2 + a 2 a 3 + a 3 a 1 = ( a 1 2 + a 1 a 2 + a 2 2 ) a_1 a_2 + a_2 a_3 + a_3 a_1 = -(a_1^2 + a_1 a_2 + a_2^2) . If a 1 a 2 0 a_1 a_2 \ge 0 , this expression is clearly nonpositive. If a 1 a 2 < 0 a_1 a_2 < 0 , then we write ( a 1 2 + a 1 a 2 + a 2 ) = ( ( a 1 + a 2 ) 2 a 1 a 2 ) -(a_1^2 + a_1 a_2 + a_2) = -((a_1 + a_2)^2 - a_1 a_2) and again it is obvious that this expression must be nonpositive. So the condition for N = 3 N = 3 is always satisfied.

For the case N = 4 N = 4 , with a 4 = ( a 1 + a 2 + a 3 ) a_4 = -(a_1 + a_2 + a_3) , algebraic simplification of the LHS condition easily gives a 1 a 2 + a 2 a 3 + a 3 a 4 + a 4 a 1 = ( a 1 + a 3 ) ( a 2 + a 4 ) = ( a 1 + a 3 ) 2 , a_1 a_2 + a_2 a_3 + a_3 a_4 + a_4 a_1 = (a_1 + a_3)(a_2 + a_4) = -(a_1 + a_3)^2, which is obviously nonpositive. This covers all cases; therefore, the answer is 2 \boxed{2} .

Minor typographical error: the solution should read,

"If a 1 a 2 < 0 a_1 a_2 < 0 , then we write ( a 1 2 + a 1 a 2 + a 2 2 ) = ( ( a 1 + a 2 ) 2 a 1 a 2 -(a_1^2 + a_1 a_2 + a_2^2) = - ((a_1 + a_2)^2 - a_1 a_2 )...."

hero p. - 7 years, 6 months ago

But according to me every value of N N will satisfy if all the elements of the given set are 0 0

kushagraa aggarwal - 7 years, 6 months ago

Log in to reply

The problem is asking us to find all 3 N 1000 3 \le N \le 1000 such that ANY choice of a 1 , a 2 , , a N a_1, a_2, \ldots, a_N that satisfies a 1 + a 2 + + a N = 0 a_1 + a_2 + \cdots + a_N = 0 , must also mean the inequality a 1 a 2 + a 2 a 3 + + a N 1 a N + a N a 1 0 a_1 a_2 + a_2 a_3 + \cdots + a_{N-1} a_N + a_N a_1 \le 0 is also true. Just choosing a i = 0 a_i = 0 makes the two conditions hold, but you have not shown that ALL possible choices make the inequality true.

Therefore, to show that a given N N does NOT satisfy both conditions, it suffices to find a single counterexample consisting of a sequence { a 1 , a 2 , , a N } \{ a_1, a_2, \ldots, a_N \} for which the sum is zero but the inequality is false. However, to prove that a given N N DOES satisfy both conditions, you have to show the inequality is satisfied for any choice for the a's that add to zero.

hero p. - 7 years, 6 months ago

2

2

Penti Rohit - 7 years, 2 months ago
Rajeh Alghamdi
Mar 4, 2014

2

how?

Shriram Lokhande - 7 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...