This is LaTeX code:

[latex]
\mathbb{P}(X = k) = \dfrac{2 k - 1}{n^2}
[/latex]