Hey thanhloc192.

This looks like a typical Gamblers Ruin type problem, but an even simpler approach would be to ask if the process always terminates.

If you have a non-zero chance of getting a heads, then what does this say about whether the process terminates and if so how does relate to P(X=1) when X is the number of flips when the process terminates?