$f(x) = \operatorname{arctan}\left( \frac{1}{x^2 + x + 1} \right)$ and $A = f(1) + f(2) + \cdots + f(21)$. What is the value of $\tan(A)$?
The answer is $\frac{21}{23}$, but I cant solve it. Only thing I have made is recognize that if we call $S(n) = f(1) + f(2) + \cdots + f(n)$, we see the result of $\tan(S(n)) = \frac{n}{n+2}$. So we can prove it by induction. But I wonder is there any other and smarter way to solve this problem.