TITLE: Random walk with 3 cases.
QUESTION [8 upvotes]: Let the walking start be at $x=0$. With probability $p_1$ new $x=x+1$, with probability $p_2$: $x=x-1$ and with probability $1-p_1-p_2 \geq 0$ walking ends.
The question is what is the probability of ending on point $n$.
I've computed it numerically and getting something close to normal distribution with peak at zero, but with different dispersion on sides of $x=0$. How to get it analytically? 
The provided answer seems ok, but I hope I can find some smooth function for it. Maybe with another type of solution.
Upd: my idea of solution. 
$$P_{n+1} (x) = p_1 P_{n} (x-\delta x) + p_2 P_{n} (x + \delta x)$$
$$P_{n+1} (x) - P_{n} (x) = p_1 [P_n(x-\delta x) - P_n(x)] + p_2 [P_n(x+\delta x) - P_n(x)] - q\cdot P_{n}(x)$$
Dividing by $\delta n$ and $\delta x$ getting something like:
$$\frac{\partial P(n,x)}{\partial n}= \frac{\delta x}{\delta n}\left[ (p_2 + p_1) \frac{\partial P(n,x)}{\partial x} - (1 - p_2 - p_1)\cdot P(n,x)\right]$$
Solving it leads to something like this:
$$P(n,x) = Ae^{\frac{-q x}{p_1 + p_2}}(n + \frac{x}{p_1 + p_2})$$
I'm not sure yet  if it means something.

REPLY [6 votes]: We derive a closed formula and show the following is valid for $n\geq 0$
  \begin{align*}
\sum_{k=0}^\infty\binom{n+2k}{k}x^k&=
\frac{1}{\sqrt{1-4x}}
\left(\frac{1-\sqrt{1-4x}}{2x}\right)^n\tag{1}\\
\end{align*}

Note that 
\begin{align*}
c(x)=\frac{1-\sqrt{1-4x}}{2x}=1+x+2x^2+5x^3+14x^4+\cdots
\end{align*}
is the generating function of the ubiquitous Catalan numbers.
We use the coefficient of operator $[w^k]$ to denote the coefficient of $w^k$ in a series. This way we can write e.g.
\begin{align*}
[w^k](1+w)^n=\binom{n}{k}
\end{align*}

We obtain
  \begin{align*}
\color{blue}{\sum_{k=0}^{\infty}\binom{n+2k}{k}x^k}
&=\sum_{k=0}^\infty[w^{k}](1+w)^{n+2k}x^k\tag{2}\\
&=[w^0](1+w)^n\sum_{k=0}^\infty\left(\frac{x(1+w)^2}{w}\right)^k\tag{3}\\
&=[w^0]\frac{(1+w)^n}{1-\frac{x(1+w)^2}{w}}\tag{4}\\
&=-[w^{-1}]\frac{(1+w)^n}{x+(2x-1)w+xw^2}\\
&=-[w^{-1}]\frac{\left(1+w\right)^n}{x(w-w_0(x))(w-w_1(x))}\tag{5}\\
&=\frac{\left(1+w_0(x)\right)^n}{x(w_1(x)-w_0(x))}\tag{6}\\
&\color{blue}{=\frac{1}{\sqrt{1-4x}}\left(\frac{1-\sqrt{1-4x}}{2x}\right)^n}\tag{7}
\end{align*}
  and the claim (1) follows.

Comment:

In (2) we apply the coefficient of operator.
In (3) we use the linearity of the coefficient of operator and apply the rule
\begin{align*}
[w^{p+q}]A(w)=[w^p]w^{-q}A(w)
\end{align*}
In (4) we apply the geometric series expansion.
In (5) we represent the denominator with poles $w_0(x)$ and $w_1(x)$.
\begin{align*}
w_0(x)&=\frac{1-\sqrt{1-4x}}{2x}-1\tag{8}\\
w_1(x)&=\frac{1+\sqrt{1-4x}}{2x}-1\\
\end{align*}
In (6) we calculate the residual of the simple pole at $w=w_0(x)$ using
\begin{align*}
\operatorname{res}_{w=a}f(w)=\lim_{w\to a}(w-a)f(w)
\end{align*}
In (7) we use the representation from (8).