Maths Olympiad Prep

Library / /508 of 520

Combinatorics Difficulty 7.7 National olympiad, round 2 Prove it

Let kk and nn be fixed positive integers. In the liar's guessing game, Amy chooses integers xx and NN with 1xN1 \leq x \leq N. She tells Ben what NN is, but not what xx is. Ben may then repeatedly ask Amy whether xSx \in S for arbitrary sets SS of integers. Amy will always answer with yes or no, but she might lie. The only restriction is that she can lie at most kk times in a row. After he has asked as many questions as he wants, Ben must specify a set of at most nn positive integers. If xx is in this set he wins; otherwise, he loses. Prove that:
a) If n2kn \geq 2^{k} then Ben can always win.
b) For sufficiently large kk there exist n1.99kn \geq 1.99^{k} such that Ben cannot guarantee a win.

Solution

Consider an answer A{yes,no}A \in\{yes, no\} to a question of the kind "Is xx in the set SS?" We say that AA is inconsistent with a number ii if A=yesA=yes and iSi \notin S, or if A=noA=no and iSi \in S. Observe that an answer inconsistent with the target number xx is a lie. a) Suppose that Ben has determined a set TT of size mm that contains xx. This is true initially with m=Nm=N and T={1,2,,N}T=\{1,2, \ldots, N\}. For m>2km>2^{k} we show how Ben can find a number yTy \in T that is different from xx. By performing this step repeatedly he can reduce TT to be of size 2kn2^{k} \leq n and thus win. Since only the size m>2km>2^{k} of TT is relevant, assume that T={0,1,,2k,,m1}T=\left\{0,1, \ldots, 2^{k}, \ldots, m-1\right\}. Ben begins by asking repeatedly whether xx is 2k2^{k}. If Amy answers no k+1k+1 times in a row, one of these answers is truthful, and so x2kx \neq 2^{k}. Otherwise Ben stops asking about 2k2^{k} at the first answer yes. He then asks, for each i=1,,ki=1, \ldots, k, if the binary representation of xx has a 0 in the ii th digit. Regardless of what the kk answers are, they are all inconsistent with a certain number y{0,1,,2k1}y \in\left\{0,1, \ldots, 2^{k}-1\right\}. The preceding answer yes about 2k2^{k} is also inconsistent with yy. Hence yxy \neq x. Otherwise the last k+1k+1 answers are not truthful, which is impossible. Either way, Ben finds a number in TT that is different from xx, and the claim is proven. b) We prove that if 1<λ<21<\lambda<2 and n=(2λ)λk+11n=\left\lfloor(2-\lambda) \lambda^{k+1}\right\rfloor-1 then Ben cannot guarantee a win. To complete the proof, then it suffices to take λ\lambda such that 1.99<λ<21.99<\lambda<2 and kk large enough so that n=(2λ)λk+111.99k n=\left\lfloor(2-\lambda) \lambda^{k+1}\right\rfloor-1 \geq 1.99^{k} Consider the following strategy for Amy. First she chooses N=n+1N=n+1 and x{1,2,,n+1}x \in\{1,2, \ldots, n+1\} arbitrarily. After every answer of hers Amy determines, for each i=1,2,,n+1i=1,2, \ldots, n+1, the number mim_{i} of consecutive answers she has given by that point that are inconsistent with ii. To decide on her next answer, she then uses the quantity ϕ=i=1n+1λmi \phi=\sum_{i=1}^{n+1} \lambda^{m_{i}} No matter what Ben's next question is, Amy chooses the answer which minimizes ϕ\phi. We claim that with this strategy ϕ\phi will always stay less than λk+1\lambda^{k+1}. Consequently no exponent mim_{i} in ϕ\phi will ever exceed kk, hence Amy will never give more than kk consecutive answers inconsistent with some ii. In particular this applies to the target number xx, so she will never lie more than kk times in a row. Thus, given the claim, Amy's strategy is legal. Since the strategy does not depend on xx in any way, Ben can make no deductions about xx, and therefore he cannot guarantee a win. It remains to show that ϕ<λk+1\phi<\lambda^{k+1} at all times. Initially each mim_{i} is 0 , so this condition holds in the beginning due to 1<λ<21<\lambda<2 and n=(2λ)λk+11n=\left\lfloor(2-\lambda) \lambda^{k+1}\right\rfloor-1. Suppose that ϕ<λk+1\phi<\lambda^{k+1} at some point, and Ben has just asked if xSx \in S for some set SS. According as Amy answers yes or no, the new value of ϕ\phi becomes ϕ1=iS1+iSλmi+1 or ϕ2=iSλmi+1+iS1 \phi_{1}=\sum_{i \in S} 1+\sum_{i \notin S} \lambda^{m_{i}+1} \quad \text { or } \quad \phi_{2}=\sum_{i \in S} \lambda^{m_{i}+1}+\sum_{i \notin S} 1 Since Amy chooses the option minimizing ϕ\phi, the new ϕ\phi will equal min(ϕ1,ϕ2)\min \left(\phi_{1}, \phi_{2}\right). Now we have min(ϕ1,ϕ2)12(ϕ1+ϕ2)=12(iS(1+λmi+1)+iS(λmi+1+1))=12(λϕ+n+1) \min \left(\phi_{1}, \phi_{2}\right) \leq \frac{1}{2}\left(\phi_{1}+\phi_{2}\right)=\frac{1}{2}\left(\sum_{i \in S}\left(1+\lambda^{m_{i}+1}\right)+\sum_{i \notin S}\left(\lambda^{m_{i}+1}+1\right)\right)=\frac{1}{2}(\lambda \phi+n+1) Because ϕ<λk+1\phi<\lambda^{k+1}, the assumptions λ<2\lambda<2 and n=(2λ)λk+11n=\left\lfloor(2-\lambda) \lambda^{k+1}\right\rfloor-1 lead to min(ϕ1,ϕ2)<12(λk+2+(2λ)λk+1)=λk+1 \min \left(\phi_{1}, \phi_{2}\right)<\frac{1}{2}\left(\lambda^{k+2}+(2-\lambda) \lambda^{k+1}\right)=\lambda^{k+1} The claim follows, which completes the solution. Comment. Given a fixed kk, let f(k)f(k) denote the minimum value of nn for which Ben can guarantee a victory. The problem asks for a proof that for large kk 1.99kf(k)2k 1.99^{k} \leq f(k) \leq 2^{k} A computer search shows that f(k)=2,3,4,7,11,17f(k)=2,3,4,7,11,17 for k=1,2,3,4,5,6k=1,2,3,4,5,6.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.