bfsof123's blog

By bfsof123, history, 4 weeks ago, In English

In this blog we prove a Ramanujan-type identity:

$$$S(n_1, n_2, n_3) := \sum\limits_{n_1 \in \mathbb{Z}}(-1)^{n_1}\sum\limits_{(n_2, n_3) \in \mathbb{Z}^2}\frac{1}{\sqrt{n_1^2 + (n_2+0.5)^2+(n_3+0.5)^2}\sinh{(\pi\sqrt{n_1^2 + (n_2+0.5)^2+(n_3+0.5)^2})}} = 1$$$. (1)

Magic code

First, we consider a 4D lattice sum:

$$$U(n_1, n_2, n_3, n_4) := \sum\limits_{(n_1, n_2, n_3, n_4) \in \mathbb{Z}^4} \frac{(-1)^{n_1+n_4}}{n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2 + n_4^2}$$$. We will show later that $$$U(n_1, n_2, n_3, n_4)$$$ equals to $$$\pi$$$ (code shown below).

Pi code

Note that the above series converge super slow, and the Python code is also super slow. Be patient please!

For $$$\lambda > 0$$$, $$$\int_{0}^\infty e^{-\lambda x}dx = \frac{1}{\lambda}$$$, therefore $$$U(n_1, n_2, n_3, n_4) = \sum\limits_{(n_1, n_2, n_3, n_4) \in \mathbb{Z}^4} \int_{0}^\infty (-1)^{n_1+n_4} \exp((-n_1^2-(n_2+0.5)^2-(n_3+0.5)^2-n_4^2)x)dx$$$. (2)

By the Poisson summation formula of the theta function (see this),

$$$\sum\limits_{n \in \mathbb{Z}}(-1)^n \exp(-n^2 x) = \sqrt{\frac{\pi}{x}} \sum\limits_{n \in \mathbb{Z}}\exp(\frac{-(n+0.5)^2\pi^2}{x})$$$ (3)

By combining (2) and (3), $$$U$$$ can be written as a Mellin-transform-type integral:

$$$U(n_1, n_2, n_3, n_4) = \sum\limits_{(n_1, n_2, n_3, n_4) \in \mathbb{Z}^4} \sqrt{\pi}\int_{0}^\infty (-1)^{n_1} x^{-0.5} \exp(-(n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2)x - \frac{(n_4+0.5)^2\pi^2}{x})dx$$$. (4)

We then use a famous integral representation of the Modified Bessel functions of the second kind (i.e., $$$K$$$):

$$$M_s[\exp(-ax-\frac{b}{x})] := \int_{0}^\infty x^{s-1}\exp(-ax-\frac{b}{x})dx = 2(\frac{b}{a})^{\frac{s}{2}}K_s(2\sqrt{ab})$$$. (5)

In (5), $$$M_s$$$ denotes the Mellin transform with parameter $$$s$$$. And we note that when $$$s=0.5$$$, $$$K_{0.5}(z)$$$ has a closed-form: $$$K_{0.5}(z) = \sqrt\frac{\pi}{2} \frac{e^{-z}}{\sqrt{z}}$$$.

Then, $$$\int_{0}^\infty x^{-0.5}\exp(-ax-\frac{b}{x})dx = 2(\frac{b}{a})^{0.25} K_{0.5}(2\sqrt{ab}) = 2(\frac{b}{a})^{0.25}\sqrt{\frac{\pi}{2}}\frac{\exp(-2\sqrt{ab})}{\sqrt{2}(ab)^{0.25}} = \sqrt{\frac{\pi}{a}}\exp(-2\sqrt{ab})$$$. (6)

We set $$$a = n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2$$$ and $$$b = (n_4+0.5)^2\pi^2$$$, and

$$$U(n_1, n_2, n_3, n_4) = \sum\limits_{(n_1, n_2, n_3) \in \mathbb{Z}^3} (-1)^{n_1}\frac{\pi}{\sqrt{n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2}}\sum\limits_{n_4 \in \mathbb{Z}} \exp(-\pi |2n_4+1| \sqrt{n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2})$$$. (7)

