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 be a positive integer. Harry has coins lined up on his desk, each showing heads or tails. He repeatedly does the following operation: if there are coins showing heads and , then he flips the coin over; otherwise he stops the process. (For example, the process starting with THT would be THT , which takes three steps.)
Letting denote the initial configuration (a sequence of 's and 's), write for the number of steps needed before all coins show . Show that this number is finite, and determine its average value over all possible initial configurations .
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
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
initial import