Difference between revisions of "1985 AIME Problems/Problem 12"

m (Solution 2: argh)
 
(16 intermediate revisions by 6 users not shown)
Line 3: Line 3:
  
 
__TOC__
 
__TOC__
== Solution ==
+
== Solutions ==
 
=== Solution 1 ===
 
=== Solution 1 ===
Let <math>P(n)</math> denote the probability that the bug is at <math>A</math> after it has crawled <math>n</math> meters.  Since the bug can only be at vertex <math>A</math> if it just left a vertex which is not <math>A</math>, we have <math>P(n + 1) = \frac13 (1 - P(n))</math>.  We also know <math>P(0) = 1</math>, so we can quickly compute <math>P(1)=0</math>, <math>P(2) = \frac 13</math>, <math>P(3) = \frac29</math>, <math>P(4) = \frac7{27}</math>, <math>P(5) = \frac{20}{81}</math>, <math>P(6) = \frac{61}{243}</math> and <math>P(7) = \frac{182}{729}</math>, so the answer is <math>182</math>.  One can solve this [[recursion]] fairly easily to determine a closed-form expression for <math>P(n)</math>.  
+
Let <math>P(n)</math> denote the probability that the bug is at <math>A</math> after it has crawled <math>n</math> meters.  Since the bug can only be at vertex <math>A</math> if it just left a vertex which is not <math>A</math>, we have <math>P(n + 1) = \frac13 (1 - P(n))</math>.  We also know <math>P(0) = 1</math>, so we can quickly compute <math>P(1)=0</math>, <math>P(2) = \frac 13</math>, <math>P(3) = \frac29</math>, <math>P(4) = \frac7{27}</math>, <math>P(5) = \frac{20}{81}</math>, <math>P(6) = \frac{61}{243}</math> and <math>P(7) = \frac{182}{729}</math>, so the answer is <math>\boxed{182}</math>.  One can solve this [[recursion]] fairly easily to determine a closed-form expression for <math>P(n)</math>.  
  
 
=== Solution 2 ===
 
=== Solution 2 ===
 
We can find the number of different times the bug reaches vertex <math>A</math> before the 7th move, and use these smaller cycles to calculate the number of different ways the bug can end up back at <math>A</math>.
 
We can find the number of different times the bug reaches vertex <math>A</math> before the 7th move, and use these smaller cycles to calculate the number of different ways the bug can end up back at <math>A</math>.
  
Define <math>f(x)</math> to be the number of paths of length <math>x</math> which start and end at <math>A</math> but do not pass through <math>A</math> otherwise. Obviously <math>\displaystyle f(1) = 0</math>. In general for <math>f(x)</math>, the bug has three initial edges to pick from. From there, since the bug cannot return to <math>A</math> by definition, the bug has exactly two choices. This continues from the 2nd move up to the <math>(x-1)</math>th move. The last move must be a return to <math>A</math>, so this move is determined. So <math>\displaystyle f(x) = 2^{x-2}3</math>.
+
Define <math>f(x)</math> to be the number of paths of length <math>x</math> which start and end at <math>A</math> but do not pass through <math>A</math> otherwise. Obviously <math>f(1) = 0</math>. In general for <math>f(x)</math>, the bug has three initial edges to pick from. From there, since the bug cannot return to <math>A</math> by definition, the bug has exactly two choices. This continues from the 2nd move up to the <math>(x-1)</math>th move. The last move must be a return to <math>A</math>, so this move is determined. So <math>f(x) = 2^{x-2}3</math>.
  
Now we need to find the number of cycles by which the bug can reach <math>A</math> at the end. Since <math>\displaystyle f(1) = 0</math>, <math>f(6)</math> cannot be used since on the 7th move the bug cannot move from <math>A</math> to <math>A</math>. So we need to find the number of [[partition]]s of 7 using only 2,3,4,5, and 7. These are <math>f(2)f(2)f(3)</math>, <math>f(2)f(5)</math>, <math>f(3)f(4)</math>, and <math>f(7)</math>. We can calculate these and sum them up using our formula. Also, order matters, so we need to find the number of ways to arrange each partition.
+
Now we need to find the number of cycles by which the bug can reach <math>A</math> at the end. Since <math>f(1) = 0</math>, <math>f(6)</math> cannot be used since on the 7th move the bug cannot move from <math>A</math> to <math>A</math>. So we need to find the number of [[partition]]s of 7 using only 2,3,4,5, and 7. These are <math>f(2)f(2)f(3)</math>, <math>f(2)f(5)</math>, <math>f(3)f(4)</math>, and <math>f(7)</math>. We can calculate these and sum them up using our formula. Also, order matters, so we need to find the number of ways to arrange each partition.
  
