This is LaTeX code:
[latex]
\displaystyle f_X(x)=\sum_{a_i\le x} p_i
[/latex]