Token on a grid

Brilli the ant randomly placed a token into a square on a 2 × 100 2 \times 100 chessboard according to a probability distribution P . P. The token is then moved uniformly at random to one of the horizontally, vertically, or diagonally adjacent squares. The probability that the token is in a particular position after it has been moved also satisfies the distribution P . P. Let q q be the probability that the token is placed into one of the columns of C = { 5 , 6 , 44 } C = \{5,6, \ldots 44\} and after being moved is still in one of those columns. The value of q q can be expressed as a b \frac{a}{b} where a a and b b are coprime positive integers. What is the value of a + b ? a + b?

Details and assumptions

C C is the set of integers from 5 to 44 (inclusive).


The answer is 173.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

10 solutions

Throughout this solution, p i , j p_{i,j} will represent the probability that the token was originally placed in the square in the i t h i^{th} column and j t h j^{th} row of the chessboard. Because we are looking at a 2 × 100 2\times100 chessboard, i { 1 , 2 , 3 , . . . , 100 } , j { 1 , 2 } i\in\{1,2,3,...,100\},j\in\{1,2\} .

We begin by finding the probability that the token was originally placed in each square. To do this, we must use the fact that the probability that the token is in a given square before the move is the same as the probability that it's in that square after the move. Because Brilli picks a square to move the token to uniformly at random from the squares surrounding the original square, the token has probability 1 5 \frac{1}{5} to move to any of its surrounding squares, unless the original square is in column 1 1 or column 100 100 , in which case that probability is 1 3 \frac{1}{3} . Thus, it must be the case that p i , j p_{i,j} is the sum of 1 5 \frac{1}{5} (or 1 3 \frac{1}{3} , in a few cases concerning the edge columns) times the probabilities that the token was originally placed in each of the surrounding squares.

For ease of writing, let p 1 , 1 = a p_{1,1}=a and p 1 , 2 = b p_{1,2}=b . From the observation above, we have a = 1 3 b + 1 5 p 2 , 1 + 1 5 p 2 , 2 a = \frac{1}{3}b + \frac{1}{5}p_{2,1} + \frac{1}{5}p_{2,2} and b = 1 3 a + 1 5 p 2 , 1 + 1 5 p 2 , 2 b = \frac{1}{3}a + \frac{1}{5}p_{2,1} + \frac{1}{5}p_{2,2} . Subtracting the second equation from the first yields a b = 1 3 ( b a ) a b = 0 a = b a - b = \frac{1}{3}(b-a) \to a - b = 0 \to a = b . This fact may have been obvious from the symmetry present in the problem, but it is good to ensure that it is, indeed, true.

We see that p 2 , 1 = 1 3 a + 1 3 b + 1 5 ( p 2 , 2 + p 3 , 1 + p 3 , 2 ) p_{2,1} = \frac{1}{3}a + \frac{1}{3}b + \frac{1}{5}(p_{2,2} + p_{3,1} + p_{3,2}) and p 2 , 2 = 1 3 a + 1 3 b + 1 5 ( p 2 , 1 + p 3 , 1 + p 3 , 2 ) p_{2,2} = \frac{1}{3}a + \frac{1}{3}b + \frac{1}{5}(p_{2,1} + p_{3,1} + p_{3,2}) . From these two equations we can show that p 2 , 1 = p 2 , 2 p_{2,1} = p_{2,2} . Using similar equations and manipulations, it can be easily shown that this applies to all columns. That is, i { 1 , 2 , 3 , . . . , 100 } , p i , 1 = p i , 2 \forall{i}\in\{1,2,3,...,100\}, p_{i,1} = p_{i,2} .

We now take another look at a = 1 3 b + 1 5 p 2 , 1 + 1 5 p 2 , 2 a = \frac{1}{3}b + \frac{1}{5}p_{2,1} + \frac{1}{5}p_{2,2} . Using the facts from above, we turn this into a = 1 3 a + 2 5 p 2 , 1 p 2 , 1 = 5 3 a a = \frac{1}{3}a + \frac{2}{5}p_{2,1} \to p_{2,1} = \frac{5}{3}a . Plugging this into p 2 , 1 = 1 3 a + 1 3 b + 1 5 ( p 2 , 2 + p 3 , 1 + p 3 , 2 ) p_{2,1} = \frac{1}{3}a + \frac{1}{3}b + \frac{1}{5}(p_{2,2} + p_{3,1} + p_{3,2}) gives 5 3 a = 2 3 a + 1 5 5 3 a + 2 5 p 3 , 1 p 3 , 1 = 5 3 a = p 2 , 1 \frac{5}{3}a = \frac{2}{3}a + \frac{1}{5}\cdot\frac{5}{3}a + \frac{2}{5}p_{3,1} \to p_{3,1} = \frac{5}{3}a = p_{2,1} . Continuing this process of using p i , 1 p_{i,1} to find p i + 1 , 1 p_{i+1,1} (which, we remind ourselves, is the same as p i + 1 , 2 p_{i+1,2} ) gives us that p 1 , 1 = p 1 , 2 = p 100 , 1 = p 100 , 2 = a p_{1,1} = p_{1,2} = p_{100,1} = p_{100,2} = a and p 2 , 1 = p 2 , 2 = p 3 , 1 = p 3 , 2 = . . . = p 99 , 1 = p 99 , 2 = 5 3 a p_{2,1} = p_{2,2} = p_{3,1} = p_{3,2} =...= p_{99,1} = p_{99,2} = \frac{5}{3}a .

