benchmarks.wiki / Public workspace

OlympiadBench / 1914 / Let n be a positive integer. Harry has n coins lined up on his desk, each…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

question

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 HHTHTTTTT\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.
Plain-text mathematical notation (without MathML)
Let n be a positive integer. Harry has n coins lined up on his desk, each showing heads or tails. He repeatedly does the following operation: if there are k coins showing heads and k>0, then he flips the k^(th ) coin over; otherwise he stops the process. (For example, the process starting with THT would be THT →HHT→HTT→TTT, which takes three steps.)

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

Letting $C$ denote the initial configuration (a sequence of $n H$ 's and $T$ 's), write $\ell(C)$ for the number of steps needed before all coins show $T$. Show that this number $\ell(C)$ is finite, and determine its average value over all $2^{n}$ possible initial configurations $C$.

answer type

Expression

is multiple answer

false

language

English

question type

Open-ended

subject

Math

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import