Brilli the ant randomly placed a token into a square on a 2 × 1 0 0 chessboard according to a probability distribution 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 . Let q be the probability that the token is placed into one of the columns of C = { 5 , 6 , … 4 4 } and after being moved is still in one of those columns. The value of q can be expressed as b a where a and b are coprime positive integers. What is the value of a + b ?
Details and assumptions
C is the set of integers from 5 to 44 (inclusive).
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.
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 . We can find the probabilities for reaching the vertices in the next step by p ′ = A d p where A d is the adjacency matrix A modified by dividing every column by the degree d i of the corresponding vertex.
We require p ′ = p , which gives ( A d − I ) p = 0 . Let L d = I − A d . We have L d p = 0 . Now, this equality will still be satisfied if we divide row i of the vector p by some quantity c i and multiply column i of the matrix by the same constant. Choose c i = d i . Then the equation becomes L q = 0 with q = ( d 1 p 1 , d 2 p 2 . . . d 3 p 3 ) t and 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 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 (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 s are equal, and thus p i s are proportional to d i . Normalising with the sum of degrees of all vertices, we obtain p i = ∑ i d i d i .
Thus, the probability of being at a corner cell is 9 9 2 3 while that of being at any other cell is 9 9 2 5 . Hence the probability of being in columns { 5 . . 4 4 } is 9 9 2 4 0 0 . 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 4 0 2 × 5 2 = 5 0 1 . Hence the required probability is 9 9 2 4 0 0 × 5 0 4 9 = 1 2 4 4 9
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 , … , 1 0 0 } ∼ P be random variables indicating the column position of the token before and after the move, respectively, and denote p j , k p j , k ′ = p k = 2 1 Pr [ T = k ] , = p k ′ = 2 1 Pr [ T ′ = k ] be the respective probabilities that the token is located in row j and column k . Then p 1 = p 1 , 1 = p 1 , 1 ′ = 3 1 p 2 , 1 + 5 1 p 2 , 2 + 5 1 p 1 , 2 = 3 1 p 1 + 5 2 p 2 . Similarly, p 2 = p 1 , 2 = p 1 , 2 ′ = 3 1 p 1 , 1 + 3 1 p 2 , 1 + 5 1 p 2 , 2 + 5 1 p 2 , 3 + 5 1 p 1 , 3 = 3 2 p 1 + 5 1 p 2 + 5 2 p 3 . For columns 3 ≤ T ≤ 9 8 , there are no adjacent cells that belong to column 1 or 1 0 0 , so we have p k = 5 2 p k − 1 + 5 1 p k + 5 2 p k + 1 , 3 ≤ k ≤ 9 8 . Finally, we have the condition ∑ k = 1 1 0 0 p k = 2 1 . Simplifying the first two conditions yields p 1 = 5 3 p 2 , p 2 = p 3 , and since the third condition is equivalent to p k = ( p k − 1 + p k + 1 ) / 2 , it is easy to see that p 3 = p 4 = … = p 9 8 = p 9 9 . Again by symmetry, we have p 1 0 0 = p 1 , so all together it follows that 2 1 k = 1 ∑ 1 0 0 p k = ( 2 ⋅ 5 3 + 9 8 ) p 2 = 5 4 9 6 p 2 , hence the distribution P is p j , 1 = p j , 1 0 0 = 3 / 9 9 2 , p j , 2 = p j , 3 = … = p j , 9 8 = 5 / 9 9 2 .
Now that we know the distribution for the token, consider the partition C ′ = { 6 , 7 , … , 4 3 } , C ′ ′ = { 5 , 4 4 } of C . Then the token is guaranteed to be in C after the move if it is in C ′ before the move. If the token is in C ′ ′ before the move, then with probability 5 2 , it will move out of 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 ′ ] + 5 3 Pr [ T ∈ C ′ ′ ] = 2 ( k = 6 ∑ 4 3 p k + 5 3 ( p 5 + p 4 4 ) ) = 2 ⋅ 9 9 2 5 ( 3 8 + 5 3 ⋅ 2 ) = 1 2 4 4 9 . Therefore, the answer is 4 9 + 1 2 4 = 1 7 3 .
Let p i be the in the column i . We have:
∑ i = 1 1 0 0 p i = 1
If the token starts at column c = 1 or c = 1 0 0 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 3 1 probability and goes to the neighbouring column with 3 2 probability. Similarly, for all other columns, it goes to the column to the left or right with 5 2 probability each, and remains at the same column with probability 5 1 . 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 = 3 1 p 1 + 5 2 p 2
p 2 = 3 2 p 1 + 5 1 p 2 + 5 2 p 3
p 3 = 5 2 p 2 + 5 1 p 3 + 5 2 p 4
…
p 9 9 = 5 2 p 9 8 + 5 1 p 9 9 + 3 2 p 1 0 0
p 1 0 0 = 5 2 p 9 9 + 3 1 p 1 0 0
Rewriting these we get:
p 2 = 3 5 p 1
p 3 = p 2
p 4 = p 3
…
p 9 9 = p 9 8
p 1 0 0 = 5 3 p 9 9
or:
p 2 = p 3 = … = p 9 9 = 3 5 p 1 = 3 5 p 1 0 0
and since they must sum up to 1:
9 8 p 2 + 2 5 3 p 2 = 1 ⇒ p 2 = 4 9 6 5
or:
p 1 = p 1 0 0 = 4 9 6 3 , p 2 = p 3 = … = p 9 9 = 4 9 6 5
Now for the token to start in one of the columns of C = { 5 , 6 , … 4 4 } , it either starts in one of the columns of { 6 , 7 , … 4 3 } , or it starts in column 5 or 44 and remains on that column or goes to column 6 or 43 respectively ( 5 3 probability). That leads to:
q = ( 4 3 − 6 + 1 ) 4 9 6 5 + 2 4 9 6 5 5 3 = 4 9 6 1 9 6 = 1 2 4 4 9
From above condition, named the square as ( x , y ) , where x as the column and y as the row. And, defined P ( x , y ) as probability that token placed into square ( 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 ) ′ is the probability after move. Look that, if the move came from x = 1 or 1 0 0 , then the probability is 3 1 from the previous square , but if the move came from the other one, then the probability is 5 1 from the previous square. This is due the square from column 1 and 1 0 0 only have 3 , so the probability each move is 3 1 , analogue with the other column
Then, it's easy to see that : P ( 1 , 1 ) = P ( 1 , 1 ) ′ = 3 P ( 1 , 2 ) + 5 P ( 2 , 2 ) + 5 P ( 2 , 1 ) … … ( 1 ) P ( 1 , 2 ) = P ( 1 , 2 ) ′ = 3 P ( 1 , 1 ) + 5 P ( 2 , 2 ) + 5 P ( 2 , 1 ) … … ( 2 )
Subtract (1) from (2), we obtain that : P ( 1 , 2 ) − P ( 1 , 1 ) = 3 P ( 1 , 1 ) − 3 P ( 1 , 2 ) ⟹ P ( 1 , 2 ) = P ( 1 , 1 )
But, we also see that : P ( 2 , 2 ) = 5 P ( 3 , 1 ) + P ( 3 , 2 ) + 3 P ( 1 , 2 ) + P ( 1 , 1 ) + 5 P ( 2 , 1 ) … … ( 3 ) P ( 2 , 1 ) = 5 P ( 3 , 1 ) + P ( 3 , 2 ) + 3 P ( 1 , 2 ) + P ( 1 , 1 ) + 5 P ( 2 , 2 ) … … ( 4 )
Analog with the previous one, we obtain P ( 2 , 2 ) = P ( 2 , 1 ) . Then, subtitute it, into (1), we obtain that :
P ( 2 , 1 ) = P ( 2 , 2 ) = a P ( 1 , 1 ) = P ( 1 , 2 ) = 5 3 a
From (3) and (4), we also obtain that P ( 3 , 1 ) + P ( 3 , 2 ) = 2 a . And, we skip it into the lemma, since it's satisfy the condition P ( n + 1 , 1 ) + P ( n + 1 , 2 ) = 2 a .
Lemma : If P ( n , 1 ) = P ( n , 2 ) = a then P ( n + 1 , 1 ) = P ( n + 1 , 2 ) = a forall 2 ≤ n ≤ 9 8 . Proof : Analogue from equation (3) and (4), we obtain that : a = P ( n , 1 ) = 5 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 ) a = P ( n , 2 ) = 5 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 … … ( 6 )
From (5) and (6) we obtain that P ( n + 1 , 1 ) + P ( n + 1 , 2 ) = 2 a
also : P ( n + 1 , 1 ) = 5 P ( n + 2 , 1 ) + P ( n + 2 , 2 ) + P ( n + 1 , 2 ) + P ( n , 1 ) + P ( n , 2 ) … … ( 7 ) P ( n + 1 , 2 ) = 5 P ( n + 2 , 1 ) + P ( n + 2 , 2 ) + P ( n + 1 , 1 ) + P ( n , 1 ) + P ( n , 2 ) … … ( 8 )
Subtract from (8) to (7), then it will implies P ( n + 1 , 1 ) = P ( n + 1 , 2 ) . Then, from P ( n + 1 , 1 ) + P ( n + 1 , 2 ) = 2 a . It will implies that : 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 ≤ 9 9 P ( x , y ) = 5 3 a for x = 1 or x = 1 0 0
Since, the sum all of probability is 1 , then : 1 = x = 1 ∑ 1 0 0 ( P ( x , 1 ) + P ( x , 2 ) ) = 4 × 5 3 a + 1 9 6 × a = 5 9 9 2 ⟹ a = 9 9 2 5
The, probability that the token on column 5 , 6 , . . . , 4 4 is 9 9 2 5 × 2 ( 4 4 − 5 + 1 ) = 6 2 2 5 .
Look that, the probability token on column 6 , 7 , . . . . , 4 3 still in one of these column is 1 for each square. And, for square the probability P ( 5 , 1 ) = P ( 5 , 2 ) = P ( 4 4 , 1 ) = P ( 4 4 , 2 ) = 5 3 that still one these column.
Proof : Took square (5, 1). Since there are 5 possibilities move, that is ( 4 , 1 ) , ( 4 , 2 ) , ( 5 , 2 ) , ( 6 , 1 ) , ( 6 , 2 ) . And, see that, 3 of 5 square still in those column. Then, the probability is 5 3
So, the probability, that the token still on these column is :
8 0 2 ( 3 8 ) + 4 ( 5 3 ) = 5 0 4 9
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 6 2 2 5 × 5 0 4 9 = 1 2 4 4 9
So, a + b = 4 9 + 1 2 4 = 1 7 3
Let P i be the probability that the token is in column i . The condition in the problem implies that P 1 = 3 1 P 1 + 5 2 P 2 , P 2 = 3 2 P 1 + 5 1 P 2 + 5 2 P 3 , P n = 5 2 P n − 1 + 5 1 P n + 5 2 P n + 1 for 3 ≤ n ≤ 9 8 , P 9 9 = 5 2 P 9 8 + 5 1 P 9 9 + 3 2 P 1 0 0 , and P 1 0 0 = 5 2 P 9 9 + 3 1 P 1 0 0 . And of course ∑ P i = 1 .
Subtracting P n from both sides of the given equations, we get P 2 = 3 5 P 1 , P 3 = 2 P 2 − 3 5 P 1 , P n + 1 = 2 P n − P n − 1 for 3 ≤ n ≤ 9 8 , P 1 0 0 = 5 6 P 9 9 − 5 3 P 9 8 , and P 1 0 0 = 5 3 P 9 9 .
Solving for P n one by one in terms of P 1 , we quickly see that P 2 = P 3 = ⋯ = P 9 9 = 3 5 P 1 and P 1 0 0 = P 1 . So 1 = ∑ P i = ( 2 + 9 8 3 5 ) P 1 = 3 4 9 6 P 1 .
So P 1 = P 1 0 0 = 4 9 6 3 and P n = 4 9 6 5 for 2 ≤ n ≤ 9 9 . Now q = 5 3 P 5 + ( P 6 + ⋯ + P 4 3 ) + 5 3 P 4 4 , so q = 4 9 6 5 ( 5 3 + 3 8 + 5 3 ) = 1 2 4 4 9 , so the answer is 1 7 3 .
Suppose P n is the probability that the token is placed into column n.
Because after a move to a adjacent square, P n is not changed, we have: P 1 = 3 1 P 1 + 5 2 P 2
and P 2 = 3 2 P 1 + 5 1 P 2 + 5 2 P 3 .
Therefore, P 1 = 5 3 P 2 and P 2 = P 3 .
Similarly, we have P 2 = P n ∀ 3 ≤ n ≤ 9 9 and P 1 0 0 = P 1 = 5 3 P 2 .
Because the sum of all P n is equal to 1, we have: 2 . 5 3 P 2 + 9 8 P 2 = 1 or P 2 = 4 9 6 5 .
So, q = 3 8 P 2 + 5 3 . 2 P 2 = 1 2 4 4 9 .
So the answer is: 49 + 124 = 173.
We first consider the following system of equations:
x = p y + m y = p x + m
Solving these equations yields x = y = p − 1 m or x = y , p = 1 , m = 0 . In both instances, we have x = y .
Let n be the number of columns in the grid let k be the number of columns in C .
Let P i , j be the probability that the token is placed into row i and column j . Using the fact that the distribution is 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 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 can be 0 , 3 1 , or 5 1 , depending on the value of j . These equations satisfy the x = p y + m , y = p x + m format, which tells us that P 1 , j = P 2 , j for each j . Let P j = P 1 , j = P 2 , j .
If we solve the equation for P 1 , 1 , we get 5 P 1 = 3 P 2 . If we use this relation to solve the equation for P 1 , 2 we get P 2 = P 3 . Repeating, we get that 3 5 P 1 = P 2 = P 3 = ⋯ = P n − 1 = 3 5 P n . When we combine this with the equation 2 j = 1 ∑ n P j = 1 to get 3 5 P 1 = P 2 = P 3 = ⋯ = P n − 1 = 3 5 P n = 1 0 n − 8 5 .
Neither the first nor the last columns of the chessboard are in C . The probability that the token begins in one of the columns of C that is neither the first nor the last is 2 ( k − 2 ) 1 0 n − 8 5 = 1 0 n − 8 1 0 k − 2 0 . The probability that the token belongs in either the first or last column of C and then does not leave C is 4 1 0 n − 8 5 5 3 = 1 0 n − 8 1 2 . Adding these together gives a total probability of 1 0 n − 8 1 0 k − 8 .
When k = 4 0 and n = 1 0 0 we get the probability is 1 0 ( 1 0 0 ) − 8 1 0 ( 4 0 ) − 8 = 1 2 4 4 9 . So a + b = 4 9 + 1 2 4 = 1 7 3 .
the value of q comes to be a/b=49/124 so a+b=173
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 through 9 9 , it can be moved 5 different ways ( 1 way vertical, 2 ways horizontal, 2 ways diagonal) to an adjacent square so that the token stays on the board. There are 9 8 ∗ 2 = 1 9 6 squares in columns 2 through 9 9 , so there are a total of 1 9 6 ∗ 5 = 9 8 0 ways to place and move a token placed in in columns 2 through 9 9 .
If a token is placed in columns 1 or 1 0 0 , it can be moved 3 different ways ( 1 way vertical, 1 way horizontal, 1 way diagonal) so that the token stays on the board. There are 2 ∗ 2 = 4 squares in columns 1 or 1 0 0 , so there are a total of 4 ∗ 3 = 1 2 ways to place and move a token placed in in columns 1 or 1 0 0 .
We add 9 8 0 and 1 2 to get 9 9 2 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 , . . . 4 3 , 4 4 } .
If a token is placed in columns 6 through 4 3 , it can be moved 5 different ways ( 1 way vertical, 2 ways horizontal, 2 ways diagonal) to an adjacent square so that it still stays in C . There are 3 8 ∗ 2 = 7 6 squares in columns 6 through 4 3 , so there are a total of 7 6 ∗ 5 = 3 8 0 ways to place and move a token placed in columns 6 through 4 3 .
If a token is placed in columns 5 or 4 4 , it can be moved 3 different ways ( 1 way vertical, 1 way horizontal, 1 way diagonal) so that it still stays in C . There are 2 ∗ 2 = 4 squares in columns 5 or 4 4 , so there are a total of 4 ∗ 3 = 1 2 ways to place and move a token placed in in columns 5 or 4 4 .
We add 3 8 0 and 1 2 to get 3 9 2 total possibilities for placing and moving a token so that it is placed in C and stays in C after being moved.
Therefore, q = 9 9 2 3 9 2 = 1 2 4 4 9 . a = 4 9 and b = 1 2 4 , so a + b = 1 7 3
Problem Loading...
Note Loading...
Set Loading...
Throughout this solution, p i , j will represent the probability that the token was originally placed in the square in the i t h column and j t h row of the chessboard. Because we are looking at a 2 × 1 0 0 chessboard, i ∈ { 1 , 2 , 3 , . . . , 1 0 0 } , j ∈ { 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 5 1 to move to any of its surrounding squares, unless the original square is in column 1 or column 1 0 0 , in which case that probability is 3 1 . Thus, it must be the case that p i , j is the sum of 5 1 (or 3 1 , 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 and p 1 , 2 = b . From the observation above, we have a = 3 1 b + 5 1 p 2 , 1 + 5 1 p 2 , 2 and b = 3 1 a + 5 1 p 2 , 1 + 5 1 p 2 , 2 . Subtracting the second equation from the first yields a − b = 3 1 ( b − a ) → a − b = 0 → 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 = 3 1 a + 3 1 b + 5 1 ( p 2 , 2 + p 3 , 1 + p 3 , 2 ) and p 2 , 2 = 3 1 a + 3 1 b + 5 1 ( p 2 , 1 + p 3 , 1 + p 3 , 2 ) . From these two equations we can show that 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 , . . . , 1 0 0 } , p i , 1 = p i , 2 .
We now take another look at a = 3 1 b + 5 1 p 2 , 1 + 5 1 p 2 , 2 . Using the facts from above, we turn this into a = 3 1 a + 5 2 p 2 , 1 → p 2 , 1 = 3 5 a . Plugging this into p 2 , 1 = 3 1 a + 3 1 b + 5 1 ( p 2 , 2 + p 3 , 1 + p 3 , 2 ) gives 3 5 a = 3 2 a + 5 1 ⋅ 3 5 a + 5 2 p 3 , 1 → p 3 , 1 = 3 5 a = p 2 , 1 . Continuing this process of using p i , 1 to find p i + 1 , 1 (which, we remind ourselves, is the same as p i + 1 , 2 ) gives us that p 1 , 1 = p 1 , 2 = p 1 0 0 , 1 = p 1 0 0 , 2 = a and p 2 , 1 = p 2 , 2 = p 3 , 1 = p 3 , 2 = . . . = p 9 9 , 1 = p 9 9 , 2 = 3 5 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 , as Brilli certainly placed the token on the board. From above, we know that there are 1 9 6 squares which have probability 3 5 a attached to them and 4 which have probability a attached to them. Thus, 1 9 6 ⋅ 3 5 a + 4 ⋅ a = 1 → a = 9 9 2 3 → 3 5 a = 9 9 2 5 .
We can now calculate the probability 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 , . . . , 4 4 ) is 9 9 2 5 for each square in those columns. If the token is originally placed in any of the columns numbered 6 , 7 , . . . , 4 3 , 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 or 4 4 , it can only move to 3 of the 5 surrounding squares if it wants to stay in the "good" columns. There are, of course, 7 6 squares in columns 6 , 7 , . . . , 4 3 and 4 in column 5 and column 4 4 . Thus, q = 9 9 2 5 ( 7 6 ⋅ 1 + 4 ⋅ 5 3 ) = 9 9 2 3 9 2 = 1 2 4 4 9 . Our answer is 4 9 + 1 2 4 = 1 7 3 .