Problem 5
Each of the six boxes initially contains one coin. A type 1 operation chooses a nonempty box with , removes one coin from it, and adds two coins to . A type 2 operation chooses a nonempty box with , removes one coin from it, and exchanges the contents of (possibly empty) boxes and . Determine whether a finite sequence of operations can leave empty and containing exactly coins. Here means .
Step 4 of 5: Discard the surplus exactly
Detailed analysis
Use type 2 repeatedly at the box containing , with the next two boxes empty; each such operation simply removes one coin and leaves the other contents unchanged. Because , stop exactly when that box contains . This is possible since is divisible by (indeed is even). The configuration is then in the last four boxes.