Let . Positive integers whose sum is even and which satisfy for every , are given. Prove that it is possible to choose signs in the expression in such a way that its value becomes . (Seniors.)
, 2010
Solutions — 3
Solution 1
Prove the claim by induction on . If , then the only way to choose integers that satisfy the conditions of the problem is and . In this case, .
Assume now that the claim holds whenever and show that it holds also for . Consider two cases.
1. If , then is even. As this case is possible only for , the induction hypothesis is applicable for . Thus it is possible to choose signs in the expression in such a way that it evaluates to . Adding to it, the desired expression for is obtained.
2. If , then consider integers . As and have the same parity, the sum of these numbers is even. Also note that . Thus these numbers satisfy the conditions of the problem, so it is possible to choose signs in the expression in such a way that it evaluates to . As either or , this also leads to a corresponding expression for numbers .
Solution 2
Prove by induction on that, for each and such that and , it is possible to choose some of the numbers that sum up to .
If , then this claim holds since .
Assume that the claim holds for and consider the case . Let and . If , then the desired statement holds by the induction hypothesis. If , then (the first inequality holds because , implied by and ; the second inequality follows from ). Therefore, to get the sum , we can choose the number , and if , then add to it those numbers among whose sum is , using the induction hypothesis.
Let now . Choose the numbers among that sum up to . This divides all the numbers into two groups with equal sum. It remains to write minuses in front of every term of the group that does not contain .
Solution 3
Start choosing signs from right to left. Denote and define , , as follows: if , then , otherwise .
We show that then always . This holds if . Assume therefore that it holds for and prove it for . If , then and , hence . If , then and , hence again.
Now since for every . Thus as the sum of all terms is even. If in this formal sum, the term has minus sign, turn all signs to the opposite one.