TITLE: Evaluate $\sum_{n=1}^{\infty} \left( \frac{\pi}{6} - \int_{0}^{n} \frac{\sqrt{3} (2x+1)}{(x^2+x+3)^2+3} dx \right)$
QUESTION [7 upvotes]: While I was taking some mathematics competition, I faced following problem, but I couldn't solve it.
The problem was:

Let $\displaystyle f(x) = \frac{\sqrt{3} (2x+1)}{(x^2+x+3)^2+3}$. Evaluate the sum:
  $$\sum_{n=1}^{\infty} \left( \frac{\pi}{6} - \int_{0}^{n} f(x) dx  \right).$$

I tried to solve this problem by first evaluating integral of $f$.
Then, I obtained following sum, but I couldn't evaluate it.
$$ \sum_{n=1}^{\infty} \left( {\pi \over 2} - \arctan({n^2+n+3 \over \sqrt{3}}) \right)$$
It would be very thankful if someone give me hint or solution to this problem.
Note: This problem is from Korean College Mathematics Competition.

REPLY [9 votes]: You may avoid the evaluation of the arctan series. Note that
$$f(x) = \frac{\sqrt{3}(2x+1)}{(x^2+x+3)^2+3}=g(x)-g(x+1)$$
where
$$g(x)=\frac{\sqrt{3}}{x^2+3}.$$
Moreover
$$G(x)=\int_0^x g(t)\,dt=\arctan\left(\frac{x}{\sqrt{3}}\right).$$
Hence, since $G(1)=\frac{\pi}{6}$, it follows that
$$\begin{align}
\sum_{n=1}^{\infty} \left( \frac{\pi}{6} - \int_{0}^{n} f(x)\, dx  \right)&=
\sum_{n=1}^{\infty}(G(1)- \int_{0}^{n} (g(x)-g(x+1)) dx) \\
&=\sum_{n=1}^{\infty} (G(1)-(G(n)-(G(n+1)-G(1)))\\
&= \sum_{n=1}^{\infty}(G(n+1)-G(n))\\
&=\lim_{n\to +\infty}G(n)-G(1)=\frac{\pi}{2}-\frac{\pi}{6}=\frac{\pi}{3}.\end{align}$$