Browse · MathNet
PrintOpen Contests
Estonia counting and probability
Problem
Numbers are written on a blackboard in one line. Juku has to write in front of each number plus or minus sign so that for any positive integer the number itself and one of its multiples have different signs. Which numbers must he assign a minus sign in order to get the maximal possible value of the expression?
Solution
Answer: The numbers .
If Juku writes a minus in front of the number and a plus in front of the others, then the conditions of the problem are satisfied: for , the numbers and have different signs; for there is at least one multiple of among the numbers .
To show that this arrangement of the signs gives the maximal value of the expression,
consider an arbitrary arrangement of signs satisfying the conditions of the problem. Then always when and has a plus sign, must have a minus sign. Also when and has a plus sign, then either or must have a minus sign. If we change all the pluses in front of the numbers with to minuses, and the minuses in front of the corresponding or to pluses, then changing minus to plus in front of corresponds to changing plus to minus in front of or or both. Since , the changes increase the value of the expression. Then we can also change all remaining minuses in front of the numbers and to pluses, which also can only increase the value of the expression. This results in the arrangement of the signs described in the beginning. Hence this arrangement gives the maximal value of the expression.
If Juku writes a minus in front of the number and a plus in front of the others, then the conditions of the problem are satisfied: for , the numbers and have different signs; for there is at least one multiple of among the numbers .
To show that this arrangement of the signs gives the maximal value of the expression,
consider an arbitrary arrangement of signs satisfying the conditions of the problem. Then always when and has a plus sign, must have a minus sign. Also when and has a plus sign, then either or must have a minus sign. If we change all the pluses in front of the numbers with to minuses, and the minuses in front of the corresponding or to pluses, then changing minus to plus in front of corresponds to changing plus to minus in front of or or both. Since , the changes increase the value of the expression. Then we can also change all remaining minuses in front of the numbers and to pluses, which also can only increase the value of the expression. This results in the arrangement of the signs described in the beginning. Hence this arrangement gives the maximal value of the expression.
Final answer
Minus signs on 51 through 100; plus signs on all other numbers.
Techniques
Coloring schemes, extremal argumentsInvariants / monovariantsDivisibility / Factorization