I have $N$ coins all showing heads. At each turn, I change the state (i.e., a head is changed to a tail, vice versa) of $N-1$ coins.
- Prove that all the coins can end up showing tails if and only if $N$ is even.
- Find the minimum number of steps to do this if $N$ is even.
I already proved #1.
For #2, my conjecture is $N$ steps. The only proof I can think of is to show that $N-1$ steps are not enough. But this gets me nowhere.
Number the coins $1$ through $N$. For $k=1,\ldots,N$ let $f_k$ be the action of flipping every coin except coin $k$. Performing $f_k$ twice has no net effect, no matter how many other flips intervene, so a minimal solution will apply each $f_k$ at most once. Let $K$ be the set of $k\in\{1,\ldots,N\}$ such that $f_k$ is used in some particular minimal solution; $|K|$ is then the total number of flips used in that solution. Each coin whose number is in $K$ is flipped $|K|-1$ times. Each coin whose number is not in $K$ is flipped $|K|$ times. The numbers $|K|$ and $|K|-1$ cannot both be odd, so ... ?