Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

There are 21 sticks. Two players, A and B, alternate turns. Ineach turn, a playe

ID: 3616792 • Letter: T

Question

There are 21 sticks. Two players, A and B, alternate turns. Ineach turn, a player may pick up 1, 2, or 3 sticks. Player A goes first and the player who picksup the last stick wins. Use dynamic programming to determine an strategy for player A in whichplayer A always wins. You must use dynamic programming for this problem. You might begin byplaying the game with your study partners. There are 21 sticks. Two players, A and B, alternate turns. Ineach turn, a player may pick up 1, 2, or 3 sticks. Player A goes first and the player who picksup the last stick wins. Use dynamic programming to determine an strategy for player A in whichplayer A always wins. You must use dynamic programming for this problem. You might begin byplaying the game with your study partners.

Explanation / Answer

Player A must always make sure that the total number sticks Player A and B have combined after Player A's turn is an even number.  If this is followed  Then player B will be left with 4 sticks every game leaving Player A to win.