Y by RAMUGAUSS, Mr.Chagol, Vlados021, Carpemath, rmtf1111, Vietjung, samuel, juckter, djmathman, Toinfinity, anantmudgal09, Ultroid999OCPN, Polynom_Efendi, csunllc, Grizzy, mathleticguyyy, Combi1234, magicarrow, fjm30, Inconsistent, fidgetboss_4000, Purple_Planet, scrabbler94, MintTea, Nymoldin, brendan_cape, RedFlame2112, megarnie, Lamboreghini, rayfish, metricpaper, Mattthebat2569, sabkx, Infinityfun, ImSh95, centslordm, Adventure10, buddyram, Blue_banana4, Sedro, EpicBird08, NicoN9, Yiyj1
The Bank of Bath issues coins with an
on one side and a
on the other. Harry has
of these coins arranged in a line from left to right. He repeatedly performs the following operation: if there are exactly
coins showing
, then he turns over the
th coin from the left; otherwise, all coins show
and he stops. For example, if
the process starting with the configuration
would be
, 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
, let
be the number of operations before Harry stops. For example,
and
. Determine the average value of
over all
possible initial configurations
.
Proposed by David Altizio, USA










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







Proposed by David Altizio, USA
This post has been edited 2 times. Last edited by djmathman, Jul 17, 2019, 12:26 PM