Hi I'm struggling with the following homework problem:
Let's play a game. We start with $n$ coins side by side in a row which all happen to be heads. We apply the following operation to the row until we can't any more. As we traverse through the row from left to right, we take the first heads that is not followed by a tail, flip it, and restore all coins on its left to heads. How many different arrangements appear at one point in the process? For example, the arrangements for $n=3$ would be: HHH, THH, HTH, HHT, THT in that order.
So I listed out a couple of small cases for n, and quickly found the recurrence $a_n = a_{n-1} + a_{n-2}$ where $a_n$ is the number of arrangements that appear during the process. However, I am at a loss on how to rigorously prove this. Any advice would be helpful, thanks!