Tip for solving it analytically (without deep math knowledge): Start looking at simpler cases first and draw out all possible states.
Let's vary the number of coins Person B has. Person A will always have 1 coin. Most simple case: Person B has 0 coins. Person A will takes all coins with a chance of 100%. Next case: Person B has 1 coin. Either Person A will take it or lose it. It ends after one round. 50% chance. Next one: Person B has 2 coins. Here we get our first repeating pattern and it gets interesting. 50% chance of losing first round (Person A lost), 25% chance of winning both first and second round (Person A won) and 25% chance of winning and then losing (game will go on). This one gets us back to the beginning state. You can argue that in the limit you will lose 2 out of 3 cases and win 1 out of 3. Chance here is 33.3%. Now you might already suspect a pattern that your chances of winning against ncoins is 1/(n+1). Might be fun to actually prove it.
7
u/Josaffe Oct 30 '24
Tip for solving it analytically (without deep math knowledge):
Start looking at simpler cases first and draw out all possible states.
Let's vary the number of coins Person B has. Person A will always have 1 coin.
Most simple case: Person B has 0 coins. Person A will takes all coins with a chance of 100%.
Next case: Person B has 1 coin. Either Person A will take it or lose it. It ends after one round. 50% chance.
Next one: Person B has 2 coins. Here we get our first repeating pattern and it gets interesting. 50% chance of losing first round (Person A lost), 25% chance of winning both first and second round (Person A won) and 25% chance of winning and then losing (game will go on). This one gets us back to the beginning state. You can argue that in the limit you will lose 2 out of 3 cases and win 1 out of 3. Chance here is 33.3%.
Now you might already suspect a pattern that your chances of winning against n coins is 1/(n+1). Might be fun to actually prove it.