olymmath

ISL 2019 C3

    Let nn be a positive integer. Harry has nn coins lined up on his desk, each showing heads or tails. He repeatedly does the following operation: if there are kk coins showing heads and k>0k>0, then he flips the kth k^{\text {th }} coin over; otherwise he stops the process. (For example, the process starting with THT would be THT →HHT→HTT→TTT\rightarrow H H T \rightarrow H T T \rightarrow T T T, which takes three steps.) Letting CC denote the initial configuration (a sequence of nHn H 's and TT 's), write ℓ(C)\ell(C) for the number of steps needed before all coins show TT. Show that this number ℓ(C)\ell(C) is finite, and determine its average value over all 2n2^{n} possible initial configurations CC.

    Official text Transcription from NuminaMath olympiads, checked word for word against the official paper. Quoted with source.

    Official text: IMO 2019 Shortlist booklet, page 8.

    Solutions

    Official solution Solution 1 by the IMO Problem Selection Committee

    The terms of the source let olymmath link to this solution but not copy it. Read the solution (IMO official site).

    Locator isl/2019/c3 · Tag 5A6E7NM6W7 · Edit this page on GitHub · Keys: j next, k previous