## A Game With Coins

The applet below is a simulation of a two-person game that could be played on a table top with a sufficient supply of coins. The coins of various denominations are arranged in a chain (e.g., a row, a semicircle) with two "end points" and the others each having two neighbors. A move consists in removing an end coin, whereby the coin's immediate (and the only) neighbor becomes naturally an end coin available for the removal on successive moves. When all the coins have been removed, the game ends, and the players count their bounties. The player with the larger amount wins.

The applet allows some variations. First, the coin can be arranged in a loop, in which case the first player is allowed to remove any coin. After that the game continues as before. The applet uses 4 US coins: a penny (1 cent), a nickel (5 cents), a dime (10 cents) and a quarter (25 cents), but, in addition, it can also display a sequence of small random numbers.

At the outset, you can force the computer to make the first move by pressing the "Make Move" button.

What if applet does not run? |

Can the first player always guarantee a win or at least a draw?

|Contact| |Front page| |Contents| |Eye opener|

Copyright © 1996-2018 Alexander Bogomolny

If the number of coins is even, the first player can guarantee at least a draw, and the proof is pretty simple. Number the coins according to their order in the arrangement: 1, 2, ..., 2n, where 2n is the number of coins. Sum up the odd numbered denominations and, separately the even numbered ones. If one of the sums is greater than the other, the first player wins by sticking with the appropriately numbered coins. This is always possible. For example, assume the even numbered coins add up to more than the odd numbered ones. The first player then picks the last coin (numbered 2n). The two remaining end coins both now have odd numbers: 1 and 2n-1. Whichever is selected by the second player, the first player on his/her second move can always choose an even numbered coin, and so on.

In a loop, the first player has more freedom to choose a coin: any coin will do whose number is of required parity.

With an odd number of coins, the situation is less straightforward. Say, with coins 1, 5, 1, the first player is bound to lose. With a three coin sequence 5, 1, 5, the first player wins effortlessly.

So the game is really pretty simple. But, if nothing else, it provides an entertaining arithmetic drill suitable for young children.

### References

- P. Winkler,
*Mathematical Puzzles: A Connoisseur's Collection*, A K Peters, 2004

|Contact| |Front page| |Contents| |Games| |Eye opener|

Copyright © 1996-2018 Alexander Bogomolny

64220361 |