In (7), the $$$\pi$$$ comes from two places. One $$$\sqrt{\pi}$$$ comes from the Poisson summation formula (Eq.(3)), and the other $$$\sqrt{\pi}$$$ comes from the Bessel function $$$K_{0.5}$$$. $$$\sum\limits_{n_4 \in \mathbb{Z}} \exp(-\pi |2n_4+1| \sqrt{n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2})$$$ is symmetric about $$$n_4 = -0.5$$$. $$$n_4 = 0,1,2,...,\infty$$$ and $$$n_4 = -1,-2,...,-\infty$$$, form two identical geometric series with initial term $$$a_1 := \exp(-\pi \sqrt{n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2})$$$ and common ratio $$$q := \exp(-2\pi \sqrt{n_1^2 + (n_2+0.5)^2 + (n_3+0.5)^2})$$$. Each one contributes $$$\frac{a_1}{1-q}$$$ and they two contribute $$$\frac{2a_1}{1-q} = \frac{1}{\sinh{(\pi\sqrt{n_1^2 + (n_2+0.5)^2+(n_3+0.5)^2})}}$$$ in total, amazing!

Therefore, $$$U(n_1, n_2, n_3, n_4) = \pi S(n_1, n_2, n_3)$$$. It is sufficient to show that $$$U = \pi$$$. Now we check the Zucker1974 paper Exact results for some lattice sums in 2, 4, 6 and 8 dimensions with a scihub link. $$$U(n_1, n_2, n_3, n_4)$$$ is equal to $$$U(2, 2)$$$ (Eq. (2.10)) with $$$s = 1$$$. By checking Table 1 in the paper, $$$U(n_1, n_2, n_3, n_4) = 8\beta(0)\beta(1)$$$, where $$$\beta(s) := \sum\limits_{n=0}^\infty \frac{(-1)^n}{(2n+1)^s}$$$ is the Dirichlet beta function. It is well known that $$$\beta(0) = 0.5$$$ and $$$\beta(1) = \frac{\pi}{4}$$$. Finally, $$$U(n_1, n_2, n_3, n_4) = \pi$$$ and $$$S(n_1, n_2, n_3) = 1$$$.

Related words: Codeforces, lattice sum, Ramanujan, theta function, modular form, integral representation of the Gamma function, Bessel function, hyperbolic sine and hyperbolic cosine (sinh, cosh).

This work is inspired by the Madelung constant.

  • Vote: I like it
  • +96
  • Vote: I do not like it

»
4 weeks ago, # |
  Vote: I like it +71 Vote: I do not like it

why

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

is this what it takes to become candidate master?

»
4 weeks ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

Welcome to our private QQ chat group! You might reach me via QQ number 3381896043, and I would invite you to this private group. In our group we frequently study weird stuff like this qwqaqwqaq.

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Can I have qq if I am not chinese?

    • »
      »
      »
      4 weeks ago, # ^ |
        Vote: I like it +3 Vote: I do not like it

      Of course, you might register an international version qq

      https://qq-international-chat-call.en.download.it/android

      https://play.google.com/store/apps/details?id=com.tencent.mobileqq&hl=en&pli=1

      Because of the GFW in China, the widely used apps like Facebook, Line, Discord are banned in CN. Skype is not banned, but very few people use it. We usually use Wechat or QQ.

      • »
        »
        »
        »
        4 weeks ago, # ^ |
        Rev. 2   Vote: I like it +16 Vote: I do not like it

        Using QQ is a terrible suggestion to someone who doesn't live in PRC and doesn't know Chinese. QQ-international is abandoned by tencent long ago and is not even supported on my device. When I tried to register in Play Store app, I got the following error message:

        I tried to go here to register on a website, and it told me:

        Your mobile phone number XXXXXXXXX is a security risk, please go to mobile QQ to register. If you haven't downloaded mobile QQ, scan the QR code below to download mobile QQ and register.

        Then I had to download the app from https://im.qq.com/, because of course the version in Play store is outdated. Well, and after jumping all these hoops (and also passing Chinese CAPTCHA) I end up having this:

        Meaning that they will not let me register with non-Chinese phone number no matter what, because I got the same error message on like 10 different days I tried to register over the last year. If you really want foreigners to get into Chinese IMs, at least suggest WeChat, it's somewhat possible to register and it actually has an English interface...

»
4 weeks ago, # |
  Vote: I like it +8 Vote: I do not like it

Dude are you gonna be the new adamant.

Btw nice blog. Unfortunately I'm unfamiliar with Fourier transforms and Bessel functions. I'd really like to know how to get this good at math. It's fascinating.