6

I accidentally stumbled on the following regularization of this divergent series:

$$\sum_{n=2}^\infty (-1)^n \log n "=" \frac{1}{2} \log \frac{\pi}{2}$$

I'm not familiar enough with regularization, so I wanted to ask if this result agrees with any other known regularization method?

I derived this result in the following way:

$$\log n=\int_0^\infty \frac{dx}{x} (e^{-x}-e^{-n x})$$

Now consider the function:

$$\sum_{n=2}^\infty (-1)^n (\log n) s^n=\int_0^\infty \frac{dx}{x} \left(e^{-x} \frac{s^2}{1+s}-\frac{s^2 e^{-2 x}}{1+s e^{-x}} \right)$$

$$\sum_{n=2}^\infty (-1)^n (\log n) s^n= \frac{s^2}{1+s}\int_0^\infty \frac{e^{-x}dx}{x} \frac{e^x-1}{e^x+s} $$

The right hand side converges for any $s>0$, and in particular, for $s=1$ we have:

$$\frac{1}{2}\int_0^\infty \frac{e^{-x}dx}{x} \frac{e^x-1}{e^x+1}=\frac{1}{2} \log \frac{\pi}{2}$$

I got the result with Wolfram Alpha, but I'm sure there's a proof somewhere on this site.


There's an interesting corollary here. If we write:

$$\sum_{n=2}^\infty (-1)^n (\log n) s^{n-1}= \frac{s}{1+s}\int_0^\infty \frac{e^{-x}dx}{x} \frac{e^x-1}{e^x+s} $$

And then integrate w.r.t. $s$ from $0$ to $1$, we obtain:

$$\sum_{n=2}^\infty (-1)^n \frac{\log n}{n}= \int_0^\infty \frac{\log(1+e^{-x})-e^{-x} \log 2}{x} dx= \gamma \log 2- \frac{\log^2 2}{2}$$

Yuriy S
  • 32,728
  • It is very interesting indeed. Mathematica gives 0.225791 which excellently agrees with $\frac{1}{2}\ln(\Pi/2)$! – Z Ahmed Jul 19 '19 at 09:45
  • WolframAlpha (online version) says that $\int_0^\infty \frac{dx}{x} \frac{e^x-1}{e^x+1}$ is divergent :( – Zacky Jul 19 '19 at 16:19
  • @Zacky, I forgot a factor, now it's convergent – Yuriy S Jul 19 '19 at 17:15
  • 1
    @ Yuriy S Your nice formula for $\log(n)$ was new to me. After some time of contemplating I came up with the following derivation: we have $\log(n) = \int_1^n \frac{1}{x}, dx$. Writing $\frac{1}{x} = \int_0^\infty e^{-t x},dt$ and interchanging the order of integration gives your formula. – Dr. Wolfgang Hintze Jul 19 '19 at 21:42
  • @Dr.WolfgangHintze, you might be interested in this more general result: https://en.wikipedia.org/wiki/Frullani_integral – Yuriy S Jul 19 '19 at 21:42
  • @Yuriy S Thank you for the hint. – Dr. Wolfgang Hintze Jul 20 '19 at 06:51

3 Answers3

5

We can "calculate" the sum using the Wallis product formula.

Denoting our sum by

$$f = \sum_{n=1}^\infty (-1)^n \log(n)$$

we have

$$f= \log(2) - \log(3) + \log(4) \mp ...$$

and

$$e^f = \frac{2}{3} \frac{4}{5} \frac{6}{7} ...$$

Taking the square gives

$$e^{2f} = \frac{2}{3} \frac{2}{3} \frac{4}{5} \frac{4}{5} \frac{6}{7}...$$

Adding a factor $1$ in the denominator we arrive at

$$e^{2f} = \frac{2}{1} \frac{2}{3} \frac{4}{3} \frac{4}{5} \frac{6}{5} ...$$

But this is the famous Wallis product which has the value $\frac{\pi}{2}$.

Hence we have derived

$$f = \frac{1}{2} \log(\frac{\pi}{2})$$

The "regularization" is hidden somewhere in the sloppy derivation.

Dr. Wolfgang Hintze
  • 13,265
  • 25
  • 49
2

It is the usual $\zeta$-regularization, the same leading to $\sum_{n\geq 1}n "="-\frac{1}{12}$.
For any $s$ with positive real part we have $$ \eta(s)=\sum_{n\geq 1}\frac{(-1)^{n+1}}{n^s}=(1-2^{1-s})\zeta(s)$$ $$ -\eta'(s) = \sum_{n\geq 1}\frac{(-1)^n}{n^s}\log(n)=2^{-s} (\log(4)\zeta(s)-2\zeta'(s) + 2^s\zeta'(s))$$ and $\zeta(0)=-\frac{1}{2}$, $\zeta'(0)=-\log\sqrt{2\pi}$.

Jack D'Aurizio
  • 361,689
1

Using Cesàro summation seems to work. We take the partial average $$ A_k = \sum_{n=2}^k (-1)^n \log(n) = \cdots $$ then we take the mean of these $$ B_m = \frac{1}{m-1}\sum_{k=2}^m A_k $$ if we plot $B_m$ and your constant together there appears to be agreement in the large $m$ limit.

Here is an example in Mathematica: enter image description here

  • 1
    Funny how $ \frac12 \log \frac{\pi}{2}$ already appears in the partial sum, so all the other terms must give $0$ – Yuriy S Jul 19 '19 at 09:55
  • @YuriyS Yes, I can see the two logGamma terms in $A[k]$ cancelling as $k$ gets larger, and then the difference must tend to $\log 2$. – Benedict W. J. Irwin Jul 19 '19 at 10:19
  • @ Benedict W. J. Irwin, I think with a little care, we can prove it, since $\Gamma(n+1/2)$ can be expressed as $\sqrt{\pi} 2^{1-2 n} \Gamma(2n)/ \Gamma(n)$ if I'm not mistaken – Yuriy S Jul 19 '19 at 10:25
  • 2
    Abel and Dirichlet regularization works too:{Sum[(-1)^n Log[n], {n, 2, Infinity}, Regularization -> "Abel"] // FunctionExpand // FullSimplify, Sum[(-1)^n Log[n], {n, 2, Infinity}, Regularization -> "Dirichlet"] // FullSimplify} – Mariusz Iwaniuk Jul 19 '19 at 16:24