<div style="text-align:center;"><math>\displaystyle {3\choose1}f(2)f(2)f(3) + {2\choose1}f(2)f(5) + {2\choose1}f(3)f(4) + f(7)</math><br /><math>\displaystyle = 3(3)(3)(2\cdot3) + 2(3)(2^33) + 2(2\cdot3)(2^23) + (2^53)</math><br /><math>= 546</math></div>
+
<div style="text-align:center;"><math>{3\choose1}f(2)f(2)f(3) + {2\choose1}f(2)f(5) + {2\choose1}f(3)f(4) + f(7)</math><br /><math>= 3(3)(3)(2\cdot3) + 2(3)(2^33) + 2(2\cdot3)(2^23) + (2^53)</math><br /><math>= 546</math></div>
  
Finally, this is a [[probability]] question, so we divide by <math>3^7</math>: <math>\displaystyle \frac{546}{3^7} = \frac{182}{3^6}</math>.
+
Finally, this is a [[probability]] question, so we divide by <math>3^7</math>: <math>\frac{546}{3^7} = \frac{182}{3^6}</math>.
  
 
=== Solution 3 ===
 
=== Solution 3 ===
There exists a simple heuristic method to arrive at the answer to this question, due to [[User:ComplexZeta | Simon Rubinstein-Salzedo]], as follows: after a couple of moves, the randomness of movement of the bug and smallness of the system ensures that we should expect its [[probability distribution]] to be very close to [[uniform distribution | uniform]].  In particular, we would expect <math>P(n)</math> to be very close to <math>\frac 14</math> for decently-sized <math>n</math>, for example <math>n = 7</math>.  (In fact, from looking at the previous solution we can see that it is already close when <math>n = 3</math>, and in fact the earlier values are also the best possible approximations given the restraints on where the bug can be.)  Since we know the answer is of the form <math>\frac n{729}</math>, we realize that <math>n</math> must be very close to <math>\frac{729}{4} = 182.25</math>, as indeed it is.
+
There exists a simple heuristic method to arrive at the answer to this question, due to [[User: ComplexZeta | Simon Rubinstein-Salzedo]], as follows: after a couple of moves, the randomness of movement of the bug and smallness of the system ensures that we should expect its [[probability distribution]] to be very close to [[uniform distribution | uniform]].  In particular, we would expect <math>P(n)</math> to be very close to <math>\frac 14</math> for decently-sized <math>n</math>, for example <math>n = 7</math>.  (In fact, from looking at the previous solution we can see that it is already close when <math>n = 3</math>, and in fact, the earlier values are also the best possible approximations given the restraints on where the bug can be.)  Since we know the answer is of the form <math>\frac n{729}</math>, we realize that <math>n</math> must be very close to <math>\frac{729}{4} = 182.25</math>, as indeed it is.
  
 +
=== Solution 4 (Cheap Solution) ===
 +
Only do this if you don't know how to solve the problem and want to make a good guess. Since there are 4 vertices of a tetrahedron, there is approximately a 1/4 probability of coming back to A after 7 moves. Dividing 729 by 4 gives a number between 182 and 183. If the ant continuously alternates his location from A to some other vertice, in the end, it will not be at A. Therefore we chose the smaller number, 182.
 +
- Rocket123
 +
 +
 +
=== Solution 5 ===
 +
 +
Let <math>a_n</math> denotes the number of ways that the bug arrives at <math>A</math> after crawling <math>n</math> meters, then we have <math>a_1=0</math>.
 +
 +
Notice that there is respectively <math>1</math> way to arrive at <math>A</math> for each of the different routes after the previous <math>n-1</math> crawls, excluding the possibility that the bug ends up at <math>A</math> after the <math>(n-1)</math>th crawl (as it will be forced to move somewhere else.). Thus we get the recurrence relation
 +
<cmath>a_n=3^{n-1}-a_{n-1}</cmath>
 +
Quick calculations yield
 +
<cmath>\begin{align*}
 +
a_7&=3^6-a_6\\
 +
&=3^6-3^5+3^4-...+a_1\\
 +
&=546
 +
\end{align*}</cmath>
 +
Thus <math>p=\frac{546}{3^7}=\frac{182}{729}\Longrightarrow n=\boxed{182}</math>.
 +
 +
~ Nafer
 +
=== Solution 6 ===
 +
Draw an organized table and keep track of how many ways are there to get to each vertex after 1, 2, 3, ..., 7 steps. Thus you get the answer of <math>p=\frac{546}{3^7}=\frac{182}{729}\Longrightarrow n=\boxed{182}</math>.
 +
-pi_is_3.141
 
== See also ==
 
== See also ==
 +
*[[2003 AIME II Problems/Problem 13]] - very similar problem with an equilateral triangle
 +
 
{{AIME box|year=1985|num-b=11|num-a=13}}
 
{{AIME box|year=1985|num-b=11|num-a=13}}
 
* [[AIME Problems and Solutions]]
 
* [[AIME Problems and Solutions]]

Latest revision as of 23:19, 16 February 2020

Problem

