Ramanujan's Papers
On certain infinite series
Messenger of Mathematics, XLV, 1916, 11 – 15
1. This paper is merely a continuation of the paper on ``Some definite
integrals'' published in this Journal1.
It deals with some series which
resemble those definite integrals not merely in form but in many other
respects. In each case there is a functional relation. In the case of the
integrals there are special values of a parameter for which the integrals may
be evaluated in finite terms. In the case of the series the corresponding
results involve elliptic functions.
2. It can be shewn, by the theory of residues, that if $\alpha$ and $\beta$
are real and $\alpha \beta = \frac{1}{4} \pi^2$, then
\begin{eqnarray}
&&\frac{\alpha}{(\alpha + t) \cosh \alpha} - \frac{3 \alpha}{(9\alpha + t)
\cosh 3 \alpha} + \frac{5 \alpha}{(25 \alpha + t) \cosh 5 \alpha} - \cdots\nonumber\\
&+& \frac{\beta}{(\beta - t) \cosh \beta} - \frac{3 \beta}{(9\beta-t) \cosh 3
\beta} + \frac{5 \beta}{(25 \beta - t) \cosh 5 \beta} - \cdots\nonumber\\
&=& \frac{\pi}{4 \cos \sqrt{(\alpha t)} \cosh \sqrt{(\beta t)}}.
\end{eqnarray}
Now let
\begin{eqnarray}
F(n) &=& \left\{\frac{\alpha e^{i n \alpha}}{\cosh \alpha} - \frac{3
\alpha e^{9 i n \alpha}}{\cosh 3 \alpha} + \frac{5 \alpha
e^{25 i n \alpha}}{\cosh 5 \alpha} - \cdots \right\}\nonumber\\
&&-\left\{\frac{\beta e^{- i n \beta}}{\cosh \beta} - \frac{3 \beta e^{- 9 i
n \beta}}{\cosh 3 \beta} + \frac{5 \beta e^{-25 i n \beta}}{\cosh 5 \beta} -
\cdots \right\}
\end{eqnarray}
Then we see that, if $t$ is positive,
\begin{eqnarray}
\int\limits^\infty_{0} e^{-2 tn} F(n) dn = \frac{\pi i}{4 \cosh \{(1-i)
\sqrt{(\alpha t})\} \cosh \{(1+i) \sqrt{(\beta t)}\} }
\end{eqnarray}
in virtue of (1). Again, let
\begin{eqnarray}
f(n) &=& - \frac{1}{2n} \sqrt{\left(\frac{\pi}{2n}\right)} \sum \sum
(-1)^{\frac{1}{2}(\mu + \nu)} \{\mu (1+i) \sqrt{\alpha} - \nu (1-i)
\sqrt{\beta}\} \nonumber\\
&&\times e^{-(\pi \mu \nu - i \mu^2 \alpha + i \nu^2 \beta)/ 4 n} \quad (\mu
= 1, 3, 5, \ldots ; \nu = 1, 3, 5, \ldots).
\end{eqnarray}
Then it is easy to shew that
\begin{eqnarray}
\int\limits^\infty_0 e^{-2tn} f(n) dn = \frac{\pi i}{4 \cosh \{(1-i)
\sqrt{(\alpha t)}\} \cosh \{(1+i) \sqrt{(\beta t)}\}}.
\end{eqnarray}
Hence, by a theorem due to Lerch
2, we obtain
\begin{eqnarray}
F(n) = f(n)
\end{eqnarray}
for all positive values of $n$, provided that $\alpha \beta = \frac{1}{4}
\pi^2$. In particular, when $\alpha = \beta = \frac{1}{2} \pi$, we have
\begin{eqnarray}
\frac{\sin \frac{1}{2} \pi n}{\cosh \frac{1}{2} \pi} &-& \frac{3 \sin
\frac{9}{2} \pi n}{\cosh \frac{3}{2} \pi} + \frac{5 \sin \frac{25}{2} \pi
n}{\cosh \frac{5}{2} \pi} - \cdots\nonumber\\
&=&-\frac{1}{4n \sqrt{n}} \sum \sum (-1)^{\frac{1}{2} (\mu + \nu)} e^{- \pi
\mu \nu /4n}\nonumber\\
&&\qquad\left[ (\mu + \nu) \cos \frac{\pi (\mu^2 - \nu^2)}{8n} + (\mu - \nu) \sin
\frac{\pi(\mu^2 - \nu^2)}{8n} \right]\nonumber\\
&&\hspace{6cm}(\mu = 1,3,5, \ldots; \nu = 1,3,5, \ldots)
\end{eqnarray}
for all positive values of $n$. As particular cases of
(7), we have
\begin{eqnarray}
\frac{\sin (\frac{1}{2} \pi/a)}{\cosh \frac{1}{2} \pi} &-& \frac{3
\sin (\frac{9}{2} \pi/a)}{\cosh \frac{3}{2} \pi} + \frac{5 \sin
(\frac{25}{2} \pi /a)}{\cosh \frac{5}{2} \pi} - \cdots\nonumber\\
&&=\frac{1}{4} a \sqrt{a} \left(\frac{1}{\cosh \frac{1}{4} \pi a} -
\frac{3}{\cosh \frac{3}{4} \pi a} + \frac{5}{\cosh \frac{5}{4} \pi a} - \cdots
\right)\nonumber\\
&&= \frac{1}{2} a \sqrt{a} (e^{- \frac{1}{16} \pi a} - e^{-\frac{9}{16} \pi a} -
e^{-\frac{25}{16} \pi a} + e^{-\frac{49}{16} \pi a} + \cdots)^4,
\end{eqnarray}
if $a$ is a positive even integer; and
\begin{eqnarray}
\frac{\sin(\frac{1}{2} \pi/a)}{\cosh \frac{1}{2} \pi} &-& \frac{3
\sin(\frac{9}{2} \pi/a)}{\cosh \frac{3}{2} \pi} + \cdots\nonumber\\
&&= \frac{1}{2} a \sqrt{a} \left(\frac{\cosh \frac{1}{4} \pi a}{\cosh
\frac{1}{2} \pi a} +
\frac{3\cosh \frac{3}{4} \pi a}{\cosh \frac{3}{2} \pi a} - \frac{5\cosh
\frac{5}{4} \pi a}{\cosh \frac{5}{2} \pi a} - \frac{7\cosh
\frac{7}{4} \pi a}{\cosh \frac{7}{2} \pi a}+\cdots
\right) ,
\end{eqnarray}
if $a$ is a positive odd integer; and so on.
3. It is also easy to shew that if $\alpha \beta = \pi^2$, then
\begin{eqnarray}
&&\left\{\frac{\alpha}{(\alpha+t)\sinh \alpha} - \frac{2 \alpha}{(4 \alpha
+ t) \sinh 2 \alpha} + \frac{3 \alpha}{(9\alpha + t)\sinh 3 \alpha} - \cdots
\right\}\nonumber\\
&&\hspace{2cm}-\left\{ \frac{\beta}{(\beta-t)\sinh \beta} - \frac{2 \beta}{(4 \beta-t)
\sinh 2 \beta} + \frac{3\beta}{(9\beta - t)\sinh 3 \beta} - \cdots \right\}\nonumber\\
&&\hspace{2cm}= \frac{1}{2t} - \frac{\pi}{2 \sin \sqrt{(\alpha t)} \sinh \sqrt{(\beta t)}}.
\end{eqnarray}
From this we can deduce, as in the previous section, that if $\alpha \beta =
\pi^2$, then
\begin{eqnarray}
&&\frac{\alpha e^{i n \alpha}}{\sinh \alpha} - \frac{2 \alpha e^{4 i n
\alpha}}{\sinh 2 \alpha} + \frac{3 \alpha e^{9 i n \alpha}}{\sinh 3 \alpha}
- \cdots
+ \frac{\beta e^{-i n \beta}}{\sinh \beta} - \frac{2 \beta e^{-4 i n
\beta}}{\sinh 2 \beta} + \frac{3 \beta e^{-9 i n \beta}}{\sinh 3 \beta} -
\cdots\nonumber\\
&&\hspace{2cm}= \frac{1}{2} - \frac{1}{n} \sqrt{\left(\frac{\pi}{2n}\right)}
\times \sum \sum \{\mu (1-i) \sqrt{\alpha} + \nu (1+i) \sqrt{\beta}\} e^{-(2
\pi \mu \nu - i \mu^2 \alpha + i \nu^2 \beta)/4n}\nonumber\\
&&\hspace{6cm}(\mu = 1,3,5, \ldots; \nu = 1,3,5, \ldots)
\end{eqnarray}
for all positive values of $n$. If, in particular, we put $\alpha=\beta=\pi$, we obtain
\begin{eqnarray}
\frac{1}{4 \pi} &-& \frac{\cos \pi n}{\sinh \pi} + \frac{2 \cos 4 \pi
n}{\sinh 2 \pi} - \frac{3 \cos 9 \pi n}{\sinh 3 \pi} + \cdots\nonumber\\
&&= \frac{1}{2n \sqrt{(2n)}} \sum\sum e^{-\pi \mu \nu/2n} \left\{(\mu+\nu)
\cos \frac{\pi(\mu^2 -\nu^2)}{4n}\right.
\left. + (\mu - \nu) \sin \frac{\pi(\mu^2 - \nu^2)}{4n}\right\}\nonumber\\
&&\hspace{7cm}(\mu = 1,3,5, \ldots; \nu = 1,3,5, \ldots)
\end{eqnarray}
for all positive values of $n$. Thus, for example, we have
\begin{eqnarray}
\frac{1}{4 \pi} &-& \frac{\cos(2 \pi/a)}{\sinh \pi} + \frac{2 \cos(8
\pi/a)}{\sinh 2 \pi} - \frac{3 \cos(18 \pi/a)}{\sinh 3 \pi} + \cdots\nonumber\\
&&= \frac{1}{8} a \sqrt{a} \left(\frac{1}{\sinh \frac{1}{4} \pi a} +
\frac{3}{\sinh \frac{3}{4} \pi a} + \frac{5}{\sinh \frac{5}{4}\pi a} + \ldots
\right)\nonumber\\
&&= \frac{1}{4} a \sqrt{a} (e^{-\frac{1}{16} \pi a} + e^{- \frac{9}{16}\pi a} +
e^{-\frac{25}{16} \pi a} + e^{-\frac{49}{16} \pi a} + \cdots)^4,
\end{eqnarray}
if $a$ is a positive even integer; and
\begin{eqnarray}
\frac{1}{4 \pi} &-& \frac{\cosh (2 \pi/a)}{\sinh \pi} + \frac{2
\cosh(8\pi/a)}{\sinh 2 \pi} - \cdots\nonumber\\
&&= \frac{1}{4} a \sqrt{a} \left(\frac{\sinh \frac{1}{4} \pi a}{\cosh
\frac{1}{2} \pi a} -
\frac{3\sinh \frac{3}{4} \pi a}{\cosh \frac{3}{2} \pi a} - \frac{5\sinh
\frac{5}{4} \pi a}{\cosh \frac{5}{2} \pi a} + \frac{7\sinh
\frac{7}{4} \pi a}{\cosh \frac{7}{2} \pi a}+\cdots
\right)
\end{eqnarray}
if $a$ is a positive odd integer.
4. In a similar manner we can shew that, if $\alpha \beta = \pi^2$, then
\begin{eqnarray}
&&\frac{\alpha e^{i n \alpha}}{e^{2\alpha}-1} + \frac{2 \alpha e^{4 i n
\alpha}}{e^{4\alpha}-1} + \frac{3 \alpha e^{9 i n \alpha}}{e^{6 \alpha}-1} +
\cdots + \frac{\beta e^{-i n \beta}}{e^{2\beta}-1} + \frac{2\beta e^{-4 i n
\beta}}{e^{4 \beta}-1} + \frac{3 \beta e^{-9 i n \beta}}{e^{6 \beta}-1} +
\cdots\nonumber\\
&&= \alpha \int\limits^\infty_0 \frac{x e^{- i n \alpha x^2}}{e^{2 \pi x}-1}
dx\href{#p16_en3}{^3} + \beta \int\limits^\infty_0 \frac{x e^{i n \beta
x^2}}{e^{2 \pi x}-1} dx - \frac{1}{4}\nonumber\\
&&+ \frac{1}{n} \sqrt{\left(\frac{\pi}{2n}\right)} \sum^{\infty}_{\mu =1}
\sum^{\infty}_{\nu=1} \{\mu(1-i) \sqrt{\alpha}+\nu (1+i) \sqrt{\beta}\}
e^{-(2 \pi \mu \nu - i \mu^2 \alpha + i \nu^2 \beta)/n}
\end{eqnarray}
for all positive values of $n$. Putting $\alpha=\beta=\pi$ in (15) we see that, if $n >0$, then
\begin{eqnarray}
\frac{1}{8 \pi} &+& \frac{\cos \pi n}{e^{2 \pi}-1} + \frac{2 \cos 4 \pi
n}{e^{4 \pi}-1} + \frac{3 \cos 9 \pi n}{e^{6 \pi}-1} + \cdots\nonumber\\
&&= \int\limits^\infty_0 \frac{x \cos \pi n x^2}{e^{2 \pi x}-1} dx + \frac{1}{2n
\sqrt{(2n)}} \sum^{\infty}_{\mu=1} \sum^{\infty}_{\nu=1} e^{- 2 \pi
\mu \nu/n} \nonumber\\
&&\times \left[ (\mu + \nu) \cos \left\{\frac{\pi(\mu^2 -
\nu^2)}{n}\right\} + (\mu-\nu) \sin \left\{\frac{\pi(\mu^2 - \nu^2)}{n}
\right\}\right].
\end{eqnarray}
As particular cases of (16) we have
\begin{eqnarray}
\frac{1}{8 \pi} &+& \frac{\cos (\pi/a)}{e^{2 \pi}-1} + \frac{2 \cos (4
\pi/a)}{e^{4 \pi}-1} + \frac{3 \cos (9 \pi/a)}{e^{6 \pi}-1} + \cdots\nonumber\\
&&= \int\limits^\infty_0 \frac{x \cos (\pi x^2/a)}{e^{2 \pi x}-1} dx + a
\sqrt{(\half a)}
\left(\frac{1}{e^{2 \pi a}-1} + \frac{2}{e^{4 \pi a}-1} + \frac{3}{e^{6
\pi a}-1} + \cdots \right),
\end{eqnarray}
If $a$ is a positive even integer;
\begin{eqnarray}
\frac{1}{8 \pi} &+& \frac{\cos(\pi/a)}{e^{2 \pi}-1} + \frac{2 \cos (4
\pi/a)}{e^{4 \pi}-1} + \frac{3 \cos(9 \pi/a)}{e^{6 \pi}-1} + \cdots\nonumber\\
&&= \int\limits^\infty_0 \frac{x \cos (\pi x^2/a)}{e^{2 \pi x}-1} dx + a\sqrt{(\half a)}
\left(\frac{1}{e^{2 \pi a}+1} - \frac{2}{e^{4 \pi a}+1} + \frac{3}{e^{6 \pi
a}+1} - \cdots \right),
\end{eqnarray}
if $a$ is a positive odd integer; and
\begin{eqnarray}
\frac{1}{8 \pi} + \frac{\cos(2\pi/a)}{e^{2 \pi}-1} + \frac{2 \cos (8
\pi/a)}{e^{4 \pi}-1} &+& \frac{3 \cos(18 \pi/a)}{e^{6 \pi}-1} + \cdots
= \int\limits^\infty_0 \frac{x \cos (2\pi x^2/a)}{e^{2 \pi x}-1} dx +
\myfrac{1}{4}a\sqrt{a}S\nonumber\\
\mbox{where } S&=&\sum_{n=1}^{\infty}\frac{(-1)^{n-1}n}{e^{n\pi a}+(-1)^n}
\mbox{or } S=\sum_{n=1}^{\infty}\frac{n}{e^{n\pi a}+(-1)^{n-1}}
\end{eqnarray}
according as $a \equiv 1 \mbox{ or } a \equiv 3 \pmod{4}$.
It may be interesting to note that different functions dealt with in this
paper have the same asymptotic expansion for small values of $n$. For
example, the two different functions
$$\frac{1}{8 \pi} + \frac{\cos n}{e^{2 \pi}-1} + \frac{2 \cos 4 n}{e^{4
\pi}-1} + \frac{3 \cos 9n}{e^{6 \pi} -1} + \cdots $$
and
$$\int\limits^\infty_0 \frac{x \cos nx^2}{e^{2 \pi x}-1} dx $$
have the same asymptotic expansion, viz.
\begin{equation}
\frac{1}{24} - \frac{n^2}{1008} + \frac{n^4}{6336} - \frac{n^6}{17280} +
\cdots \href{#p16_en4}{^4}
\end{equation}
1. [No. 11 of this volume (pp. 11b – 11e); see also No.12 (pp. 12b – 12e).]
2. See Mr. Hardy's note at the end of my previous paper [Messenger of Mathematics, XLIV, pp. 18 -- 21].
3. I shewed in my former paper [No.12 of the present volume] that this integral can be calculated in finite terms whenever $n\alpha$ is a rational multiple of $\pi$.
4. This series (in spite of the appearance of the first few terms) diverges for all values of $n$.