At a famous scientific laboratory, a mouse is stuck in a (infinitely large) three dimensional lattice. As scientists have injected it with experimental drugs, the mouse is extremely groggy and thus has a uniform probability of moving to any of the 6 adjacent cells (up, down, left, right, front, back).
What is the probability that after its sixth move, the mouse is back at its starting cell?
Give your answer to 5 decimal places.
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.
Almost exactly what I did, but instead of ABCDEF I decided to group A and B, C and D, E and F. In order to end up at (0,0,0) you must have sets of A and B, C and D, or E and F, I shall refer to the sets as A, B, C (did it this way) The 3 sets can be in the form of: A,B,C (all different) - 6! A,B,B (2 same 1 diff) - 6! 6/4 A,A,A (all same) - 6! 3/(3!*3!) Summing up and dividing we get the same answer.
awesome , just classic
Denote by P n ( i , j , k ) the probability that the walker is at position ( i , j , k ) in the lattice after n moves. Then the rule governing the walker's motion implies that:
P n + 1 ( i , j , k ) = 6 1 ( P n ( i + 1 , j , k ) + P n ( i − 1 , j , k ) + P n ( i , j + 1 , k ) + P n ( i , j − 1 , k ) + P n ( i , j , k + 1 ) + P n ( i , j , k − 1 ) )
Define Q n ( x , y , z ) = ∑ i , j , k = − n n P n ( i , j , k ) x i y j z k
with Q 0 = 1 . Consequently, Q n ( x , y , z ) = 6 n 1 ( ( x + x − 1 ) + ( y + y − 1 ) + ( z + z − 1 ) ) n
P 6 ( 0 , 0 , 0 ) represents the probability that the walker returns to the origin on the sixth step, and is the constant term in Q 6 ( x , y , z ) . To find that term, expand Q 6 using the trinomial theorem as
Q 6 ( x , y , z ) = 6 6 1 ∑ n 1 + n 2 + n 3 = 6 n 1 ! n 2 ! n 3 ! 6 ! ( x + x − 1 ) n 1 ( y + y − 1 ) n 2 ( z + z − 1 ) n 3
where n 1 , n 2 , n 3 are all even, in which case the binomial theorem implies that the constant term is ( n 1 / 2 n 1 ) ( n 2 / 2 n 2 ) ( n 3 / 2 n 3 ) . Equivalently,
Q 6 ( x , y , z ) P 6 ( 0 , 0 , 0 ) = 6 6 6 ! m 1 + m 2 + m 3 = 3 ∑ ( 2 m 1 ) ! ( 2 m 2 ) ! ( 2 m 3 ) ! ( x + x − 1 ) 2 m 1 ( y + y − 1 ) 2 m 2 ( z + z − 1 ) 2 m 3 = 6 6 6 ! m 1 + m 2 + m 3 = 3 ∑ ( 2 m 1 ) ! ( 2 m 2 ) ! ( 2 m 3 ) ! 1 ( m 1 2 m 1 ) ( m 2 2 m 2 ) ( m 3 2 m 3 ) = 6 6 6 ! m 1 + m 2 + m 3 = 3 ∑ ( m 1 ! ) 2 ( m 2 ! ) 2 ( m 3 ! ) 2 1 .
Calculating this sum shows
P 6 ( 0 , 0 , 0 ) = 6 6 6 ! ⋅ 1 2 3 1 = 3 8 8 8 1 5 5 ≈ 0 . 0 3 9 8 7 .
Can you explain another way of arriving at the formula for P k ( 0 , 0 , 0 ) directly?
For lack of being able to include a labeled 3D picture, there's a lot of words even though there are very few steps in this method.
For a geometric approach, imagine the set of all cells the mouse may move to in any 3 moves. If you know each of these points, and the number of way to get to each one (and thus return) you've got the solution!
The trick is that due to symmetry, there are only 4 different types or 'groups' of points. Begin with moving 3 times, all in a single direction. (i.e. up, up, up)
*You may do this in each of the 6 directions. These 6 cells can be seen as vertices that form a diamond. These vertices are 1 of the 4 'groups' of points in the diamond, in that each of the 6 vertices have only 1 way of being reached, and returned from. (i.e., Left, Left, Left, right right right.) So the 6 vertices contain only 6 x 1 = 6 total paths.
*Next we can consider the edges of the diamond, or the cells forming a line between each vertex. There are 24 of them in all, and 3 ways to reach each one. It also follows that there are 3 ways to return from each one, or that there are 9 different ways of going to one of these 24 cells and returning. So these 24 cells contain 24 x 3^2 = 216 paths
*The third group of symmetrical cells are in the 'surface' of the diamond. If we think of the diamond as two square pyramids base to base, there is 1 of these cells in the center of each of the 8 faces of the pyramids. There are 6 ways of reaching them (in 3 moves, remember!) and thus 6^2 ways of reaching and returning from them. So these 8 cells contain 8 x 6^2 = 288 paths
*The final group are the 6 cells directly adjacent to the starting position. There are 15 ways of reaching each of these 6 cells in 3 moves. (Counting this is the only difficult part of this method, once you see the diamond!) So there are 15^2 unique paths to and from each of these 6 cells, meaning this group has 6 x 15^2 = 1350 paths.
Now add them all together and divide by the number of all possible paths, 6^6.
6 + 216 + 288 + 1350 = 1860
1860/6^6 = WEEEEE geometric combinatorics
nice solution @atul keep it up!!
please can you explain how this problem can be done using generating function.I tried but got wrong answer
this is a pretty cool solution!, i did it the long way...
Six moves, choices are u, d, l, r, f, b. All moves in every direction must cancel out. Thus:
Move in 1 dimension: choose 3 x a and 3 x c out of six moves: ( 3 6 ) = 2 0 , where a, c is u, d or l, r or f, b. This makes 2 0 × 3 = 1 0 × 6 possible trajectories.
Move in two dimensions: choose 2 x a and 2 x c in one dimension and 1 x e and 1 x g in another dimension, out of 6 moves: ( 2 , 2 , 1 , 1 6 ) = 6 ! / 2 ! / 2 ! / 1 ! / 1 ! = 1 8 0 where there are 6 combinations of dimensions to take for a, c, e, g. This makes 1 8 0 × 6 possible trajectories.
Move in three dimensions: choose 1 of each u, d, l, r, f and b moves: 6 ! = 1 2 0 × 6 possible trajectories.
Totalling, dividing by the total nr of moves 6 6 gives 6 6 ( 1 0 + 1 8 0 + 1 2 0 ) 6 = 6 5 3 1 0 which gives ≈ 0 . 0 3 9 9
Let Up, Right, and Forward be the "positive" directions, and let the others be negative. We need to count the number of sequences of 6 moves that get us back to the start. Such a sequence must contain three positive moves and three negative moves, so there are first of all ( 3 6 ) ways to assign positives and negatives.
Now, consider the three positive moves. If x , y , z are the three directions, the three positive moves will have one of the following forms: x x x , x x y , or x y z .
For the pattern x x x , there are 3 ways to choose which direction "x" represents, but all orders are the same. The three negative moves must be the opposite of the three positive moves, so there are 3 ways total in this case.
For the pattern x x y , there are 3 directions to choose for what "x" represents, then 2 directions remaining to choose for what "y" represents. Then, there are 3 ways of ordering the positive moves ( x x y , x y x , y x x ), and similarly 3 orders for the negative moves, for a total of 3 ⋅ 2 ⋅ 3 ⋅ 3 = 5 4 possibilities.
For the pattern x y z , we use all three directions, so we don't need to choose which directions are represented by which letter. However, there are 6 ways of ordering the three letters, and 6 ways of ordering the negative moves also, for 6 ⋅ 6 = 3 6 total possibilities.
There are 6 6 moves altogether, so the answer is 6 6 ( 3 6 ) ( 3 + 5 4 + 3 6 ) = 6 6 2 0 ⋅ 9 1 = 6 5 3 1 0 ≈ 0 . 0 3 9 8 6 6 .
Typo: the 91 should be a 93.
Starting from (0, 0, 0) the mouse moves 1 unit in the positive or negative direction of x, y, or z axis at each turn.
The probability = {Constant i.e. the coefficient of (x^0) (y^0) (z^0) in (x + y + z + 1/x + 1/y + 1/z)^6}/(6^6) = 1860/46656 = 155/3888 = 0.03986625514403292181069958847737
Consider the generating function f ( x , y , z ) = ( x + x 1 + y + y 1 + z + z 1 ) 6 . The constant term is 1860 after tedious expansion. Hence the probability is 6 6 1 8 6 0 = 0 . 0 3 9 8 6 6 . . . hence the answer.
Firstly we must realise that there are 3 different axes along which the mouse can move. Whichever way the mouse moves, the positive movement along an axis has to equal the negative movement along the axis.
Hence, let's label any positive movement along the x axis as x , and any negative movement as − x , and do the same for y and z.
There are three distinct cases to address - if the mouse moves along 1 axis only, if he moves along two, and if he moves along all three.
If he moves along just one, then there is only one way for him to do it, x + x + x − x − x − x . There are 3 ! × 3 ! 6 ! = 2 0 ways of doing this. 2 0 x 3 = 6 0 (to take into account the other 2 axes).
So there are 60 ways of doing it this way.
The second case is if the mouse moves along just two axes. Using the same logic as above, we realise that there is also only one way in which he can do this x + x − x − x + y − y . There are 6 ways of arranging x and y and z in the above form.
The total ways in which any version of x + x − x − x + y − y can be arranged is 2 ! × 2 ! 6 ! = 1 8 0 .
So there are 1 8 0 × 6 = 1 0 8 0 ways of doing it with movement along two dimensions.
The third distinct case is movement along all three dimensions. Again, there is only one way in which to do this x − x + y − y + z − z , which can be arranged in 6 ! = 7 2 0 ways.
So the total ways of moving back to the original spot are 7 2 0 + 1 0 8 0 + 6 0 = 1 8 6 0 .
The total number of possible moves are 6 6 .
So the probability of that happening is 6 6 1 8 6 0 = 0 . 0 3 9 8 6 6 2 5 5 1 4
mouse moves in only +/-x, +/-y, +/-z directions. to come back, it has to do equal number of +ve or -ve moves in all axes. May be all +/- 3 in same axes, or +/-2 in one and +/-1 in another or +/-1 in all 3 axes first case in any axes gives 6!/(3!3!) = 20 for all 3 axes 3*20 = 60 in 2nd case 6 *(6!/2!2!) 3rd case 6! Total 1860 out of 46656 cases
This answer might be a little too big, but I like to consider it comprehensive.
Notation used for the solution:
Basic Ideas/Formulae used for the actual solution:
Solution
The total possible movements possible in 6 moves with 6 choices in each move is 6 × 6 × . . . 6 × 6 = 6 6 … ( I )
The required number of moves is calculated below:
Any solution sequence can be classified into 3 types:
We will calculate the number of ways in which the above movements can be made while returning to the original position using "Idea no. 1" (seen above)
1.Moving along just one axis
An axes can be chosen in ( 1 3 ) ways. After choosing an axes (say x − a x i s )we have to arrange + x and − x in such a way that they balance out meaning 3 + x ′ s and 3 − x ′ s . Now number of ways of arranging 6 x ′ s of which 3 are alike (the 3 + x ′ s ) and another 3 are alike is given by 3 ! 3 ! 6 ! (using "Idea no. 2" (seen above))
So total number of ways of returning to starting point while moving along just one axis is \mathrm\large\large\boxed{{3 \choose 2} \times \frac{6!}{3!3!}\quad\dots\quad (II)}
2.Moving along two axes
Two axes can be chosen in ( 2 3 ) ways. After choosing two axes (say x − a x i s and y − a x i s ) they can be arranged in the manner + x − x + y − y + y − y where one of the two selected axes repeats twice(here y a x e s ), so this axis can be chosen in ( 1 2 ) ways. Now the number of ways of chosing axes is same as number of ways of arranging 6 objects of which 2 are alike(the 2 + y ′ s ) another 2 are alike(the 2 − y ′ s ) and the remaining 2 are distinct( + x and − x ) which is 2 ! 2 ! 6 !
So total number of ways of returning to starting point while moving along only two axes is \mathrm\large\large\boxed{{3 \choose 2}\times{2 \choose 1}\times {\frac{6!}{2!2!}}\quad\dots\quad (III)}
3.Moving along all the three axes
Three axes can be chosen in ( 3 3 ) or 1 way. Further any sequence in this category will be a permutation of + x − x + y − y + z − z . So number of ways of arranging these 6 objects is 6 ! .
So total number of ways of returning to starting point while moving along all the three axes is \mathrm\large\large\boxed{6!\quad\dots\quad (IV)}
Finally the probability of returning to the starting point is
\mathrm\large\large{\frac{number\ of\ ways\ of\ returning\ to\ starting\ point}{total\ number\ of\ ways\ possible\ in\ 6\ moves}\ = \frac{II\ +\ III\ +\ IV}{I}\ = \frac{1860}{6^6}}
= 0 . 0 3 9 8 6 6 …
Problem Loading...
Note Loading...
Set Loading...
There is a total of 6^6 distinct paths (6 steps, 6 choices each).
To be back at the starting cell, we need all of the following:
Using 3-D coordinates, the starting point would be (x,y,z) = (0,0,0)
Let
The possible ways of moving back to the starting point are (then considering ordered ways):
Total number of possible ways to get back to starting cell = 1860
Total number of distinct paths after 6 steps = 6^6 = 46656
Probability of getting back = 1860/46656 = 0.039866