TITLE: Closed form $\sum_{n=0}^\infty \frac{\cos(n)}{(2n+1)(2n+2)} $
QUESTION [6 upvotes]: Is there a closed form for:
$$\sum_{n=0}^\infty \frac{\cos(n)}{(2n+1)(2n+2)} $$
I know it converges through the direct comparison test, and I'm pretty sure there is a closed form, but I'm not entirely certain what it is.
Here's what I've done so far:
$$\sum_{n=0}^\infty \frac{\cos(n)}{2n+1}-\sum_{n=0}^\infty \frac{\cos(n)}{2n+2} $$
$$\sum_{n=0}^\infty \frac{\cos(n)}{2n+1} = \int_{0}^1\sum_{n=0}^\infty x^{2n}\cos(n)dx = \Re \int_{0}^1 \sum_{n=0}^\infty(x^2e^i)^n dx = \Re \int_{0}^1 \frac{1}{1-e^ix^2}dx = \Re({e^{-\frac{i}{2}}\operatorname{arctanh(e^\frac{i}{2}}))}  $$
$$ \sum_{n=0}^\infty \frac{\cos(n)}{2n+2} = \int_{0}^1\sum_{n=0}^\infty x^{2n+1}\cos(n)dx=\Re\int_{0}^1 x\sum_{n=0}^\infty (x^2e^i)^ndx = \Re \int_{0}^1 \frac{x}{1-e^ix^2}dx=\Re(-\frac{e^{-i}}{2} \ln|1-e^i|)$$
$$\Re({e^{-\frac{i}{2}}\operatorname{arctanh(e^\frac{i}{2}})}+\frac{e^{-i}}{2} \ln|1-e^i|)$$
After plugging all of this in into Wolfram Alpha, I don't get the right answer, however. Where is the mistake? There could be a lot of things wrong.
Edit: I more want to see where my mistake in my work is, rather how to do the problem.

REPLY [2 votes]: For any $z\in\mathbb{C}$ such that $\|z\|\leq 1$ the series $\sum_{n\geq 1}\frac{z^n}{(2n+1)(2n+2)}$ is absolutely convergent. We may notice that
$$ f(w)=\sum_{n\geq 0}\frac{w^{2n+2}}{(2n+1)(2n+2)}=\int_{0}^{w}\int_{0}^{v}\sum_{n\geq 1}u^{2n}\,du\,dv=\int_{0}^{w}\int_{0}^{v}\frac{du}{1-u^2}\,dv $$
is a holomorphic function in the region $\|w\|<1$, where it equals $w\,\text{arctanh}(w)+\frac{1}{2}\log(1-w^2)$.
From
$$ \sum_{n\geq 0}\frac{w^{2n}}{(2n+1)(2n+2)}=\frac{(1+w)\log(1+w)+(1-w)\log(1-w)}{2w^2} $$
we get
$$\sum_{n\geq 0}\frac{\rho^{2n} \cos(n)}{(2n+1)(2n+2)}=\text{Re}\frac{(1+\rho e^{i/2})\log(1+\rho e^{i/2})+(1-\rho e^{i/2})\log(1-\rho e^{i/2})}{2\rho^2 e^{i}} $$
for any $\rho\in(0,1)$. By considering the limit of the RHS as $\rho\to 1^-$ and by invoking the dominated convergence theorem we get
$$ \sum_{n\geq 0}\frac{\cos(n)}{(2n+1)(2n+2)}=\tfrac{1}{2}\cos\tfrac{1}{2}\log\cot\tfrac14+\tfrac12 \cos 1\log\left(2\sin\tfrac12\right)+\tfrac{\pi}{4}\sin\tfrac12+\tfrac{1-\pi}{4}\sin 1. $$
The RHS is approximately $0.513683$.