# Matches

• Jun 3rd 2008, 02:19 AM
lynch-mob
Matches
Two persons play a game with matches. Once at a time they take one, three or four matches out of the box but not two or more than four. The one who takes the last match is the winner. There are 50 matches in the box. Is there a strategy than guarantees a win if you get to draw first. Which is it?

Good luck!
• Jun 4th 2008, 12:56 PM
ebaines

Let N = number of matches that are left in the box. I take 1 match on the first turn, and from then on I always take a quantity of matches that will leave my opponent with either N modulo 7 = 0 or N modulo 7 = 2 matches. In other words, after each turn I want to leave him with one of the following conditions:

0
2
7
9
14
16
21
23
28
30
35
37
42
44
49

If I take 1 on the first move, that leaves him with 49. No matter whether he takes 1, 3 or 4 I can always take an appropriate number on my next turn to get him either to 42 (which evenly divides by 7) or 44 (which divides by 7 with remainder 2). If I continue with this strategy my opponent will ultimately end up with either 0 (in which case I've already won), or 2, in which case I win because his only option is to take 1, leaving me to take 1 for the win.
• Jun 4th 2008, 10:44 PM
lynch-mob
Yeah
Superthanks!!!
• Jun 4th 2008, 10:49 PM
Jhevon
you shouldn't play with matches! didn't your mom tell you?!
• Jun 4th 2008, 11:08 PM
lynch-mob
Hahhaha
(Rofl)