The probability that the token gets placed on any square on the board is the sum of the probabilities that the token gets placed on a certain square on the board and must, of course, be 1 1 , as Brilli certainly placed the token on the board. From above, we know that there are 196 196 squares which have probability 5 3 a \frac{5}{3}a attached to them and 4 4 which have probability a a attached to them. Thus, 196 5 3 a + 4 a = 1 a = 3 992 5 3 a = 5 992 196\cdot\frac{5}{3}a + 4\cdot{a} = 1 \to a = \frac{3}{992} \to \frac{5}{3}a = \frac{5}{992} .

We can now calculate the probability q q that the problem asks for. The probability that the token is placed in a square in the "good" columns (i.e., columns 5 , 6 , . . . , 44 5,6,...,44 ) is 5 992 \frac{5}{992} for each square in those columns. If the token is originally placed in any of the columns numbered 6 , 7 , . . . , 43 6,7,...,43 , it must be in one of the "good" columns after the move, as it can't move more than one column away from its original position. However, if the token is originally placed in a square in columns 5 5 or 44 44 , it can only move to 3 3 of the 5 5 surrounding squares if it wants to stay in the "good" columns. There are, of course, 76 76 squares in columns 6 , 7 , . . . , 43 6,7,...,43 and 4 4 in column 5 5 and column 44 44 . Thus, q = 5 992 ( 76 1 + 4 3 5 ) = 392 992 = 49 124 q = \frac{5}{992}(76\cdot1 + 4\cdot\frac{3}{5}) = \frac{392}{992} = \frac{49}{124} . Our answer is 49 + 124 = 173 49 + 124 = \fbox{173} .

In order to make progress on this problem, it is essential to utilize the fact that the probability distribution is the same both before and after the token moves. Students who did not properly use this fact were unable to complete the question.

Calvin Lin Staff - 7 years ago

Consider a connected undirected graph with probabilities for vertices. Write the probabilities for the vertices as a vector p = ( p 1 , p 2 . . . p n ) t p=(p_1,p_2...p_n)^t . We can find the probabilities for reaching the vertices in the next step by p = A d p p^\prime=A_d p where A d A_d is the adjacency matrix A A modified by dividing every column by the degree d i d_i of the corresponding vertex.

We require p = p p^\prime=p , which gives ( A d I ) p = 0 (A_d-I)p=0 . Let L d = I A d L_d=I-A_d . We have L d p = 0 L_dp=0 . Now, this equality will still be satisfied if we divide row i i of the vector p p by some quantity c i c_i and multiply column i i of the matrix by the same constant. Choose c i = d i c_i=d_i . Then the equation becomes L q = 0 Lq=0 with q = ( p 1 d 1 , p 2 d 2 . . . p 3 d 3 ) t q=(\frac{p_1}{d_1},\frac{p_2}{d_2}...\frac{p_3}{d_3})^t and L L is the matrix formed by adding vertex degrees as diagonal entries to the negative of the adjacency matrix. But this is just the definition of the laplacian matrix of the graph.

