Eivenvector[Transpose[{{1-p,p,0},{1-p,p*(1-q),p*q},{0,1,0}}]]