Guessing the sum on a table
Source: Bosnia and Herzegovina TST 2016 day 1 problem 2
May 16, 2016
tablecombinatoricsGame Theory
Problem Statement
Let be a positive integer and let be an integer. distinct integers are written on a table. Bob, sitting in a room nearby, wants to know whether there exist some of these numbers such that their sum is equal to . Alice is standing in front of the table and she wants to help him. At the beginning, she tells him only the initial sum of all numbers on the table. After that, in every move he says one of the sentences:
Is there a number on the table equal to ?
If a number exists on the table, erase him.
If a number does not exist on the table, add him.
Do the numbers written on the table can be arranged in two sets with equal sum of elements?
On these questions Alice answers yes or no, and the operations he says to her she does (if it is possible) and does not tell him did she do it. Prove that in less than moves, Bob can find out whether there exist numbers initially written on the board such that their sum is equal to