I was wondering about the probability that an asymmetric random walk will ever come back where it started. Trying to take a cue from this answer (which solves it for the symmetric case). Suppose the walk starts at $0$ and goes forward one step with probability $p$ and backwards one step with probability $1-p$. Further, let $P$ be the probability it will ever come back to $0$, $P_1$ the probability it'll ever hit $0$ if it starts at $1$ and $P_{-1}$ the probability it'll hit $0$ starting at $-1$. We have:
$$P=p P_1+(1-p)P_{-1} \tag{1}$$
In general, $P_x$ is the probability of hitting $0$ starting at $x$. We get:
$$P_1 = pP_2+(1-p)$$ But, if we're at $2$, we need to go back one step (probability $P_1$ due to stationarity) and then repeat the feat. So,
$$P_1 = p P_1^2+(1-p)$$
Solving this quadratic equation gives us that either $P_1 = 1$ or $P_1=\frac{1-p}{p}$.
Similarly we get $P_{-1} = 1$ or $P_{-1} = \frac{p}{1-p}$.
We're interested in plugging these into equation (1) and getting $P$. And there seem to be four ways to do this. If we choose $P_1 = P_{-1} = 1$, we get that $P$ must be $1$. If we choose $P_1 = \frac{1-p}{p}$ and $P_{-1} = \frac{p}{1-p}$, we again get $P=1$. The other two ways produce expressions that aren't guaranteed to be less than $1$ ($2p$ and $2(1-p)$). This seems to suggest that the walk will always return where it started.
But then we know that when $p=1$, it will never return ($P=0$). The only way to get this result is to choose $P_1 = \frac{1-p}{p}$ and $P_{-1}=1$ (resulting in $P=2(1-p)$). So how do I know (for a given value of $p$), which combination of solutions to choose?
All this suggests $P=\min(2p,2(1-p))$. But I can't think of a solid argument for this.