Daniel is standing on the origin in the coordinate space . He walks either up, down, left, right, forwards, or backwards one unit each second, each with equal probability. After 6 seconds, the probability he is back on the origin can be expressed as for positive coprime integers . Find .
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.
Let's consider A = ( a 1 , a 2 , . . . , a 6 ) the vector representing the random walk. Each step can be done going up, down, left, right, forwards or backwards. So a i ∈ { up , down , left , right , forw , back } , i ∈ { 1 , 6 } . Let's indicate, for each a i step, its opposite movement − a i . For example if a i = down , than − a i = up and viceversa.
It's clear that for a generic walk A is it possible to come back at the origin at the 6th step only if, for each a i , there is a − a 1 in A . So, over all the 6 6 possible walk, the ones we are interested in have an opposite movement for each movement. Here's a simple MATLAB code to count the k occurrences
where k − 1 = 1 8 6 0 . Eventually
6 6 1 8 6 0 = 4 6 6 5 6 1 8 6 0 = 3 8 8 8 1 5 5 = q p .
So p = 1 5 5 .