Difference between revisions of "2022 AMC 12B Problems/Problem 17"

(Created page with "==Problem== A bug starts at a vertex of a grid made of equilateral triangles of side length <math>1</math>. At each step the bug moves in one of the <math>6</math> possible d...")
 
(Problem)
Line 1: Line 1:
 
==Problem==
 
==Problem==
  
A bug starts at a vertex of a grid made of equilateral triangles of side length <math>1</math>. At each step the bug moves in one of the <math>6</math> possible directions along the grid lines randomly and independently with equal probability. What is the probability that after <math>5</math> moves the bug never will have been more than <math>1</math> unit away from the starting position?
+
How many <math>4 \times 4</math> arrays whose entries are 0s and 1s are there such that the row sums (the sum of the
 +
entries in each row) are 1, 2, 3, and 4, in some order, and the column sums (the sum of the entries in
 +
each column) are also 1, 2, 3, and 4, in some order? For example, the array
 +
<cmath>
 +
\[
 +
\left[
 +
  \begin{array}{cccc}
 +
    1 & 1 & 1 & 0 \\
 +
    0 & 1 & 1 & 0 \\
 +
    1 & 1 & 1 & 1 \\
 +
    0 & 1 & 0 & 0 \\
 +
  \end{array}
 +
\right]
 +
\]
 +
</cmath>
  
<math>\textbf{(A)}\ \frac{13}{108} \qquad\textbf{(B)}\  \frac{7}{54} \qquad\textbf{(C)}\  \frac{29}{216} \qquad\textbf{(D)}\
+
satisfies the condition.
\frac{4}{27} \qquad\textbf{(E)}\ \frac{1}{16}</math>
 
  
 
==Solution==
 
==Solution==

Revision as of 15:28, 17 November 2022

Problem

How many $4 \times 4$ arrays whose entries are 0s and 1s are there such that the row sums (the sum of the entries in each row) are 1, 2, 3, and 4, in some order, and the column sums (the sum of the entries in each column) are also 1, 2, 3, and 4, in some order? For example, the array \[ \left[   \begin{array}{cccc}     1 & 1 & 1 & 0 \\     0 & 1 & 1 & 0 \\     1 & 1 & 1 & 1 \\     0 & 1 & 0 & 0 \\   \end{array} \right] \]

satisfies the condition.

Solution

Let $S(n)$ be the number of paths of $n$ moves such that the bug never will have been more than $1$ unit away from the starting position. Clearly, by symmetry, there are two possible states here, the bug being on the center and the bug being on one of the vertices of the unit hexagon around the center. Let $C(n)$ be the number of paths with the aforementioned restriction that end on the center. Let $V(n)$ be the number of paths with the aforementioned restriction that end on a vertex of the surrounding unit hexagon. We have $S(n) = 6C(n-1) + 3V(n-1),$ since from the center, there are $6$ possible points to land to and from a vertex there are $3$ possible points to land to (the two adjacent vertices and the center). We also have $C(n) = V(n-1)$, since to get to the center the bug must have come from a vertex, and $V(n) = 2V(n-1) + 6C(n-1),$ since from a vertex there are two vertices to move to, and from the center there are $6$ vertices to move to. We can construct a recursion table using the base cases $V(1) = 6$ and $C(1) = 0$ and our recursive rules for $C(n)$ and $V(n)$ as follows: \[\begin{tabular}{c|c|c} n & V(n) & C(n) \\ \hline 1 & 6 & 0 \\ 2 & 12 & 6 \\ 3 & 60 & 12 \\ 4 & 192 & 60 \\ \end{tabular}\] Then, $S(5) = 6C(4) + 3V(4) = 6 \cdot 60 + 3 \cdot 192 = 936,$ and the desired probability is thus $\frac{936}{6^5} = \boxed{\frac{13}{108}}.$

-fidgetboss_4000