Thus we want q q to be an eigenvector of the laplacian matrix with eigenvalue 0. But it is well-known that the only 0-eigenvalue eigenvector of the laplacian of a connected graph is ( 1 , 1...1 ) t (1,1...1)^t (The fact that a connected graph laplacian can have only one 0-eigenvector is a direct consequence of Kirchhoff's theorem ). Thus we find that all q i q_i s are equal, and thus p i p_i s are proportional to d i d_i . Normalising with the sum of degrees of all vertices, we obtain p i = d i i d i p_i=\frac{d_i}{\sum_i d_i} .

Thus, the probability of being at a corner cell is 3 992 \frac{3}{992} while that of being at any other cell is 5 992 \frac{5}{992} . Hence the probability of being in columns { 5..44 } \{5..44\} is 400 992 \frac{400}{992} . The only way of going out of these columns in the next step is if you were initially at column 5 or column 44, and moved to any of the 2 (out of 5) neighbours that took you outside. The probability of this happening is 2 40 × 2 5 = 1 50 \frac{2}{40}\times\frac{2}{5}=\frac{1}{50} . Hence the required probability is 400 992 × 49 50 = 49 124 \frac{400}{992}\times\frac{49}{50}=\frac{49}{124}

Hero P.
May 20, 2014

By symmetry, the probability of the token's position being in the first row must equal the probability of it being in the second, since if this were not the case, the token's position after the move could not follow the same probability distribution as before the move. Let T , T { 1 , 2 , , 100 } P T, T' \in \{1, 2, \ldots, 100 \} \sim P be random variables indicating the column position of the token before and after the move, respectively, and denote p j , k = p k = 1 2 Pr [ T = k ] , p j , k = p k = 1 2 Pr [ T = k ] \begin{aligned} p_{j,k} &= p_k = \textstyle\frac{1}{2}\Pr[T = k], \\ p'_{j,k} &= p'_k = \textstyle\frac{1}{2}\Pr[T' = k] \end{aligned} be the respective probabilities that the token is located in row j j and column k k . Then p 1 = p 1 , 1 = p 1 , 1 = 1 3 p 2 , 1 + 1 5 p 2 , 2 + 1 5 p 1 , 2 = 1 3 p 1 + 2 5 p 2 . \begin{aligned} p_1 &= p_{1,1} = p'_{1,1} \\ &= \frac{1}{3}p_{2,1} + \frac{1}{5}p_{2,2} + \frac{1}{5}p_{1,2} \\ &= \frac{1}{3}p_1 + \frac{2}{5}p_2. \end{aligned} Similarly, p 2 = p 1 , 2 = p 1 , 2 = 1 3 p 1 , 1 + 1 3 p 2 , 1 + 1 5 p 2 , 2 + 1 5 p 2 , 3 + 1 5 p 1 , 3 = 2 3 p 1 + 1 5 p 2 + 2 5 p 3 . \begin{aligned} p_2 &= p_{1,2} = p'_{1,2} \\ &= \frac{1}{3}p_{1,1}+\frac{1}{3}p_{2,1}+\frac{1}{5}p_{2,2}+\frac{1}{5}p_{2,3}+\frac{1}{5}p_{1,3} \\ &= \frac{2}{3}p_1 + \frac{1}{5}p_2 + \frac{2}{5}p_3. \end{aligned} For columns 3 T 98 3 \le T \le 98 , there are no adjacent cells that belong to column 1 1 or 100 100 , so we have p k = 2 5 p k 1 + 1 5 p k + 2 5 p k + 1 , 3 k 98. p_k = \frac{2}{5}p_{k-1} + \frac{1}{5}p_{k} + \frac{2}{5}p_{k+1}, \quad 3 \le k \le 98. Finally, we have the condition k = 1 100 p k = 1 2 \sum_{k=1}^{100} p_k = \frac{1}{2} . Simplifying the first two conditions yields p 1 = 3 5 p 2 p_1 = \frac{3}{5} p_2 , p 2 = p 3 p_2 = p_3 , and since the third condition is equivalent to p k = ( p k 1 + p k + 1 ) / 2 p_k = (p_{k-1} + p_{k+1})/2 , it is easy to see that p 3 = p 4 = = p 98 = p 99 p_3 = p_4 = \ldots = p_{98} = p_{99} . Again by symmetry, we have p 100 = p 1 p_{100} = p_1 , so all together it follows that 1 2 k = 1 100 p k = ( 2 3 5 + 98 ) p 2 = 496 5 p 2 , \frac{1}{2} \sum_{k=1}^{100} p_k = \left( 2 \cdot \frac{3}{5} + 98 \right) p_2 = \frac{496}{5} p_2, hence the distribution P P is p j , 1 = p j , 100 = 3 / 992 , p j , 2 = p j , 3 = = p j , 98 = 5 / 992. p_{j,1} = p_{j,100} = 3/992, \quad p_{j,2} = p_{j,3} = \ldots = p_{j,98} = 5/992.

Now that we know the distribution for the token, consider the partition C = { 6 , 7 , , 43 } , C = { 5 , 44 } C' = \{6, 7, \ldots, 43 \}, C'' = \{5,44\} of C C . Then the token is guaranteed to be in C C after the move if it is in C C' before the move. If the token is in C C'' before the move, then with probability 2 5 \frac{2}{5} , it will move out of C C on the next move. So we have q = Pr [ T , T C ] = Pr [ T C T C ] Pr [ T C ] + Pr [ T C T C ] Pr [ T C ] = Pr [ T C ] + 3 5 Pr [ T C ] = 2 ( k = 6 43 p k + 3 5 ( p 5 + p 44 ) ) = 2 5 992 ( 38 + 3 5 2 ) = 49 124 . \begin{aligned} q &= \Pr[T, T' \in C] \\ &= \Pr[T' \in C \mid T \in C']\Pr[T \in C'] \\ &\quad + \Pr[T' \in C \mid T \in C'']\Pr[T \in C''] \\ &= \Pr[T \in C'] + \frac{3}{5} \Pr[T \in C''] \\ &= 2 \left( \sum_{k=6}^{43} p_k + \frac{3}{5}(p_5 + p_{44}) \right) \\ &= 2 \cdot \frac{5}{992} \left( 38 + \frac{3}{5} \cdot 2 \right) \\ &= \frac{49}{124}. \end{aligned} Therefore, the answer is 49 + 124 = 173 49 + 124 = \boxed{173} .

