TeX source:
a_n = \frac{(−1)^nn^2}{n+1}