Difference between revisions of "2025 SSMO Accuracy Round Problems/Problem 6"
(Created page with "==Problem== Andy the ant starts at the square labeled <math>1</math>. On each move Andy moves to any orthogonal square (a square with which his current square shares a side)....") |
(→Solution) |
||
(One intermediate revision by the same user not shown) | |||
Line 24: | Line 24: | ||
} | } | ||
} | } | ||
+ | |||
+ | label("$1$",(0.5,0.5)); | ||
+ | label("$2$",(2.5,2.5)); | ||
</asy> | </asy> | ||
==Solution== | ==Solution== | ||
+ | |||
+ | <asy> | ||
+ | unitsize(1cm); | ||
+ | int[][] grid = { | ||
+ | {0, 0, 0}, | ||
+ | {0, 0, 0}, | ||
+ | {0, 0, 0} | ||
+ | }; | ||
+ | |||
+ | grid[0][0] = 1; | ||
+ | grid[2][2] = 2; | ||
+ | |||
+ | for (int i = 0; i <= 3; ++i) { | ||
+ | draw((0,i)--(3,i),black); | ||
+ | draw((i,0)--(i,3),black); | ||
+ | } | ||
+ | |||
+ | for (int i = 0; i < 3; ++i) { | ||
+ | for (int j = 0; j < 3; ++j) { | ||
+ | if (grid[i][j] != 0) { | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | label("$1$",(0.5,0.5)); | ||
+ | label("$2$",(2.5,2.5)); | ||
+ | label("$3$",(1.5,0.5)); | ||
+ | label("$4$",(2.5,0.5)); | ||
+ | label("$5$",(0.5,1.5)); | ||
+ | label("$6$",(1.5,1.5)); | ||
+ | label("$7$",(2.5,1.5)); | ||
+ | label("$8$",(0.5,2.5)); | ||
+ | label("$9$",(1.5,2.5)); | ||
+ | |||
+ | </asy> | ||
+ | |||
+ | Label each cell of the grid as shown. We proceed via states; for each integer <math>1\le i \le 9</math>, let <math>e_i</math> denote the expected number of moves Andy makes starting from cell <math>i</math> before reaching cell <math>2</math>. The value we seek is <math>e_1</math>. | ||
+ | |||
+ | Trivially, <math>e_2 = 0</math>. By symmetry, note that <math>e_3 = e_5</math>, <math>e_4 = e_8</math>, and <math>e_7 = e_9</math>. To set up our states equations, we consider all the possible ways Andy can move up to symmetry: | ||
+ | <UL> | ||
+ | <LI>If Andy is currently in cell <math>1</math>, he moves with probability <math>\tfrac{1}{2}</math> to each one of cells <math>3</math> and <math>5</math>;</LI> | ||
+ | <LI>If Andy is currently in cell <math>3</math>, he moves with probability <math>\tfrac{1}{3}</math> to each one of cells <math>1</math>, <math>4</math>, and <math>6</math>;</LI> | ||
+ | <LI>If Andy is currently in cell <math>4</math>, he moves with probability <math>\tfrac{1}{2}</math> to each one of cells <math>3</math> and <math>7</math>;</LI> | ||
+ | <LI>If Andy is currently in cell <math>6</math>, he moves with probability <math>\tfrac{1}{4}</math> to each one of cells <math>3</math>, <math>5</math>, <math>7</math>, and <math>9</math>;</LI> | ||
+ | <LI>If Andy is currently in cell <math>7</math>, he moves with probability <math>\tfrac{1}{3}</math> to each one of cells <math>4</math>, <math>6</math>, and <math>2</math>.</LI> | ||
+ | </UL> | ||
+ | Therefore, we have the following five equations: | ||
+ | \begin{align*} | ||
+ | e_1 &= e_3 + 1 \\ | ||
+ | e_3 &= \tfrac{1}{3}e_1 + \tfrac{1}{3}e_4 + \tfrac{1}{3}e_6 + 1 \\ | ||
+ | e_4 &= \tfrac{1}{2}e_3 + \tfrac{1}{2}e_7 + 1 \\ | ||
+ | e_6 &= \tfrac{1}{2}e_3 + \tfrac{1}{2}e_7 + 1 \\ | ||
+ | e_7 &= \tfrac{1}{3}e_4 + \tfrac{1}{3}e_6 + 1. | ||
+ | \end{align*} | ||
+ | Note that <math>e_6 = e_4</math>. Substituting this as well as <math>e_1 = e_3+1</math> into the second and fifth equations lets us solve for both <math>e_3</math> and <math>e_7</math> in terms of <math>e_4</math>. After simplification, we obtain | ||
+ | \begin{align*} | ||
+ | e_3 &= e_4+2\\ | ||
+ | e_7 &= \tfrac{2}{3}e_4 + 1. | ||
+ | \end{align*} | ||
+ | Plugging in these expressions for <math>e_3</math> and <math>e_7</math> into the third equation of our system, we obtain a linear equation in <math>e_4</math>, which we can solve to find that <math>e_4 = 15</math>. Thus, <math>e_1 = e_3 + 1 = (e_4 + 2) + 1 = \boxed{18}</math>. | ||
+ | |||
+ | ~Sedro |
Latest revision as of 16:37, 15 September 2025
Problem
Andy the ant starts at the square labeled . On each move Andy moves to any orthogonal square (a square with which his current square shares a side). What is the expected number of moves before Andy is in the square labeled
?
Solution
Label each cell of the grid as shown. We proceed via states; for each integer , let
denote the expected number of moves Andy makes starting from cell
before reaching cell
. The value we seek is
.
Trivially, . By symmetry, note that
,
, and
. To set up our states equations, we consider all the possible ways Andy can move up to symmetry:
- If Andy is currently in cell
, he moves with probability
to each one of cells
and
;
- If Andy is currently in cell
, he moves with probability
to each one of cells
,
, and
;
- If Andy is currently in cell
, he moves with probability
to each one of cells
and
;
- If Andy is currently in cell
, he moves with probability
to each one of cells
,
,
, and
;
- If Andy is currently in cell
, he moves with probability
to each one of cells
,
, and
.
Therefore, we have the following five equations:
\begin{align*}
e_1 &= e_3 + 1 \\
e_3 &= \tfrac{1}{3}e_1 + \tfrac{1}{3}e_4 + \tfrac{1}{3}e_6 + 1 \\
e_4 &= \tfrac{1}{2}e_3 + \tfrac{1}{2}e_7 + 1 \\
e_6 &= \tfrac{1}{2}e_3 + \tfrac{1}{2}e_7 + 1 \\
e_7 &= \tfrac{1}{3}e_4 + \tfrac{1}{3}e_6 + 1.
\end{align*}
Note that . Substituting this as well as
into the second and fifth equations lets us solve for both
and
in terms of
. After simplification, we obtain
\begin{align*}
e_3 &= e_4+2\\
e_7 &= \tfrac{2}{3}e_4 + 1.
\end{align*}
Plugging in these expressions for
and
into the third equation of our system, we obtain a linear equation in
, which we can solve to find that
. Thus,
.
~Sedro