Let p i p_i be the in the column i i . We have:

i = 1 100 p i = 1 \sum_{i=1}^{100}p_i = 1

If the token starts at column c = 1 c=1 or c = 100 c=100 it has 3 neighbours to go, 1 of them is at the same column, 2 are in the neighbouring columns (2 or 99 respectively), i.e. it remains at the same column with 1 3 \frac{1}{3} probability and goes to the neighbouring column with 2 3 \frac{2}{3} probability. Similarly, for all other columns, it goes to the column to the left or right with 2 5 \frac{2}{5} probability each, and remains at the same column with probability 1 5 \frac{1}{5} . Since the probability distribution after the move must be the same as before the move according to the problem statement, this can be written as:

p 1 = 1 3 p 1 + 2 5 p 2 p_1 = \frac{1}{3}p_1 + \frac{2}{5}p_2

p 2 = 2 3 p 1 + 1 5 p 2 + 2 5 p 3 p_2 = \frac{2}{3}p_1 + \frac{1}{5}p_2 + \frac{2}{5}p_3

p 3 = 2 5 p 2 + 1 5 p 3 + 2 5 p 4 p_3 = \frac{2}{5}p_2 + \frac{1}{5}p_3 + \frac{2}{5}p_4

\ldots

p 99 = 2 5 p 98 + 1 5 p 99 + 2 3 p 100 p_{99} = \frac{2}{5}p_{98} + \frac{1}{5}p_{99} + \frac{2}{3}p_{100}

p 100 = 2 5 p 99 + 1 3 p 100 p_{100} = \frac{2}{5}p_{99} + \frac{1}{3}p_{100}

Rewriting these we get:

p 2 = 5 3 p 1 p_2 = \frac{5}{3}p_1

p 3 = p 2 p_3 = p_2

p 4 = p 3 p_4 = p_3

\ldots

p 99 = p 98 p_{99} = p_{98}

p 100 = 3 5 p 99 p_{100} = \frac{3}{5}p_{99}

or:

p 2 = p 3 = = p 99 = 5 3 p 1 = 5 3 p 100 p_2 = p_3 = \ldots = p_{99} = \frac{5}{3}p_1 = \frac{5}{3}p_{100}

and since they must sum up to 1:

98 p 2 + 2 3 5 p 2 = 1 p 2 = 5 496 98p_2 + 2\frac{3}{5}p_2 = 1 \Rightarrow p_2 = \frac{5}{496}

or:

p 1 = p 100 = 3 496 p_1 = p_{100} = \frac{3}{496} , p 2 = p 3 = = p 99 = 5 496 p_2=p_3=\ldots =p_{99}=\frac{5}{496}

Now for the token to start in one of the columns of C = { 5 , 6 , 44 } C = \{5,6,\ldots 44\} , it either starts in one of the columns of { 6 , 7 , 43 } \{6,7,\ldots 43\} , or it starts in column 5 or 44 and remains on that column or goes to column 6 or 43 respectively ( 3 5 \frac{3}{5} probability). That leads to:

q = ( 43 6 + 1 ) 5 496 + 2 5 496 3 5 = 196 496 = 49 124 q = (43-6+1)\frac{5}{496} + 2\frac{5}{496}\frac{3}{5} = \frac{196}{496} = \frac{49}{124}

Muhammad Al Kahfi
May 20, 2014

From above condition, named the square as ( x , y ) (x , y) , where x x as the column and y y as the row. And, defined P ( x , y ) P_{(x, y)} as probability that token placed into square ( x , y ) (x, y) . From the problem, we know that, "The token is then moved uniformly at random to one of the horizontally, vertically, or diagonally adjacent squares. The probability that the token is in a particular position after it has been moved also satisfies the distribution P.".

Now, assume that, P ( x , y ) P'_{(x, y)} is the probability after move. Look that, if the move came from x = 1 x = 1 or 100 100 , then the probability is 1 3 \frac{1}{3} from the previous square , but if the move came from the other one, then the probability is 1 5 \frac{1}{5} from the previous square. This is due the square from column 1 1 and 100 100 only have 3 3 , so the probability each move is 1 3 \frac{1}{3} , analogue with the other column

