返回题库

HMMT 二月 2023 · COMB 赛 · 第 9 题

HMMT February 2023 — COMB Round — Problem 9

专题
Contest Math / 竞赛数学
难度
L3
来源
HMMT

题目详情

英文原题

  1. There are 100 people standing in a line from left to right. Half of them are randomly chosen to face
    ( )
    right (with all possible choices being equally likely), and the others face left. Then, while there 100
    is a pair of people who are facing each other and have no one between them, the leftmost such pair 50
    leaves the line. Compute the expected number of people remaining once this process terminates.
解析

英文解析

  1. There are 100 people standing in a line from left to right. Half of them are randomly chosen to face
    ( )
    right (with all possible choices being equally likely), and the others face left. Then, while there 100
    is a pair of people who are facing each other and have no one between them, the leftmost such pair 50
    leaves the line. Compute the expected number of people remaining once this process terminates.
    Proposed by: Albert Wang
    2100
    ( )
    Answer: − 1
    50100
    Solution: Notice that the order in which the people leave the line is irrelevant. Give each right-facingperson a weight of 1, and each left-facing person a weight of − 1. We claim the answer for somearrangement of these 2 n people is − 2 times the minimum prefix sum. For instance:
    LRRLRLLLRRRRL → ( − 2)( − 2) → 4
    RRRLLRLLLRRL → ( − 2)( − 1) → 2
    Proof. he final configuration is always of the form
    LL ...LL RR ...RR
    ︸ ︷︷ ︸ ︸ ︷︷ ︸
    k kand the minimum prefix sum is invariant. As the final configuration has minimum prefix sum is k , weare done.
    So, we want to find the expected value of the minimum prefix sum across all such strings of 1 s and − 1 s. To find this, we will instead compute the equivalent value
    ∞
    ∑
    Pr[maximum prefix sum is ≥ k ] .
    k =1
    Consider the k th term of this sum, and the corresponding walk from (0 , 0) to (2 n, 0) with L corresponding to a step of (1 , − 1) and R corresponding to a step of (1 , 1). Consider the point P at y = kwith minimal x -coordinate, and reflect the remainder of the walk across y = k . This gives a path thatends at (2 n, 2 k ). Noting that this is a bijection between walks from (0 , 0) to (2 n, 2 k ) and walks thatreach y = k , we have
    ( )
    2 n
    ∞ ∞
    ∑ ∑
    n − k
    ( )
    Pr[maximum prefix sum is ≥ k ] =
    2 nnk =1 k =1
    [( ) ]
    ( )
    2 n
    ∞
    ∑
    n − k 1 = ( ) − 1
    2 nn 2
    k = −∞
    ( )
    2 n
    1 2
    ( ) = − 1 .
    2 nn 2
    2100
    Adjusting for the factor of 2 we saved at the beginning, our final answer for n = 50 is − 1.
    ( )100
    50