
\[a_{n}=(2n+1)\left(1-(-1)^{n}+\psi\left(n+1\right)-\psi\left(1\right)\right),\]