Then, it's easy to see that : P ( 1 , 1 ) = P ( 1 , 1 ) = P ( 1 , 2 ) 3 + P ( 2 , 2 ) 5 + P ( 2 , 1 ) 5 ( 1 ) P_{(1, 1)} = P'_{(1, 1)} = \frac{P_{(1,2)}}{3} + \frac{P_{(2,2)}}{5} + \frac{P_{(2,1)}}{5} \ldots \ldots (1) P ( 1 , 2 ) = P ( 1 , 2 ) = P ( 1 , 1 ) 3 + P ( 2 , 2 ) 5 + P ( 2 , 1 ) 5 ( 2 ) P_{(1, 2)} = P'_{(1, 2)} = \frac{P_{(1,1)}}{3} + \frac{P_{(2,2)}}{5} + \frac{P_{(2,1)}}{5} \ldots \ldots(2)

Subtract (1) from (2), we obtain that : P ( 1 , 2 ) P ( 1 , 1 ) = P ( 1 , 1 ) 3 P ( 1 , 2 ) 3 P ( 1 , 2 ) = P ( 1 , 1 ) P_{(1,2)} - P_{(1,1)} = \frac{P_{(1,1)}}{3} - \frac{P_{(1,2)}}{3} \implies P_{(1,2)} = P_{(1,1)}

But, we also see that : P ( 2 , 2 ) = P ( 3 , 1 ) + P ( 3 , 2 ) 5 + P ( 1 , 2 ) + P ( 1 , 1 ) 3 + P ( 2 , 1 ) 5 ( 3 ) P_{(2,2)} = \frac{P_{(3,1)} + P_{(3,2)}}{5} + \frac{P_(1,2) + P(1, 1)}{3} + \frac{P_{(2,1)}}{5} \ldots \ldots(3) P ( 2 , 1 ) = P ( 3 , 1 ) + P ( 3 , 2 ) 5 + P ( 1 , 2 ) + P ( 1 , 1 ) 3 + P ( 2 , 2 ) 5 ( 4 ) P_{(2,1)} = \frac{P_{(3,1)} + P_{(3,2)}}{5} + \frac{P_(1,2) + P(1, 1)}{3} + \frac{P_{(2,2)}}{5} \ldots \ldots(4)

Analog with the previous one, we obtain P ( 2 , 2 ) = P ( 2 , 1 ) P_{(2, 2)} = P_{(2, 1)} . Then, subtitute it, into (1), we obtain that :

P ( 2 , 1 ) = P ( 2 , 2 ) = a P_(2, 1) = P(2, 2) = a P ( 1 , 1 ) = P ( 1 , 2 ) = 3 a 5 P_{(1, 1)} = P_{(1, 2)} = \frac{3a}{5}

From (3) and (4), we also obtain that P ( 3 , 1 ) + P ( 3 , 2 ) = 2 a P(3, 1) + P(3, 2) = 2a . And, we skip it into the lemma, since it's satisfy the condition P ( n + 1 , 1 ) + P ( n + 1 , 2 ) = 2 a P_{(n+1, 1)} + P_{(n+1, 2)} = 2a .

Lemma : If P ( n , 1 ) = P ( n , 2 ) = a P_{(n, 1)} = P_{(n, 2)} = a then P ( n + 1 , 1 ) = P ( n + 1 , 2 ) = a P_{(n+1, 1)} = P_{(n+1, 2)} = a forall 2 n 98 2 \le n \le 98 . Proof : Analogue from equation (3) and (4), we obtain that : a = P ( n , 1 ) = P ( n + 1 , 1 ) + P ( n + 1 , 2 ) + P ( n , 2 ) + P ( n 1 , 1 ) + P ( n 1 , 2 ) 5 = P ( n + 1 , 1 ) + P ( n + 1 , 2 ) + 3 a 5 ( 5 ) a = P_{(n, 1)} = \frac{P_{(n+1,1)} + P_{(n+1,2)} + P_{(n,2)} + P_{(n-1,1)} + P_{(n-1,2)}}{5} = \frac{P_{(n+1,1)} + P_{(n+1,2)} + 3a}{5} \ldots \ldots (5) a = P ( n , 2 ) = P ( n + 1 , 1 ) + P ( n + 1 , 2 ) + P ( n , 1 ) + P ( n 1 , 1 ) + P ( n 1 , 2 ) 5 = P ( n + 1 , 1 ) + P ( n + 1 , 2 ) + 3 a 5 ( 6 ) a= P_{(n, 2)} = \frac{P_{(n+1,1)} + P_{(n+1,2)} + P_{(n,1)} + P_{(n-1,1)} + P_{(n-1,2)}}{5} = \frac{P_{(n+1,1)} + P_{(n+1,2)} + 3a}{5} \ldots \ldots (6)

