MathDB
Guess the Median

Source: 2022 Taiwan TST Round 3 Mock Exam Problem 6

July 6, 2022
combinatoricsTaiwan

Problem Statement

Positive integers nn and kk satisfying n2k+1n\geq 2k+1 are known to Alice. There are nn cards with numbers from 11 to nn, randomly shuffled as a deck, face down. On her turn, she does the following in order:
(i) She first flips over the top card of the deck, and puts it face up on the table. (ii) Then, if Alice has not signed any card, she can sign the newest card now.
The game ends after 2k+12k+1 turns, and Alice must have signed on some card. Let AA be the number on the signed cards, and MM be the (k+1)st(k+1)^{\textup{st}} largest number among all 2k+12k+1 face-up cards. Alice's score is MA|M-A|, and she wants the score to be as close to zero as possible.
For each (n,k)(n,k), find the smallest integer d=d(n,k)d=d(n,k) such that Alice has a strategy to guarantee her score no greater than dd.
Proposed by usjl