Question 4
A magician places $n$ coins in a row. In each move he chooses three consecutive coins, leaves the middle coin unchanged, and flips the other two. Initially all $n$ coins are heads up. Find all values of $n$ for which all coins can be made tails up.