From (5) and (6) we obtain that P ( n + 1 , 1 ) + P ( n + 1 , 2 ) = 2 a P_{(n+1, 1)} + P_{(n+1, 2)} = 2a

also : P ( n + 1 , 1 ) = P ( n + 2 , 1 ) + P ( n + 2 , 2 ) + P ( n + 1 , 2 ) + P ( n , 1 ) + P ( n , 2 ) 5 ( 7 ) P_{(n+1, 1)} = \frac{P_{(n+2,1)} + P_{(n+2,2)} + P_{(n+1,2)} + P_{(n,1)} + P_{(n,2)}}{5} \ldots \ldots (7) P ( n + 1 , 2 ) = P ( n + 2 , 1 ) + P ( n + 2 , 2 ) + P ( n + 1 , 1 ) + P ( n , 1 ) + P ( n , 2 ) 5 ( 8 ) P_{(n+1, 2)} = \frac{P_{(n+2,1)} + P_{(n+2,2)} + P_{(n+1,1)} + P_{(n,1)} + P_{(n,2)}}{5} \ldots \ldots (8)

Subtract from (8) to (7), then it will implies P ( n + 1 , 1 ) = P ( n + 1 , 2 ) P_{(n+1, 1)} = P_{(n+1, 2)} . Then, from P ( n + 1 , 1 ) + P ( n + 1 , 2 ) = 2 a P_{(n+1, 1)} + P_{(n+1, 2)} = 2a . It will implies that : P ( n + 1 , 1 ) = P ( n + 1 , 2 ) = a P_{(n+1, 1)} = P_{(n+1, 2)} = a . Q.E.D

Then, since it's symmetric, we obtain that : P ( x , y ) = a for 2 x 99 P(x, y) = a \text{for} 2 \le x \le 99 P ( x , y ) = 3 a 5 for x = 1 or x = 100 P(x, y) = \frac{3a}{5} \text{for} x = 1 \text{or} x = 100

Since, the sum all of probability is 1 1 , then : 1 = x = 1 100 ( P ( x , 1 ) + P ( x , 2 ) ) = 4 × 3 a 5 + 196 × a = 992 5 a = 5 992 1 = \sum_{x = 1}^{100} (P(x, 1) + P(x, 2)) = 4 \times \frac{3a}{5} + 196 \times a = \frac{992}{5} \implies a = \frac{5}{992}

The, probability that the token on column 5 , 6 , . . . , 44 {5, 6, ... , 44} is 5 992 × 2 ( 44 5 + 1 ) = 25 62 \frac{5}{992} \times 2(44-5+1) = \frac{25}{62} .

Look that, the probability token on column 6 , 7 , . . . . , 43 {6, 7, ...., 43} still in one of these column is 1 1 for each square. And, for square the probability P ( 5 , 1 ) = P ( 5 , 2 ) = P ( 44 , 1 ) = P ( 44 , 2 ) = 3 5 P(5, 1) = P(5, 2) = P(44, 1) = P(44, 2) = \frac{3}{5} that still one these column.

Proof : Took square (5, 1). Since there are 5 5 possibilities move, that is ( 4 , 1 ) , ( 4 , 2 ) , ( 5 , 2 ) , ( 6 , 1 ) , ( 6 , 2 ) (4, 1), (4, 2), (5, 2), (6, 1), (6, 2) . And, see that, 3 3 of 5 5 square still in those column. Then, the probability is 3 5 \frac{3}{5}

So, the probability, that the token still on these column is :

2 ( 38 ) + 4 ( 3 5 ) 80 = 49 50 \frac{2(38) + 4(\frac{3}{5})}{80} = \frac{49}{50}

Then, the probability that the token is placed into one of these columns of and after being moved is still in one of those columns is 25 62 × 49 50 = 49 124 \frac{25}{62} \times \frac{49}{50} = \frac{49}{124}

So, a + b = 49 + 124 = 173 a + b = 49 + 124 = \boxed{173}

Patrick Corn
May 20, 2014

Let P i P_i be the probability that the token is in column i i . The condition in the problem implies that P 1 = 1 3 P 1 + 2 5 P 2 P_1 = \frac13 P_1 + \frac25 P_2 , P 2 = 2 3 P 1 + 1 5 P 2 + 2 5 P 3 P_2 = \frac23 P_1 + \frac15 P_2 + \frac25 P_3 , P n = 2 5 P n 1 + 1 5 P n + 2 5 P n + 1 P_n = \frac25 P_{n-1} + \frac15 P_n + \frac25 P_{n+1} for 3 n 98 , 3 \le n \le 98, P 99 = 2 5 P 98 + 1 5 P 99 + 2 3 P 100 P_{99} = \frac25 P_{98} + \frac15 P_{99} + \frac23 P_{100} , and P 100 = 2 5 P 99 + 1 3 P 100 . P_{100} = \frac25 P_{99} + \frac13 P_{100}. And of course P i = 1. \sum P_i = 1.

