Problem

Source: Tournament of Towns 2007 - Fall - Junior A-Level - P6

Tags: function, induction, combinatorics unsolved, combinatorics



The audience arranges $n$ coins in a row. The sequence of heads and tails is chosen arbitrarily. The audience also chooses a number between $1$ and $n$ inclusive. Then the assistant turns one of the coins over, and the magician is brought in to examine the resulting sequence. By an agreement with the assistant beforehand, the magician tries to determine the number chosen by the audience. (a) Prove that if this is possible for some $n$, then it is also possible for $2n$. (b) Determine all $n$ for which this is possible.