How do we evaluate $\sum_{k=1}^{\infty} \frac{1}{3k-1}-\frac{1}{3k}$

calculussequences-and-series

We have to evaulate $$\sum_{k=1}^{\infty} \frac{1}{3k-1}-\frac{1}{3k}$$
I have tried to expand it to see some kind of pattern, but there seems to be no obvious one! Then I tried to just mindlessly integrate and after solving the integral $\int_1^{\infty} \frac{1}{3k-1}-\frac{1}{3k} dk$ the answer came to be $\frac{1}{3}\log(\frac{3}{2})$ which contrasts the answer from wolfram alpha by a significant margin which is $\frac{1}{18}(9\log3-\sqrt{3}\pi)$.
I have found problems of similar kind on this site but I am not really able to understand them, specifically, how did this particular sum got converted into a gamma function (they don't seem to be related on the surface).
I have some idea about gamma and beta function but please try to be as detailed as possible (at least for the conversion of the sum into integral part) with your solutions.

Best Answer

I think @ThomasAndrews' comment is worthy of becoming an answer in its own right.

We obtain \begin{align*} \color{blue}{\sum_{k=1}^{\infty}}\color{blue}{\left(\frac{1}{3k-1}-\frac{1}{3k}\right)}&=\sum_{k=1}^{\infty}\int_{0}^1\left(x^{3k-2}-x^{3k-1}\right)dx\\ &=\int_0^1\sum_{k=0}^{\infty}\left(x^{3k+1}-x^{3k+2}\right)dx\tag{1.1}\\ &=\int_{0}^1\left(\frac{x}{1-x^3}-\frac{x^2}{1-x^3}\right)dx\tag{1.2}\\ &\,\,\color{blue}{=\int_{0}^1\frac{x}{1+x+x^2}dx}\tag{1.3} \end{align*}

Comment:

  • In (1.1) we exchange sum and integral and shift the index of the sum to start with $k=0$.

  • In (1.2) we apply the geometric series expansion.

  • In (1.3) we use $1-x^3=(1-x)\left(1+x+x^2\right)$.

We derive from (1.3) by elementary transformations \begin{align*} \color{blue}{I:=\int_{0}^1}&\color{blue}{\frac{x}{1+x+x^2}dx}\\ &=\int_{0}^1\frac{2x+1}{1+x+x^2}dx-\int_{0}^1\frac{1+x}{1+x+x^2}dx\\ &=\ln\left(1+x+x^2\right)\Big|_0^1-I-\int_0^1\frac{dx}{1+x+x^2}\\ &=\ln (3)-I-\int_{0}^1\frac{dx}{\frac{3}{4}+\left(x+\frac{1}{2}\right)^2}\\ &=\ln (3)-I-\frac{4}{3}\int_{0}^1\frac{dx}{1+\left(\frac{2}{\sqrt{3}}\left(x+\frac{1}{2}\right)\right)^2}\\ &=\ln (3)-I-\frac{2\sqrt{3}}{3}\int_{1/\sqrt{3}}^{\sqrt{3}}\frac{du}{1+u^2}\tag{2.1}\\ &=\ln (3)-I-\frac{2\sqrt{3}}{3}\left(\arctan\left(\sqrt{3}\right)-\arctan\left(\frac{1}{\sqrt{3}}\right)\right)\\ &=\ln (3)-I-\frac{2\sqrt{3}}{3}\left(\frac{\pi}{3}-\frac{\pi}{6}\right)\\ &\,\,\color{blue}{=\ln (3)-I-\frac{\pi}{9}\sqrt{3}}\tag{2.2} \end{align*}

Comment:

  • In (2.1) we substitute $ u=\frac{2}{\sqrt{3}}\left(x+\frac{1}{2}\right), du=\frac{2}{\sqrt{3}}dx $ and set the limits of the integral accordingly.

Putting (1.3) and (2.2) together we finally get \begin{align*} \color{blue}{\sum_{k=1}^{\infty}}&\color{blue}{\left(\frac{1}{3k-1}-\frac{1}{3k}\right) =\frac{1}{2}\ln (3)-\frac{\pi}{18}\sqrt{3}} \end{align*}