Subtracting P n P_n from both sides of the given equations, we get P 2 = 5 3 P 1 , P_2 = \frac53 P_1, P 3 = 2 P 2 5 3 P 1 P_3 = 2 P_2 - \frac53 P_1 , P n + 1 = 2 P n P n 1 P_{n+1} = 2 P_n - P_{n-1} for 3 n 98 3 \le n \le 98 , P 100 = 6 5 P 99 3 5 P 98 , P_{100} = \frac65 P_{99} - \frac35 P_{98}, and P 100 = 3 5 P 99 P_{100} = \frac35 P_{99} .

Solving for P n P_n one by one in terms of P 1 P_1 , we quickly see that P 2 = P 3 = = P 99 = 5 3 P 1 P_2 = P_3 = \cdots = P_{99} = \frac53 P_1 and P 100 = P 1 P_{100} = P_1 . So 1 = P i = ( 2 + 98 5 3 ) P 1 = 496 3 P 1 . 1 = \sum P_i = \left( 2 + 98 \frac53 \right) P_1 = \frac{496}3 P_1.

So P 1 = P 100 = 3 496 P_1 = P_{100} = \frac3{496} and P n = 5 496 P_n = \frac5{496} for 2 n 99 2 \le n \le 99 . Now q = 3 5 P 5 + ( P 6 + + P 43 ) + 3 5 P 44 q = \frac35 P_5 + (P_6 + \cdots + P_{43}) + \frac35 P_{44} , so q = 5 496 ( 3 5 + 38 + 3 5 ) = 49 124 q = \frac5{496} \left( \frac35 + 38 + \frac35 \right) = \frac{49}{124} , so the answer is 173 173 .

Explain the last step.

Calvin Lin Staff - 7 years ago

Suppose P n P_n is the probability that the token is placed into column n.

Because after a move to a adjacent square, P n P_n is not changed, we have: P 1 = 1 3 P 1 + 2 5 P 2 P_1=\frac{1}{3}P_1+\frac{2}{5}P_2

and P 2 = 2 3 P 1 + 1 5 P 2 + 2 5 P 3 P_2=\frac{2}{3}P_1+\frac{1}{5}P_2+\frac{2}{5}P_3 .

Therefore, P 1 = 3 5 P 2 P_1=\frac{3}{5}P_2 and P 2 = P 3 P_2=P_3 .

Similarly, we have P 2 = P n 3 n 99 P_2=P_n \forall 3 \leq n \leq 99 and P 100 = P 1 = 3 5 P 2 P_{100}=P_1=\frac{3}{5}P_2 .

Because the sum of all P n P_n is equal to 1, we have: 2. 3 5 P 2 + 98 P 2 = 1 2.\frac{3}{5}P_2+98P_2=1 or P 2 = 5 496 P_2=\frac{5}{496} .

So, q = 38 P 2 + 3 5 . 2 P 2 = 49 124 q=38P_2+\frac{3}{5}.2P_2=\frac{49}{124} .

So the answer is: 49 + 124 = 173.

Explain last step.

Calvin Lin Staff - 7 years ago
Calvin Lin Staff
May 13, 2014

We first consider the following system of equations:

x = p y + m y = p x + m \begin{array}{l} x = py + m\\ y = px + m\\ \end{array}

Solving these equations yields x = y = m p 1 x = y = \frac{m}{p-1} or x = y , p = 1 , m = 0. x = y, p=1, m = 0. In both instances, we have x = y . x = y.

Let n n be the number of columns in the grid let k k be the number of columns in C C .

Let P i , j P_{i,j} be the probability that the token is placed into row i i and column j . j. Using the fact that the distribution is P P both before and after moving the token, we calculate P 1 , j = d ( P 1 , j 1 + P 2 , j 1 ) + e ( P 2 , j ) + f ( P 1 , j + 1 + P 2 , j + 1 ) , P_{1,j} = d (P_{1,j-1} + P_{2,j-1}) + e (P_{2,j}) + f(P_{1,j+1} + P_{2,j+1}), P 2 , j = d ( P 1 , j 1 + P 2 , j 1 ) + e ( P 1 , j ) + f ( P 1 , j + 1 + P 2 , j + 1 ) , P_{2,j} = d (P_{1,j-1} + P_{2,j-1}) + e (P_{1,j}) + f(P_{1,j+1} + P_{2,j+1}), where d , e , f d,e,f can be 0 , 1 3 , or 1 5 , 0, \frac{1}{3}, \mbox{ or } \frac{1}{5}, depending on the value of j . j. These equations satisfy the x = p y + m , y = p x + m x = py + m, y = px + m format, which tells us that P 1 , j = P 2 , j P_{1,j} = P_{2,j} for each j . j. Let P j = P 1 , j = P 2 , j . P_{j} = P_{1,j} = P_{2,j}.

