This is LaTeX code:
[latex]
S_{n+1}=\arctan{\frac{n}{n+1}}+\arctan{\frac{1}{2\left(n+1\right)^2}}
[/latex]