Difference between revisions of "2021 AMC 12B Problems/Problem 22"
(→Solution 3 (Nim-values)) |
(→Solution 5) |
||
(21 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{duplicate|[[2021 AMC 10B Problems#Problem 24|2021 AMC 10B #24]] and [[2021 AMC 12B Problems#Problem 22|2021 AMC 12B #22]]}} | ||
+ | |||
==Problem== | ==Problem== | ||
Arjun and Beth play a game in which they take turns removing one brick or two adjacent bricks from one "wall" among a set of several walls of bricks, with gaps possibly creating new walls. The walls are one brick tall. For example, a set of walls of sizes <math>4</math> and <math>2</math> can be changed into any of the following by one move: <math>(3,2),(2,1,2),(4),(4,1),(2,2),</math> or <math>(1,1,2).</math> | Arjun and Beth play a game in which they take turns removing one brick or two adjacent bricks from one "wall" among a set of several walls of bricks, with gaps possibly creating new walls. The walls are one brick tall. For example, a set of walls of sizes <math>4</math> and <math>2</math> can be changed into any of the following by one move: <math>(3,2),(2,1,2),(4),(4,1),(2,2),</math> or <math>(1,1,2).</math> | ||
Line 8: | Line 10: | ||
<math>\textbf{(A) }(6,1,1) \qquad \textbf{(B) }(6,2,1) \qquad \textbf{(C) }(6,2,2)\qquad \textbf{(D) }(6,3,1) \qquad \textbf{(E) }(6,3,2)</math> | <math>\textbf{(A) }(6,1,1) \qquad \textbf{(B) }(6,2,1) \qquad \textbf{(C) }(6,2,2)\qquad \textbf{(D) }(6,3,1) \qquad \textbf{(E) }(6,3,2)</math> | ||
− | == Solution == | + | == Solution 1== |
− | + | We say that a game state is an N-position if it is winning for the next player (the player to move), and a P-position if it is winning for the other player. We are trying to find which of the given states is a P-position. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | First we note that symmetrical positions are P-positions, as the second player can win by mirroring the first player's moves. It follows that <math>(6, 1, 1)</math> is an N-position, since we can win by moving to <math>(2, 2, 1, 1)</math>; this rules out <math>\textbf{(A)}</math>. We next look at <math>(6, 2, 1)</math>. The possible next states are | ||
+ | <cmath>(6, 2), \enskip (6, 1, 1), \enskip (6, 1), \enskip (5, 2, 1), \enskip (4, 2, 1, 1), \enskip (4, 2, 1), \enskip (3, 2, 2, 1), \enskip (3, 2, 1, 1), \enskip (2, 2, 2, 1).</cmath> | ||
+ | None of these are symmetrical, so we might reasonably suspect that they are all N-positions. Indeed, it just so happens that for all of these states except <math>(6, 2)</math> and <math>(6, 1)</math>, we can win by moving to <math>(2, 2, 1, 1)</math>; it remains to check that <math>(6, 2)</math> and <math>(6, 1)</math> are N-positions. | ||
− | <math>(3, 2, 2, 1) - (1, 2, 2, 1)</ | + | To save ourselves work, it would be nice if we could find a single P-position directly reachable from both <math>(6, 2)</math> and <math>(6, 1)</math>. We notice that <math>(3, 2, 1)</math> is directly reachable from both states, so it would suffice to show that <math>(3, 2, 1)</math> is a P-position. Indeed, the possible next states are |
+ | <cmath>(3, 2), \enskip (3, 1, 1), \enskip (3, 1), \enskip (2, 2, 1), \enskip (2, 1, 1, 1), \enskip (2, 1, 1),</cmath> | ||
+ | which allow for the following refutations: | ||
+ | <cmath>\begin{align*} | ||
+ | &(3, 2) \to (2, 2), && &&(3, 1, 1) \to (1, 1, 1, 1), && &&(3, 1) \to (1, 1), \\ | ||
+ | &(2, 2, 1) \to (2, 2), && &&(2, 1, 1, 1) \to (1, 1, 1, 1), && &&(2, 1, 1) \to (1, 1). | ||
+ | \end{align*}</cmath> | ||
− | + | Hence, <math>(3, 2, 1)</math> is a P-position, so <math>(6, 2)</math> and <math>(6, 1)</math> are both N-positions, along with all other possible next states from <math>(6, 2, 1)</math> as noted before. Thus, <math>(6, 2, 1)</math> is a P-position, so our answer is <math>\boxed{\textbf{(B)}}</math>. (For completeness, we could also rule out <math>\textbf{(C)}</math>, <math>\textbf{(D)}</math> and <math>\textbf{(E)}</math> as in Solution 2.) | |
-Note: In general, this game is very complicated. For example <math>(8, 7, 5, 3, 2)</math> is winning for the first player but good luck showing that. | -Note: In general, this game is very complicated. For example <math>(8, 7, 5, 3, 2)</math> is winning for the first player but good luck showing that. | ||
− | == Solution 2 ( | + | == Solution 2 (Elimination)== |
<math>(6,1,1)</math> can be turned into <math>(2,2,1,1)</math> by Arjun, which is symmetric, so Beth will lose. | <math>(6,1,1)</math> can be turned into <math>(2,2,1,1)</math> by Arjun, which is symmetric, so Beth will lose. | ||
Line 60: | Line 53: | ||
Next, the <math>4</math> brick wall. The possible states are a <math>2</math> brick wall, a <math>3</math> brick wall, a <math>2</math> brick wall and a <math>1</math> brick wall, or a <math>1</math> brick wall and a <math>1</math> brick wall. The nim-values of these states are <math>2</math>, <math>3</math>, <math>3</math>, and <math>0</math>, respectively, and hence the nim-value of this game state is <math>1</math>. | Next, the <math>4</math> brick wall. The possible states are a <math>2</math> brick wall, a <math>3</math> brick wall, a <math>2</math> brick wall and a <math>1</math> brick wall, or a <math>1</math> brick wall and a <math>1</math> brick wall. The nim-values of these states are <math>2</math>, <math>3</math>, <math>3</math>, and <math>0</math>, respectively, and hence the nim-value of this game state is <math>1</math>. | ||
− | + | ||
− | + | [Why is the nim-value of it <math>1</math>? - awesomediabrine | |
+ | |||
+ | https://en.wikipedia.org/wiki/Mex_(mathematics)] | ||
The possible game states after the <math>5</math> brick wall are the following: a <math>3</math> brick wall, a <math>4</math> brick wall, a <math>3</math> brick wall and a <math>1</math> brick wall, a two <math>2</math> brick walls, and a <math>2</math> brick wall plus a <math>1</math> brick wall. The nim-values of these are <math>3</math>, <math>1</math>, <math>2</math>, <math>0</math>, and <math>3</math>, respectively, meaning the nim-value of a <math>5</math> brick wall is <math>4</math>. | The possible game states after the <math>5</math> brick wall are the following: a <math>3</math> brick wall, a <math>4</math> brick wall, a <math>3</math> brick wall and a <math>1</math> brick wall, a two <math>2</math> brick walls, and a <math>2</math> brick wall plus a <math>1</math> brick wall. The nim-values of these are <math>3</math>, <math>1</math>, <math>2</math>, <math>0</math>, and <math>3</math>, respectively, meaning the nim-value of a <math>5</math> brick wall is <math>4</math>. | ||
Line 70: | Line 65: | ||
This method can also be extended to solve the note after the first solution. The nim-values of the <math>7</math> brick wall and the <math>8</math> brick wall are <math>2</math> and <math>1</math>, using the same method as above. The nim-value of <math>(8, 7, 5, 3, 2)</math> is therefore <math>1\oplus2\oplus4\oplus3\oplus2 = 6</math>, which is winning. | This method can also be extended to solve the note after the first solution. The nim-values of the <math>7</math> brick wall and the <math>8</math> brick wall are <math>2</math> and <math>1</math>, using the same method as above. The nim-value of <math>(8, 7, 5, 3, 2)</math> is therefore <math>1\oplus2\oplus4\oplus3\oplus2 = 6</math>, which is winning. | ||
+ | |||
+ | == Solution 4 == | ||
+ | Consider the following, much simpler game. | ||
+ | |||
+ | Arjun and Beth can each either take 1 or 2 bricks from the right-hand-side of a continuous row of initially <math>n</math> bricks. | ||
+ | It is easy to see that for <math>n</math> a multiple of 3, Beth can "mirror" whatever Arjun plays: if he takes 1, she takes 2, and if he takes 2, she takes 1. With this strategy, Beth always takes the last brick. If <math>n</math> is not a multiple of 3, then Arjun takes whichever amount puts Beth in the losing position. | ||
+ | |||
+ | The total number of bricks in the initial states given by the answer choices is <math>8, 9, 10, 10, 11</math>. Thus, answer choice <math>\textbf{(B)}</math> appears promising as a winning position for Beth. The difference between this game and the simplified game is that in certain positions, namely those consisting of fragments of size only 1, taking 2 bricks is not allowed. We can assume that for the starting position <math>(6, 2, 1)</math>, Beth always has a move to ensure that she can continue to mirror Arjun throughout the game. (This could be proven rigorously with lots of casework. In particular, she must avoid providing Arjun with a position of 3 continuous bricks, because then he could take the middle block and force a win.) The assumption seems reasonable, so the answer is <math>\boxed{\textbf{(B)}}</math>. | ||
+ | |||
+ | ==Solution 5== | ||
+ | We can start by guessing and checking our solutions. Let's start with <math>A</math>, <math>(6,1,1)</math>. Arjun goes first, and he has a winning strategy. His strategy is to cut the 6 block in half, so whatever Beth does, Arjun will copy. If we see this in practice, Arjun has made the block in to <math>(2,2,1,1)</math>. If Beth takes 1, he will take one. If Beth takes 2, he will take 2 as well. | ||
+ | |||
+ | Then, we can guess solution <math>B</math>, <math>(6,2,1)</math>. If Arjun starts by taking 1 of the blocks, he will either have <math>(6,1,1)</math>, <math>(6,2)</math>, <math>(x,y,2,1)</math> (Where <math>x+y = 5</math>). If he has <math>(6,1,1)</math>, Beth can take 2 out of the middle of <math>(6,1,1)</math> to get <math>(2,2,1,1)</math> which we know Arjun will lose because we know by symmetry from answer choice <math>A</math>. If he has <math>(6,2)</math>, Beth will take out one from the edge, and we get <math>(5,2)</math>. Beth can now copy whatever Arjun does, so she will win. | ||
+ | |||
+ | Next, if he takes one out to get <math>(x,y,2,1)</math>, we can either have <math>(4,1,2,1)</math> or <math>(3,2,2,1)</math>. If it is the first case, Beth can take the edge 2 out of the 4, which gives us <math>(2,1,2,1)</math> and whatever Arjun does, Beth can do, so she has established a win. If it is the 2nd case, Beth can take out 2 from the 3 to get <math>(1,2,2,1)</math>, in which, Beth can copy whatever Arjun does, so Beth will win. So in all 4 cases, Beth wins. So our answer is <math>\boxed{\textbf{(B)}}</math> | ||
+ | |||
+ | ~Arcticturn | ||
+ | |||
+ | ==Video Solution by Mathematical Dexterity (Be A Copycat!)== | ||
+ | https://www.youtube.com/watch?v=m6yWxyYZLqw | ||
== Video Solution by OmegaLearn (Game Theory) == | == Video Solution by OmegaLearn (Game Theory) == | ||
Line 75: | Line 90: | ||
~ pi_is_3.14 | ~ pi_is_3.14 | ||
+ | == Video Solution by Interstigation (Goal of Winning - Pairs and Symmetricity & In-depth)== | ||
+ | https://youtu.be/PUP3PqinjtM | ||
+ | |||
+ | ~ Interstigation | ||
==See Also== | ==See Also== | ||
{{AMC12 box|year=2021|ab=B|num-b=21|num-a=23}} | {{AMC12 box|year=2021|ab=B|num-b=21|num-a=23}} | ||
{{AMC10 box|year=2021|ab=B|num-b=23|num-a=25}} | {{AMC10 box|year=2021|ab=B|num-b=23|num-a=25}} | ||
+ | [[Category:Intermediate Combinatorics Problems]] | ||
{{MAA Notice}} | {{MAA Notice}} |
Latest revision as of 22:10, 7 November 2022
- The following problem is from both the 2021 AMC 10B #24 and 2021 AMC 12B #22, so both problems redirect to this page.
Contents
- 1 Problem
- 2 Solution 1
- 3 Solution 2 (Elimination)
- 4 Solution 3 (Nim-values)
- 5 Solution 4
- 6 Solution 5
- 7 Video Solution by Mathematical Dexterity (Be A Copycat!)
- 8 Video Solution by OmegaLearn (Game Theory)
- 9 Video Solution by Interstigation (Goal of Winning - Pairs and Symmetricity & In-depth)
- 10 See Also
Problem
Arjun and Beth play a game in which they take turns removing one brick or two adjacent bricks from one "wall" among a set of several walls of bricks, with gaps possibly creating new walls. The walls are one brick tall. For example, a set of walls of sizes and can be changed into any of the following by one move: or
Arjun plays first, and the player who removes the last brick wins. For which starting configuration is there a strategy that guarantees a win for Beth?
Solution 1
We say that a game state is an N-position if it is winning for the next player (the player to move), and a P-position if it is winning for the other player. We are trying to find which of the given states is a P-position.
First we note that symmetrical positions are P-positions, as the second player can win by mirroring the first player's moves. It follows that is an N-position, since we can win by moving to ; this rules out . We next look at . The possible next states are None of these are symmetrical, so we might reasonably suspect that they are all N-positions. Indeed, it just so happens that for all of these states except and , we can win by moving to ; it remains to check that and are N-positions.
To save ourselves work, it would be nice if we could find a single P-position directly reachable from both and . We notice that is directly reachable from both states, so it would suffice to show that is a P-position. Indeed, the possible next states are which allow for the following refutations:
Hence, is a P-position, so and are both N-positions, along with all other possible next states from as noted before. Thus, is a P-position, so our answer is . (For completeness, we could also rule out , and as in Solution 2.)
-Note: In general, this game is very complicated. For example is winning for the first player but good luck showing that.
Solution 2 (Elimination)
can be turned into by Arjun, which is symmetric, so Beth will lose.
can be turned into by Arjun, which is symmetric, so Beth will lose.
can be turned into by Arjun, which is symmetric, so Beth will lose.
can be turned into by Arjun, which is symmetric, so Beth will lose.
That leaves or .
Solution 3 (Nim-values)
Let the nim-value of the ending game state, where someone has just removed the final brick, be . Then, any game state with a nim-value of is losing. It is well-known that the nim-value of a supergame (a combination of two or more individual games) is the binary xor function on the nim-values of the individual games that compose the supergame. Therefore, we calculate the nim-values of the states with a single wall up to bricks long (since the answer choices only go up to ).
First, the game with brick has a nim-value of .
Similarly, the game with bricks has a nim-value of .
Next, we consider a brick wall. After the next move, the possible resulting game states are brick, a brick wall, or separate bricks. The first two options have nim-values of and . The final option has a nim-value of , so the nim-value of this game state is .
Next, the brick wall. The possible states are a brick wall, a brick wall, a brick wall and a brick wall, or a brick wall and a brick wall. The nim-values of these states are , , , and , respectively, and hence the nim-value of this game state is .
[Why is the nim-value of it ? - awesomediabrine
https://en.wikipedia.org/wiki/Mex_(mathematics)]
The possible game states after the brick wall are the following: a brick wall, a brick wall, a brick wall and a brick wall, a two brick walls, and a brick wall plus a brick wall. The nim-values of these are , , , , and , respectively, meaning the nim-value of a brick wall is .
Finally, we find the nim-value of a brick wall. The possible states are a brick wall, a brick wall and a brick wall, a brick wall and a brick wall, a brick wall, a brick wall and a brick wall, and finally two brick walls. The nim-values of these game states are , , , , , and , respectively. This means the brick wall has a nim-value of .
The problem is asking which of the answer choices is losing, or has a nim-value of . We see that option has a nim-value of , option has a nim-value of , option has a nim-value of , option has a nim-value of , and option has a nim-value of , so the answer is .
This method can also be extended to solve the note after the first solution. The nim-values of the brick wall and the brick wall are and , using the same method as above. The nim-value of is therefore , which is winning.
Solution 4
Consider the following, much simpler game.
Arjun and Beth can each either take 1 or 2 bricks from the right-hand-side of a continuous row of initially bricks. It is easy to see that for a multiple of 3, Beth can "mirror" whatever Arjun plays: if he takes 1, she takes 2, and if he takes 2, she takes 1. With this strategy, Beth always takes the last brick. If is not a multiple of 3, then Arjun takes whichever amount puts Beth in the losing position.
The total number of bricks in the initial states given by the answer choices is . Thus, answer choice appears promising as a winning position for Beth. The difference between this game and the simplified game is that in certain positions, namely those consisting of fragments of size only 1, taking 2 bricks is not allowed. We can assume that for the starting position , Beth always has a move to ensure that she can continue to mirror Arjun throughout the game. (This could be proven rigorously with lots of casework. In particular, she must avoid providing Arjun with a position of 3 continuous bricks, because then he could take the middle block and force a win.) The assumption seems reasonable, so the answer is .
Solution 5
We can start by guessing and checking our solutions. Let's start with , . Arjun goes first, and he has a winning strategy. His strategy is to cut the 6 block in half, so whatever Beth does, Arjun will copy. If we see this in practice, Arjun has made the block in to . If Beth takes 1, he will take one. If Beth takes 2, he will take 2 as well.
Then, we can guess solution , . If Arjun starts by taking 1 of the blocks, he will either have , , (Where ). If he has , Beth can take 2 out of the middle of to get which we know Arjun will lose because we know by symmetry from answer choice . If he has , Beth will take out one from the edge, and we get . Beth can now copy whatever Arjun does, so she will win.
Next, if he takes one out to get , we can either have or . If it is the first case, Beth can take the edge 2 out of the 4, which gives us and whatever Arjun does, Beth can do, so she has established a win. If it is the 2nd case, Beth can take out 2 from the 3 to get , in which, Beth can copy whatever Arjun does, so Beth will win. So in all 4 cases, Beth wins. So our answer is
~Arcticturn
Video Solution by Mathematical Dexterity (Be A Copycat!)
https://www.youtube.com/watch?v=m6yWxyYZLqw
Video Solution by OmegaLearn (Game Theory)
~ pi_is_3.14
Video Solution by Interstigation (Goal of Winning - Pairs and Symmetricity & In-depth)
~ Interstigation
See Also
2021 AMC 12B (Problems • Answer Key • Resources) | |
Preceded by Problem 21 |
Followed by Problem 23 |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | |
All AMC 12 Problems and Solutions |
2021 AMC 10B (Problems • Answer Key • Resources) | ||
Preceded by Problem 23 |
Followed by Problem 25 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
All AMC 10 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.