If we solve the equation for P 1 , 1 , P_{1,1}, we get 5 P 1 = 3 P 2 . 5 P_{1} = 3 P_{2}. If we use this relation to solve the equation for P 1 , 2 P_{1,2} we get P 2 = P 3 . P_{2} = P_{3}. Repeating, we get that 5 3 P 1 = P 2 = P 3 = = P n 1 = 5 3 P n . \frac{5}{3} P_{1} = P_{2} = P_{3} = \cdots = P_{n-1} = \frac{5}{3} P_{n}. When we combine this with the equation 2 j = 1 n P j = 1 2 \sum\limits_{j=1}^{n} P_{j} = 1 to get 5 3 P 1 = P 2 = P 3 = = P n 1 = 5 3 P n = 5 10 n 8 . \frac{5}{3} P_{1} = P_{2} = P_{3} = \cdots = P_{n-1} = \frac{5}{3} P_{n} = \frac{5}{10n - 8}.

Neither the first nor the last columns of the chessboard are in C C . The probability that the token begins in one of the columns of C C that is neither the first nor the last is 2 ( k 2 ) 5 10 n 8 = 10 k 20 10 n 8 . 2(k-2)\frac{5}{10n-8} = \frac{10k-20}{10n-8}. The probability that the token belongs in either the first or last column of C C and then does not leave C C is 4 5 10 n 8 3 5 = 12 10 n 8 . 4\frac{5}{10n-8} \frac{3}{5} = \frac{12}{10n-8}. Adding these together gives a total probability of 10 k 8 10 n 8 . \frac{10k-8}{10n-8}.

When k = 40 k = 40 and n = 100 n = 100 we get the probability is 10 ( 40 ) 8 10 ( 100 ) 8 = 49 124 . \frac{10(40) - 8}{10(100)-8} = \frac{49}{124}. So a + b = 49 + 124 = 173. a + b = 49 + 124 = 173.

Anubhav Singh
May 20, 2014

the value of q comes to be a/b=49/124 so a+b=173

Raymond Lin
May 20, 2014

We first consider the number of ways to place and move any token placed on the board.

If a token is placed in columns 2 2 through 99 99 , it can be moved 5 5 different ways ( 1 1 way vertical, 2 2 ways horizontal, 2 2 ways diagonal) to an adjacent square so that the token stays on the board. There are 98 2 = 196 98*2=196 squares in columns 2 2 through 99 99 , so there are a total of 196 5 = 980 196*5=980 ways to place and move a token placed in in columns 2 2 through 99 99 .

If a token is placed in columns 1 1 or 100 100 , it can be moved 3 3 different ways ( 1 1 way vertical, 1 1 way horizontal, 1 1 way diagonal) so that the token stays on the board. There are 2 2 = 4 2*2=4 squares in columns 1 1 or 100 100 , so there are a total of 4 3 = 12 4*3=12 ways to place and move a token placed in in columns 1 1 or 100 100 .

We add 980 980 and 12 12 to get 992 992 total possibilities for placing and moving any token placed on the board.

We now count the number of ways that we can place and move a token within C = { 5 , 6 , 7 , . . . 43 , 44 } C=\left\{5, 6, 7, ... 43, 44\right\} .

If a token is placed in columns 6 6 through 43 43 , it can be moved 5 5 different ways ( 1 1 way vertical, 2 2 ways horizontal, 2 2 ways diagonal) to an adjacent square so that it still stays in C C . There are 38 2 = 76 38*2=76 squares in columns 6 6 through 43 43 , so there are a total of 76 5 = 380 76*5=380 ways to place and move a token placed in columns 6 6 through 43 43 .

If a token is placed in columns 5 5 or 44 44 , it can be moved 3 3 different ways ( 1 1 way vertical, 1 1 way horizontal, 1 1 way diagonal) so that it still stays in C C . There are 2 2 = 4 2*2=4 squares in columns 5 5 or 44 44 , so there are a total of 4 3 = 12 4*3=12 ways to place and move a token placed in in columns 5 5 or 44 44 .

We add 380 380 and 12 12 to get 392 392 total possibilities for placing and moving a token so that it is placed in C C and stays in C C after being moved.

Therefore, q = 392 992 = 49 124 q=\frac{392}{992}=\frac{49}{124} . a = 49 a=49 and b = 124 b=124 , so a + b = 173 a+b=\fbox{173}

No reason that these events are equally likely to occur.

Calvin Lin Staff - 7 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...