This is LaTeX code:
[latex]
a_n=\left(1+\dfrac{1}{n}\right)^{n+1}
[/latex]