Monday, 30 June 2014

mathematics - 20 coins on the table


Two boys , Brian and Gabe, decide to play a game.


They lay 20 coins on the table. Each player took turns taking 1, 2, or 3 coins. Whoever took the last coin won.


Brian thought if he went first, he'd win for sure since he had the advantage of making the first move. So Brian did go first. But Gabe won every time!


Obviously Gabe had a winning strategy, but what was it? Could Brian have outsmarted it?



Answer



Always leave a multiple of 4 coins. So if Brian takes 1, Gabe takes 3. 2-2, 3-1.


Starting with a multiple of 4, player 2 can always win with perfect play. Starting with any other number, player 1 can win with perfect play.


No comments:

Post a Comment

Understanding Stagnation point in pitot fluid

What is stagnation point in fluid mechanics. At the open end of the pitot tube the velocity of the fluid becomes zero.But that should result...