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