Let $A$, $B$, $C$ and $D$ be the vertices of a regular tetrahedron each of whose edges measures 1 meter. A bug, starting from vertex $A$, observes the following rule: at each vertex it chooses one of the three edges meeting at that vertex, each edge being equally likely to be chosen, and crawls along that edge to the vertex at its opposite end. Let $p = \frac n{729}$ be the probability that the bug is at vertex $A$ when it has crawled exactly 7 meters. Find the value of $n$.

Solutions

Solution 1

Let $P(n)$ denote the probability that the bug is at $A$ after it has crawled $n$ meters. Since the bug can only be at vertex $A$ if it just left a vertex which is not $A$, we have $P(n + 1) = \frac13 (1 - P(n))$. We also know $P(0) = 1$, so we can quickly compute $P(1)=0$, $P(2) = \frac 13$, $P(3) = \frac29$, $P(4) = \frac7{27}$, $P(5) = \frac{20}{81}$, $P(6) = \frac{61}{243}$ and $P(7) = \frac{182}{729}$, so the answer is $\boxed{182}$. One can solve this recursion fairly easily to determine a closed-form expression for $P(n)$.

Solution 2

We can find the number of different times the bug reaches vertex $A$ before the 7th move, and use these smaller cycles to calculate the number of different ways the bug can end up back at $A$.

Define $f(x)$ to be the number of paths of length $x$ which start and end at $A$ but do not pass through $A$ otherwise. Obviously $f(1) = 0$. In general for $f(x)$, the bug has three initial edges to pick from. From there, since the bug cannot return to $A$ by definition, the bug has exactly two choices. This continues from the 2nd move up to the $(x-1)$th move. The last move must be a return to $A$, so this move is determined. So $f(x) = 2^{x-2}3$.

Now we need to find the number of cycles by which the bug can reach $A$ at the end. Since $f(1) = 0$, $f(6)$ cannot be used since on the 7th move the bug cannot move from $A$ to $A$. So we need to find the number of partitions of 7 using only 2,3,4,5, and 7. These are $f(2)f(2)f(3)$, $f(2)f(5)$, $f(3)f(4)$, and $f(7)$. We can calculate these and sum them up using our formula. Also, order matters, so we need to find the number of ways to arrange each partition.

${3\choose1}f(2)f(2)f(3) + {2\choose1}f(2)f(5) + {2\choose1}f(3)f(4) + f(7)$
$= 3(3)(3)(2\cdot3) + 2(3)(2^33) + 2(2\cdot3)(2^23) + (2^53)$
$= 546$

Finally, this is a probability question, so we divide by $3^7$: $\frac{546}{3^7} = \frac{182}{3^6}$.

Solution 3

There exists a simple heuristic method to arrive at the answer to this question, due to Simon Rubinstein-Salzedo, as follows: after a couple of moves, the randomness of movement of the bug and smallness of the system ensures that we should expect its probability distribution to be very close to uniform. In particular, we would expect $P(n)$ to be very close to $\frac 14$ for decently-sized $n$, for example $n = 7$. (In fact, from looking at the previous solution we can see that it is already close when $n = 3$, and in fact, the earlier values are also the best possible approximations given the restraints on where the bug can be.) Since we know the answer is of the form $\frac n{729}$, we realize that $n$ must be very close to $\frac{729}{4} = 182.25$, as indeed it is.

Solution 4 (Cheap Solution)

Only do this if you don't know how to solve the problem and want to make a good guess. Since there are 4 vertices of a tetrahedron, there is approximately a 1/4 probability of coming back to A after 7 moves. Dividing 729 by 4 gives a number between 182 and 183. If the ant continuously alternates his location from A to some other vertice, in the end, it will not be at A. Therefore we chose the smaller number, 182. - Rocket123


Solution 5

Let $a_n$ denotes the number of ways that the bug arrives at $A$ after crawling $n$ meters, then we have $a_1=0$.

Notice that there is respectively $1$ way to arrive at $A$ for each of the different routes after the previous $n-1$ crawls, excluding the possibility that the bug ends up at $A$ after the $(n-1)$th crawl (as it will be forced to move somewhere else.). Thus we get the recurrence relation \[a_n=3^{n-1}-a_{n-1}\] Quick calculations yield \begin{align*} a_7&=3^6-a_6\\ &=3^6-3^5+3^4-...+a_1\\ &=546 \end{align*} Thus $p=\frac{546}{3^7}=\frac{182}{729}\Longrightarrow n=\boxed{182}$.

~ Nafer

Solution 6

Draw an organized table and keep track of how many ways are there to get to each vertex after 1, 2, 3, ..., 7 steps. Thus you get the answer of $p=\frac{546}{3^7}=\frac{182}{729}\Longrightarrow n=\boxed{182}$. -pi_is_3.141

See also

1985 AIME (ProblemsAnswer KeyResources)
Preceded by
Problem 11
Followed by
Problem 13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions
Invalid username
Login to AoPS