This is LaTeX code:
[latex]
f_n=\frac{1}{n}\mathbf{1}_{[0,n]}
[/latex]