Let and be fixed positive integers. In the liar's guessing game, Amy chooses integers and with . She tells Ben what is, but not what is. Ben may then repeatedly ask Amy whether for arbitrary sets of integers. Amy will always answer with yes or no, but she might lie. The only restriction is that she can lie at most times in a row. After he has asked as many questions as he wants, Ben must specify a set of at most positive integers. If is in this set he wins; otherwise, he loses. Prove that:
a) If then Ben can always win.
b) For sufficiently large there exist such that Ben cannot guarantee a win.
Solution
Consider an answer to a question of the kind "Is in the set ?" We say that is inconsistent with a number if and , or if and . Observe that an answer inconsistent with the target number is a lie. a) Suppose that Ben has determined a set of size that contains . This is true initially with and . For we show how Ben can find a number that is different from . By performing this step repeatedly he can reduce to be of size and thus win. Since only the size of is relevant, assume that . Ben begins by asking repeatedly whether is . If Amy answers no times in a row, one of these answers is truthful, and so . Otherwise Ben stops asking about at the first answer yes. He then asks, for each , if the binary representation of has a 0 in the th digit. Regardless of what the answers are, they are all inconsistent with a certain number . The preceding answer yes about is also inconsistent with . Hence . Otherwise the last answers are not truthful, which is impossible. Either way, Ben finds a number in that is different from , and the claim is proven. b) We prove that if and then Ben cannot guarantee a win. To complete the proof, then it suffices to take such that and large enough so that Consider the following strategy for Amy. First she chooses and arbitrarily. After every answer of hers Amy determines, for each , the number of consecutive answers she has given by that point that are inconsistent with . To decide on her next answer, she then uses the quantity No matter what Ben's next question is, Amy chooses the answer which minimizes . We claim that with this strategy will always stay less than . Consequently no exponent in will ever exceed , hence Amy will never give more than consecutive answers inconsistent with some . In particular this applies to the target number , so she will never lie more than times in a row. Thus, given the claim, Amy's strategy is legal. Since the strategy does not depend on in any way, Ben can make no deductions about , and therefore he cannot guarantee a win. It remains to show that at all times. Initially each is 0 , so this condition holds in the beginning due to and . Suppose that at some point, and Ben has just asked if for some set . According as Amy answers yes or no, the new value of becomes Since Amy chooses the option minimizing , the new will equal . Now we have Because , the assumptions and lead to The claim follows, which completes the solution. Comment. Given a fixed , let denote the minimum value of for which Ben can guarantee a victory. The problem asks for a proof that for large A computer search shows that for .