MathDB
Guessing the sum on a table

Source: Bosnia and Herzegovina TST 2016 day 1 problem 2

May 16, 2016
tablecombinatoricsGame Theory

Problem Statement

Let nn be a positive integer and let tt be an integer. nn 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 tt. 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 44 sentences: i.i. Is there a number on the table equal to kk? ii.ii. If a number kk exists on the table, erase him. iii.iii. If a number kk does not exist on the table, add him. iv.iv. 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 3n3n moves, Bob can find out whether there exist numbers initially written on the board such that their sum is equal to tt