Stack of Coins 1A
You and a friend stumble on a pirate’s treasure: an old chest filled with coins: 19 copper coins and 1 gold coin. These old coins are no longer legal tender, so the copper ones are worthless. Only the gold coin is worth something due to its material.
To determine who gets the gold coin, your friend comes up with a game of wits. He stacks the 20 coins in a stack with the gold coin at the bottom. You and him will take turns taking 1 or 2 coins from the top of the stack, all the way until the final coin is taken. He lets you decide if you want to go first or second.
Should you go first or second? And what strategy do you use to ensure you’ll win the gold coin?
Hint
Try starting with a smaller number of coins. If there are 3 coins, will the first or second player win? How about 4? 5? 6? See if you can find a pattern.
Solution
Choose to go first and take 2 coins. After that, if he takes 1 coin, you take 2. If he takes 2 coins, you take 1 instead.
By taking the first 2 coins, you bring the stack down to 18 coins: a multiple of 3. Your strategy will make sure that after your turn, the number of coins would have decreased by 3 to another multiple of 3.
When we get to 3 coins, your friend can only take 1 or 2 coins, leaving you with 2 or 1 coins, which you can then take and win.
Next puzzle in this series
Try These Next
Two Gloves and Three Patients
You’re a surgeon in a remote clinic when three patients arrive requiring emergency operations. Supplies are running low—you rummage through the stockroom but...
Fastest 3 in 25 Horses
You visit a farm, hoping to buy the 3 fastest horses they have. The farmer says he has 25 horses, but he has no idea how fast each of them are. Instead, he...
The Keyboard Prank
Anne comes into the office to find that her co-workers had played a prank on her. The keycaps on her keyboard had been shuffled such that if she types out a...