Let (Xn)n≥1 be a sequence of i.i.d. random variables taking values in the set {A,B,C}, with:
P(X1=A)=pA,P(X1=B)=pwhere pA,pB,pC∈[0,1] and (with and ).
The experiment is repeated until either A or B is observed. Calculate the probability that A appears before B.