A runner can take a step forward, backward,left and right with equal probability. Find the probability that after $n$ steps they will be just 1 step away from their initial point.
This is what I obtained as the general formula after a series of manipulations.
If the total number of moves is (2n+1) , the total number of different ways is given by
$$4\sum_{r=0}^n\binom {2n+1}{r+1,r,n-r,n-r}=4\sum_{r=0}^n \frac {(2n+1)!}{(r+1)!r!(n-r)!(n-r)!}=4\binom {2n+1}n^2$$ and the probability is given by $$\frac {4\binom {2n+1}n^2}{4^{2n+1}}=\frac {\binom {2n+1}n^2}{4^{2n}}$$
Now if the question was say...
"....after taking $n$ steps they will just be $m$ steps away from their initial point." Could someone help me how would the general formula turn out?