olymmath

IMO 2019 Problem 5

  • Day 2

The Bank of Bath issues coins with an HH on one side and a TT on the other. Harry has nn of these coins arranged in a line from left to right. He repeatedly performs the following operation: if there are exactly k>0k>0 coins showing HH , then he turns over the kk th coin from the left; otherwise, all coins show TT and he stops. For example, if n=3n=3 the process starting with the configuration THTTHT would be THT→HHT→HTT→TTTTHT \to HHT \to HTT \to TTT , which stops after three operations.

(a) Show that, for each initial configuration, Harry stops after a finite number of operations.

(b) For each initial configuration CC , let L(C)L(C) be the number of operations before Harry stops. For example, L(THT)=3L(THT) = 3 and L(TTT)=0L(TTT) = 0 . Determine the average value of L(C)L(C) over all 2n2^n possible initial configurations CC .

Proposed by David Altizio, USA

Official text Transcription from AI-MO AoPS, checked word for word against the official paper. Quoted with source.

Official text: IMO 2019 official English paper, page 2.

Solutions

No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

Add a solution

Locator imo/2019/p5 · Tag RCR0HFHSRK · Edit this page on GitHub · Keys: j next, k previous