John and George play the following game. John picks one integer x from the set An={1,2,3,…,n}, and George has to find out which integer it is. The game runs in moves 1,2,3,…. On move k George picks a subset Bk of An, and John answers YES if x belongs to Bk and NO otherwise. For a NO answer George pays John a euros, and for a YES answer he pays b euros.
George hears each answer before he picks the next subset. Among all strategies that always identify x, find the one whose largest possible total payment is smallest, and compute that payment.