This is LaTeX code:
[latex]
P(s)=(1-p+ps)^n=p^n(s+\frac{1-p}{p})^n
[/latex]