This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

The Madelung Constant in NN Dimensions

Antony Burrows Centre for Theoretical Chemistry and Physics, The New Zealand Institute for Advanced Study, Massey University, 0632 Auckland, New Zealand    Shaun Cooper [email protected] School of Mathematical and Computational Sciences, Massey University, 0632 Auckland, New Zealand.    Peter Schwerdtfeger [email protected] Centre for Theoretical Chemistry and Physics, The New Zealand Institute for Advanced Study, Massey University, 0632 Auckland, New Zealand
Abstract

We introduce two convergent series expansions (direct and recursive) in terms of Bessel functions and representations of sums rN(m)r_{N}(m) of squares for NN-dimensional Madelung constants, MN(s)M_{N}(s), where ss is the exponent of the Madelung series (usually chosen as s=1/2s=1/2). The functional behavior including analytical continuation, and the convergence of the Bessel function expansion is discussed in detail. Recursive definitions are used to evaluate rN(m)r_{N}(m). Values for MN(s)M_{N}(s) for s=12,32,3s=\tfrac{1}{2},\tfrac{3}{2},3 and 6 for dimension up to N=20N=20 and for MN(1/2)M_{N}(1/2) up to N=100N=100 are presented. Zucker’s original analysis [J. Phys. A 7, 1568 (1974)] on NN-dimensional Madelung constants for even dimensions up to N=8N=8 and their possible continuation into higher dimensions is briefly analyzed.

I Introduction

The classical lattice energy ElatE_{\rm lat} of an ionic crystal M+X-can be obtained from lattice summations of Coulomb interacting point charges and is usually presented by the Born-Lande form BornLande1918 ; BornLande1918a

Elat=NAZ2e24πϵ0R0Mlat(1n1),E_{\rm lat}=-\frac{N_{A}Z^{2}e^{2}}{4\pi\epsilon_{0}R_{0}}M_{\rm lat}\left(1-n^{-1}\right), (1)

where MlatM_{\rm lat} is the Madelung constant for a specific lattice madelung1918 , NAN_{A} is Avogadro’s constant, and nn is the Born exponent which corrects for the repulsion energy V=aRn,a>0V=aR^{-n},a>0 at nearest neighbor distance R0R_{0}, ZZ is the ionic charge (+1 in the ideal case), ee and ϵ0\epsilon_{0} are the elementary charge and vacuum permittivity respectively. Values for Z2MZ^{2}M and nn have been tabulated for different crystals in the past quane1970 . For a simple cubic lattice with alternating charges in the crystal the Madelung constant (or function) M(s)Msc(s)M(s)\equiv M_{\rm sc}(s) is given by the 3D alternating lattice sum

M(s)=i,j,k(1)i+j+k(i2+j2+k2)s,M(s)={\sum_{i,j,k\in\mathbb{Z}}}^{{}^{\prime}}\hskip 5.69046pt\frac{(-1)^{i+j+k}}{(i^{2}+j^{2}+k^{2})^{s}}\quad, (2)

where the summation is over all integer values, the prime behind the sum indicates that i=j=k=0i=j=k=0 is omitted, ss\in\mathbb{R}, and s=12s=\frac{1}{2} is chosen for a Coulomb-type of interaction. This sum is absolutely convergent for s>32s>\frac{3}{2}, but only conditionally convergent for smaller ss-values Emersleben1950 ; borwein1998convergence . The problem with conditionally convergent series is that the Riemann Series Theorem states that one can converge to any desired value or even diverge by a suitable rearrangement of the terms in the series. This problem is well known for the Madelung constant (s=12s=\frac{1}{2}) and has been documented and analyzed in great detail by Borwein et al borwein1985 ; borwein1998convergence ; borwein-2013 and Crandall et al Crandall_1987 ; Crandall1999 . For example, one has to sum over expanding cubes and not spheres to arrive at the correct result of M(12)=1.747564594633182M(\frac{1}{2})=-1.747~{}564~{}594~{}633~{}182~{}\ldots Crandall1999 .

It is currently not known if the Madelung constant can be expressed in terms of standard functions. The closest formula one can get is the one for s=12s=\frac{1}{2} recently derived by Tyagi Tyagi2005 following an approach by Crandall Crandall1999 ,

M(12)=18ln24π4π3+122+Γ(18)Γ(38)π3/222k(1)kr3(k)k[e8πk1]\displaystyle M\left(\tfrac{1}{2}\right)=-\frac{1}{8}-\frac{\ln{2}}{4\pi}-\frac{4\pi}{3}+\frac{1}{2\sqrt{2}}+\frac{\Gamma\left(\frac{1}{8}\right)\Gamma\left(\frac{3}{8}\right)}{\pi^{3/2}\sqrt{2}}-2{\sum_{k\in\mathbb{N}}}\>\frac{(-1)^{k}r_{3}(k)}{\sqrt{k}\left[e^{8\pi\sqrt{k}}-1\right]} (3)

which is correct to 10 significant figures if the sum is neglected (for more recent work and improvement of Tyagi’s formula see Zucker Zucker2013 ). Moreover, the sum converges relatively fast. Here r3(k)r_{3}(k) is the number of representations of kk as a sum of three squares.

There are many expansions available leading to an accurate determination of the Madelung constant Crandall1999 . Perhaps the most prominent formulas are the ones by Benson-Mackenzie benson1956 ; mackenzie1957

M(12)=12πi,jsech2[π2(2i1)2+(2j1)2]M\left(\tfrac{1}{2}\right)=-12\pi{\sum_{i,j\in\mathbb{N}}}{\rm sech}^{2}\left[\frac{\pi}{2}\sqrt{(2i-1)^{2}+(2j-1)^{2}}\right] (4)

and by Hautot Hautot-1975 (in modified form by Crandall Crandall1999 )

M(12)\displaystyle M\left(\tfrac{1}{2}\right) =π2+3i,j(1)icosech(πi2+j2)i2+j2\displaystyle=-\frac{\pi}{2}+3{\sum_{i,j\in\mathbb{Z}}}^{{}^{\prime}}\hskip 11.38092pt\frac{(-1)^{i}{\rm cosech}\left(\pi\sqrt{i^{2}+j^{2}}\right)}{\sqrt{i^{2}+j^{2}}} (5)

The Madelung constant can easily be extended to a NN dimensional series (N>N>0),

MN(s)=i1,,iN(1)i1++iN(i12+i22++iN2)s=iN\{0}(1)i1|i|2s,M_{N}(s)={\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}}^{{}^{\prime}}\hskip 11.38092pt\frac{(-1)^{i_{1}+\cdots+i_{N}}}{(i_{1}^{2}+i_{2}^{2}+\cdots+i_{N}^{2})^{s}}={\sum_{\hskip 2.84544pt\vec{i}\in\mathbb{Z}^{N}\backslash\{\vec{0}\}}}\>\frac{(-1)^{\vec{i}\cdot\vec{1}}}{|\vec{i}|^{2s}}\quad, (6)

and the prime after the sum denotes that the term corresponding to i1=i2==iN=0i_{1}=i_{2}=\cdots=i_{N}=0 is omitted (in the shorter notation on the right 1=(1,1,,1)\vec{1}=(1,1,\ldots,1)^{\top} ). The sum is absolutely convergent for exponents s>N2s>\frac{N}{2}. The Madelung series is as a special case of the more general Epstein zeta function Epstein-1903 .

Zucker has found analytical expressions in terms of standard functions for even dimensions up to N=8N=8 Zucker-1974 ,

M1(s)\displaystyle M_{1}(s) =2η(2s)\displaystyle=-2\eta(2s) (7)
M2(s)\displaystyle M_{2}(s) =4β(s)η(s)\displaystyle=-4\beta(s)\eta(s) (8)
M4(s)\displaystyle M_{4}(s) =8η(s1)η(s)\displaystyle=-8\eta(s-1)\eta(s) (9)
M6(s)\displaystyle M_{6}(s) =16η(s2)β(s)+4η(s)β(s2)\displaystyle=-16\eta(s-2)\beta(s)+4\eta(s)\beta(s-2) (10)
M8(s)\displaystyle M_{8}(s) =16η(s3)ζ(s)\displaystyle=-16\eta(s-3)\zeta(s) (11)

Here η(s)\eta(s) is the Dirichlet eta function, β(s)\beta(s) the Dirichlet beta function, and ζ(s)\zeta(s) the Riemann zeta function Zucker-1974 . These standard functions are defined in the Appendix A together with their analytical continuations to the whole range of real (or complex) numbers, s()s\in\mathbb{R}(\mathbb{C}).

By analogy with the three-dimensional case, an NN-dimensional lattice can easily be constructed from its NN linearly independent basis lattice vectors (or transformations of it). Higher dimensional lattices and their properties have been catalogued (up to certain dimensions) by Nebe and Sloane nebe2012catalogue . The simple cubic NN-dimensional lattice can be drawn as an infinite graph with atoms (vertices) and edges connecting the nearest neighbor atoms (adjacent vertices). If we walk around the edges we alternate the charges (+/- sign or red/blue color of the vertices in the graph) in the ionic lattice corresponding to the alternating series for the Madelung constant. We can also derive the lattice from tiling the NN-dimensional space with NN-cubes by implying translational symmetry. Figure 1 shows the graphs for such NN-cubes up to N=5N=5 together with the alternating color scheme. We notice that for dimensions N>3N>3 the graphs are not planar anymore. The number of nearest neighbor vertices for an N-dimensional cubic lattice is 2N2N and corresponds to the limit,

limsMN(s)=2N.\lim_{s\to\infty}M_{N}(s)=-2N\quad. (12)

For example, Crandall reports M3(50)=5.999999999999989341M_{3}(50)=-5.999~{}999~{}999~{}999~{}989~{}341\ldots Crandall1999 .

Refer to caption
Refer to caption
Figure 1: Graphs derived from orthogonal 2D projections of NN-cubes (1N51\leq N\leq 5) showing the alternating colors for the vertices (±1\pm 1 charges for the atoms). Starting with the 4-cube (tesseract) the orthogonal projection shows vertices overlapping and we use lighter colors to highlight the two overlapping vertices (orange for two red vertices and light blue for the two blue vertices).

A general and relatively fast converging series expansion for the NN-dimensional Madelung constant has been elusive for a very long time. For example, a recent suggestion was made by Mamode to use the Hadamard finite part of the integral representation of the underlying potential (e.g. a Coulomb potential) within the NN-dimensional crystal mamode2017 , but computations are quite involved and results presented were only up to three dimensions. For the NN-dimensional case one can explore expansions known for example for the Epstein zeta function terras-1973 ; Crandall_1987 ; crandall1998fast or similar techniques burrows-2020 . In this work, we introduce a general formula for the NN-dimensional Madelung constant for a simple cubic crystal in terms of a fast convergent Bessel function expansion allowing for analytical continuation, which gives deep insight into the functional behavior of the NN-dimensional Madelung constant. The derivation is given in the next section. The convergence of MN(s)M_{N}(s) with increasing dimension NN is discussed in detail in the results section.

II Theory

In this section we derive two useful expansions for the NN-dimensional Madelung constant. Consider MN+1(s)M_{N+1}(s) and change the last summation index to kk, and write

MN+1(s)=i1,,iNk(1)i1++iN+k(i12+i22++iN2+k2)s.M_{N+1}(s)={\sum_{\begin{subarray}{c}i_{1},\ldots,i_{N}\in\mathbb{Z}\\ k\in\mathbb{Z}\end{subarray}}}^{\!\!\!\!\!\!\!\prime}\;\;\;\;\frac{(-1)^{i_{1}+\cdots+i_{N}+k}}{(i_{1}^{2}+i_{2}^{2}+\cdots+i_{N}^{2}+k^{2})^{s}}. (13)

Now separate the sum into the two cases k=0k=0 and k0k\neq 0 to get

MN+1(s)=MN(s)+2F(s)M_{N+1}(s)=M_{N}(s)+2F(s) (14)

where

F(s)=k(i1,,iN(1)i1++iN+k(i12+i22++iN2+k2)s).F(s)=\sum_{k\in\mathbb{N}}\left(\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}\;\frac{(-1)^{i_{1}+\cdots+i_{N}+k}}{(i_{1}^{2}+i_{2}^{2}+\cdots+i_{N}^{2}+k^{2})^{s}}\right). (15)

By the gamma function integral in the form (+={x|x0}\mathbb{R}_{+}=\{x\in\mathbb{R}~{}|~{}x\geq 0\})

1zs=1Γ(s)+ts1eztdt\frac{1}{z^{s}}=\frac{1}{\Gamma(s)}\int_{\mathbb{R}_{+}}t^{s-1}e^{-zt}\,\mathrm{d}t (16)

we have

πs\displaystyle\pi^{-s} Γ(s)F(s)=+ts1(k(1)keπk2t)(i1,,iN(1)i1++iNeπ(i12++iN2)t)dt\displaystyle\Gamma(s)F(s)=\int_{\mathbb{R}_{+}}t^{s-1}\left(\sum_{k\in\mathbb{N}}(-1)^{k}e^{-\pi k^{2}t}\right)\left(\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}(-1)^{i_{1}+\cdots+i_{N}}e^{-\pi(i_{1}^{2}+\cdots+i_{N}^{2})t}\right)\mathrm{d}t
=\displaystyle= +ts1(k(1)keπk2t)(j(1)jeπj2t)Ndt.\displaystyle\int_{\mathbb{R}_{+}}t^{s-1}\left(\sum_{k\in\mathbb{N}}(-1)^{k}e^{-\pi k^{2}t}\right)\left(\sum_{j\in\mathbb{Z}}(-1)^{j}e^{-\pi j^{2}t}\right)^{N}\;\mathrm{d}t. (17)

By using the modular transformation for the theta function andrews1999special ,

neπn2t+2πina=1tneπ(n+a)2/t\sum_{n\in\mathbb{Z}}e^{-\pi n^{2}t+2\pi ina}=\frac{1}{\sqrt{t}}\sum_{n\in\mathbb{Z}}e^{-\pi(n+a)^{2}/t} (18)

we get

πs\displaystyle\pi^{-s} Γ(s)F(s)=+ts1(k(1)keπk2t)(1tjeπ(j+12)2/t)Ndt.\displaystyle\Gamma(s)F(s)=\int_{\mathbb{R}_{+}}t^{s-1}\left(\sum_{k\in\mathbb{N}}(-1)^{k}e^{-\pi k^{2}t}\right)\left(\frac{1}{\sqrt{t}}\,\sum_{j\in\mathbb{Z}}e^{-\pi(j+\frac{1}{2})^{2}/t}\right)^{N}\;\mathrm{d}t. (19)

This can be rearranged further to give

πs\displaystyle\pi^{-s} Γ(s)F(s)=+ts1N2(k(1)keπk2t)(m0rNodd(8m+N)eπ(8m+N)/4t)dt\displaystyle\Gamma(s)F(s)=\int_{\mathbb{R}_{+}}t^{s-1-\frac{N}{2}}\left(\sum_{k\in\mathbb{N}}(-1)^{k}e^{-\pi k^{2}t}\right)\left(\sum_{\>\>m\in\mathbb{N}_{0}}r_{N}^{\text{odd}}(8m+N)\,e^{-\pi(8m+N)/4t}\right)\;\mathrm{d}t (20)

where 0\mathbb{N}_{0} denotes the natural numbers including zero, and rNodd(m)r_{N}^{\text{odd}}(m) is the number of representations of mm as a sum of NN odd squares. That is, rNodd(m)r_{N}^{\text{odd}}(m) is the number of solutions of

(2j1+1)2+(2j2+1)2++(2jN+1)2=m(2j_{1}+1)^{2}+(2j_{2}+1)^{2}+\cdots+(2j_{N}+1)^{2}=m (21)

in integers. The integral in (20) can be evaluated in terms of Bessel functions by means of the formula

+tν1eatb/tdt=2(ba)ν/2Kν(2ab).\int_{\mathbb{R}_{+}}t^{\nu-1}e^{-at-b/t}\mathrm{d}t=2\left(\frac{b}{a}\right)^{\nu/2}K_{\nu}(2\sqrt{ab}). (22)

to give

πs\displaystyle\pi^{-s} Γ(s)F(s)=2km0(1)krNodd(8m+N)(8m+N4k2)(2sN)/4KsN/2(πk8m+N).\displaystyle\Gamma(s)F(s)=2\sum_{k\in\mathbb{N}}\sum_{\;\;m\in\mathbb{N}_{0}}(-1)^{k}r_{N}^{\text{odd}}(8m+N)\,\left(\frac{8m+N}{4k^{2}}\right)^{(2s-N)/4}\,K_{s-N/2}\left(\pi k\sqrt{8m+N}\right)~{}. (23)

On using this result back in (13) we obtain the recursion relation for the Madelung constant in terms of the dimension NN,

MN+1(s)=MN(s)+4πsΓ(s)km0(1)krNodd(8m+N)(8m+N4k2)(2sN)/4KsN/2(πk8m+N)\displaystyle M_{N+1}(s)=M_{N}(s)+\frac{4\pi^{s}}{\Gamma(s)}\sum_{k\in\mathbb{N}}\sum_{\>\>m\in\mathbb{N}_{0}}(-1)^{k}r_{N}^{\text{odd}}(8m+N)\,\left(\frac{8m+N}{4k^{2}}\right)^{(2s-N)/4}\,K_{s-N/2}\left(\pi k\sqrt{8m+N}\right) (24)
=MN(s)+m0rNodd(8m+N)cs,N(m)\displaystyle=M_{N}(s)+\sum_{\>\>m\in\mathbb{N}_{0}}r_{N}^{\text{odd}}(8m+N)c_{s,N}(m)

with

cs,N(m)=4πsΓ(s)k(1)k(8m+N4k2)(2sN)/4KsN/2(πk8m+N).\displaystyle c_{s,N}(m)=\frac{4\pi^{s}}{\Gamma(s)}\sum_{k\in\mathbb{N}}(-1)^{k}\left(\frac{8m+N}{4k^{2}}\right)^{(2s-N)/4}\,K_{s-N/2}\left(\pi k\sqrt{8m+N}\right)~{}. (25)

For fixed NN, the term rNodd(8m+N)r_{N}^{\text{odd}}(8m+N) can become very large for larger mm and NN values, but is more than compensated by the exponentially decreasing Bessel function, which we discuss in detail in the next section. The rNodd(m)r_{N}^{\text{odd}}(m) values can be determined recursively which is described in the Appendix.

While the recursion relation (24) is useful if the Madelung constant of lower dimension is known, we seek for a second formula where the recursion relation has been resolved. Here, we proceed as above and separate the sum for MN+1(s)M_{N+1}(s) into two cases according to whether i1=i2==iN=0i_{1}=i_{2}=\cdots=i_{N}=0 or i1i_{1}, i2i_{2}, \ldots, iNi_{N} are not all zero. This gives

MN+1(s)=2k(1)kk2s+g(s)M_{N+1}(s)=2\sum_{k\in\mathbb{N}}\frac{(-1)^{k}}{k^{2s}}+g(s) (26)

where

g(s)=k(i1,,iN(1)i1++iN+k(i12+i22++iN2+k2)s).g(s)=\sum_{k\in\mathbb{Z}}\left({\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}}^{\!\!\!\!\!\prime}\;\;\>\frac{(-1)^{i_{1}+\cdots+i_{N}+k}}{(i_{1}^{2}+i_{2}^{2}+\cdots+i_{N}^{2}+k^{2})^{s}}\right).

Applying the integral formula for the gamma function and then the modular transformation for the theta function we obtain

πsΓ(s)g(s)\displaystyle\pi^{-s}\Gamma(s)g(s) =+ts1i1,,iN(1)i1++iNeπ(i12++iN2)tk(1)keπk2tdt\displaystyle=\int_{\mathbb{R}_{+}}t^{s-1}{\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}}^{\!\!\!\!\!\prime}\;\;(-1)^{i_{1}+\cdots+i_{N}}e^{-\pi(i_{1}^{2}+\cdots+i_{N}^{2})t}\sum_{k\in\mathbb{Z}}(-1)^{k}e^{-\pi k^{2}t}\,\mathrm{d}t (27)
=+ts3/2i1,,iN(1)i1++iNeπ(i12++iN2)tkeπ(k+12)2/tdt\displaystyle=\int_{\mathbb{R}_{+}}t^{s-3/2}{\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}}^{\!\!\!\!\!\prime}\;\;(-1)^{i_{1}+\cdots+i_{N}}e^{-\pi(i_{1}^{2}+\cdots+i_{N}^{2})t}\sum_{k\in\mathbb{Z}}e^{-\pi(k+\frac{1}{2})^{2}/t}\,\mathrm{d}t
=2+ts3/2i1,,iN(1)i1++iNeπ(i12++iN2)tkeπ(k12)2/tdt,\displaystyle=2\int_{\mathbb{R}_{+}}t^{s-3/2}{\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}}^{\!\!\!\!\!\prime}\;\;(-1)^{i_{1}+\cdots+i_{N}}e^{-\pi(i_{1}^{2}+\cdots+i_{N}^{2})t}\sum_{k\in\mathbb{N}}e^{-\pi(k-\frac{1}{2})^{2}/t}\,\mathrm{d}t,

where the last step follows by noting

keπ(k+12)2/t=2k0eπ(k+12)2/t=2keπ(k12)2/t.\sum_{k\in\mathbb{Z}}e^{-\pi(k+\frac{1}{2})^{2}/t}=2\sum_{k\in\mathbb{N}_{0}}e^{-\pi(k+\frac{1}{2})^{2}/t}=2\sum_{k\in\mathbb{N}}e^{-\pi(k-\frac{1}{2})^{2}/t}. (28)

In terms of the modified Bessel function this becomes, by (22),

πsΓ(s)g(s)=4i1,,iNk(1)i1++iN(k12i12++iN2)s12Ks12(2π(k12)i12++iN2)\displaystyle\pi^{-s}\Gamma(s)g(s)=4{\sum_{i_{1},\ldots,i_{N}\in\mathbb{Z}}}^{\!\!\!\!\!\prime}\;\;\;\sum_{k\in\mathbb{N}}(-1)^{i_{1}+\cdots+i_{N}}\left(\frac{k-\frac{1}{2}}{\sqrt{i_{1}^{2}+\cdots+i_{N}^{2}}}\right)^{s-\frac{1}{2}}K_{s-\frac{1}{2}}\left(2\pi(k-\frac{1}{2})\sqrt{i_{1}^{2}+\cdots+i_{N}^{2}}\right) (29)
=4mk(1)mrN(m)(k12m)s12Ks12(2π(k12)m).\displaystyle=4\sum_{m\in\mathbb{N}}\sum_{k\in\mathbb{N}}(-1)^{m}r_{N}(m)\left(\frac{k-\frac{1}{2}}{\sqrt{m}}\right)^{s-\frac{1}{2}}K_{s-\frac{1}{2}}\left(2\pi(k-\frac{1}{2})\sqrt{m}\right).

On using this back in (26) we obtain

MN+1(s)=2η(2s)+4πsΓ(s)m(1)mrN(m)k(k12m)s12Ks12(π(2k1)m).\displaystyle M_{N+1}(s)=-2\eta(2s)+\frac{4\pi^{s}}{\Gamma(s)}\sum_{m\in\mathbb{N}}(-1)^{m}r_{N}(m)\sum_{k\in\mathbb{N}}\left(\frac{k-\frac{1}{2}}{\sqrt{m}}\right)^{s-\frac{1}{2}}K_{s-\frac{1}{2}}\left(\pi(2k-1)\sqrt{m}\right). (30)

For the case of N=0N=0 the sum of the right-hand side is zero (r0(m)=0r_{0}(m)=0) and we have M1(s)=2η(2s)M_{1}(s)=-2\eta(2s) in agreement with Zucker’s formula (7). We can conveniently write the sum in the form,

MN+1(s)=2η(2s)+m(1)mrN(m)cs(m)M_{N+1}(s)=-2\eta(2s)+\sum_{m\in\mathbb{N}}(-1)^{m}r_{N}(m)c_{s}(m) (31)

with

cs(m)=4πsΓ(s)m12s4k(k12)s12Ks12(π(2k1)m)c_{s}(m)=\frac{4\pi^{s}}{\Gamma(s)}m^{\frac{1-2s}{4}}\sum_{k\in\mathbb{N}}\left(k-\frac{1}{2}\right)^{s-\frac{1}{2}}K_{s-\frac{1}{2}}\left(\pi(2k-1)\sqrt{m}\right) (32)

Note that the coefficients cs(m)c_{s}(m) are independent of the dimension NN. The sum in (32) converges fast because of the exponential asymptotic decay of the Bessel function. The more problematic part is the convergence with respect to the first sum (see eq.31) over mm as we shall see.

As a special case we evaluate MN(1/2)M_{N}(1/2). Letting s1/2s\rightarrow 1/2 in (30) gives a formula for the N+1N+1 dimensional Madelung constant

MN+1(1/2)=2ln2+4mk(1)mrN(m)K0(π(2k1)m)M_{N+1}(1/2)=-2\ln 2+4\sum_{m\in\mathbb{N}}\sum_{\;k\in\mathbb{N}}(-1)^{m}r_{N}(m)K_{0}\left(\pi(2k-1)\sqrt{m}\right) (33)

where rN(m)r_{N}(m) is the number of representations of mm as a sum of NN squares. The coefficient c1/2(m)c_{1/2}(m) becomes

c1/2(m)=4kK0(π(2k1)m)=2+1sinh(πmcosht)dt.c_{1/2}(m)=4\sum_{k\in\mathbb{N}}K_{0}\left(\pi(2k-1)\sqrt{m}\right)=2\int_{\mathbb{R}_{+}}\frac{1}{\sinh(\pi\sqrt{m}\cosh t)}~{}\mathrm{d}t. (34)

where the integral is obtained using the formula temme1996

K0(z)=+ezcosh(t)dt.K_{0}(z)=\int_{\mathbb{R}_{+}}e^{-z\hskip 2.84544pt{\rm cosh}(t)}~{}\mathrm{d}t. (35)

and summing the resulting geometric series. For example, taking N=2N=2 gives

M3(1/2)=2ln2+4mk(1)mr2(m)K0(π(2k1)m)\displaystyle M_{3}(1/2)=-2\ln 2+4\sum_{m\in\mathbb{N}}\sum_{\;k\in\mathbb{N}}(-1)^{m}r_{2}(m)K_{0}\left(\pi(2k-1)\sqrt{m}\right) (36)

On the other hand, using (24) and Zucker’s equation (7) we get

M3(1/2)=4β(1/2)η(1/2)+4km0(1)kr2odd(8m+2)(2k24m+1)1/4K1/2(πk8m+2)\displaystyle M_{3}(1/2)=-4\beta(1/2)\eta(1/2)+4\sum_{k\in\mathbb{N}}\sum_{\;\;m\in\mathbb{N}_{0}}(-1)^{k}r_{2}^{\text{odd}}(8m+2)\,\left(\frac{2k^{2}}{4m+1}\right)^{1/4}\,K_{1/2}\left(\pi k\sqrt{8m+2}\right) (37)

III Results

The coefficients c1/2(m)c_{1/2}(m) are listed in Table 1 together with few selected rN(m)r_{N}(m) values. The Madelung constants MN(s)M_{N}(s) for selected ss values up to dimension N=20N=20 are listed in Table 2 and are depicted in Figures 2 and 3. The coefficients cs(M)c_{s}(M) are all positive for s>0s>0, which implies through (24) that MN(s)>MN+1(s)M_{N}(s)>M_{N+1}(s) for s>0s>0. For N=3N=3 and s=1/2s=1/2 the Madelung constant is readily evaluated to computer precision (summing 1m1171\leq m\leq 117 to reach 14 significant digits (we chose 1k2001\leq k\leq 200) as M3(1/2)=1.74756459463318M_{3}(1/2)=-1.74756459463318 in agreement with the known value of Madelung’s constant Crandall1999 . For larger exponents the series converges much faster, i.e. for M3(6)M_{3}(6) (Table 2) we need to sum only over 1m511\leq m\leq 51 to reach convergence to 14 significant digits behind the decimal point. Note that we used backwards summation as small numbers add up. We also checked our values for the even dimensions up to N=8N=8 with the values obtained from the analytical function in (7) by Zucker Zucker-1974 , and they are in perfect agreement.

mm c1/2(m)c_{1/2}(m) r2(m)r_{2}(m) r3(m)r_{3}(m) r4(m)r_{4}(m) r6(m)r_{6}(m) r8(m)r_{8}(m) r10(m)r_{10}(m)
1 1.18165052269629×\times10-1 4 6 8 12 16 20
2 2.72719460116136×\times10-2 4 12 24 60 112 180
3 9.11805054978030×\times10-3 0 8 32 160 448 960
4 3.66634491506766×\times10-3 4 6 24 252 1136 3380
5 1.65469973003050×\times10-3 8 24 48 312 2016 8424
6 8.09716792986126×\times10-4 0 24 96 544 3136 16320
7 4.21007519555378×\times10-4 0 0 64 960 5504 28800
8 2.29579583843101×\times10-4 4 12 24 1020 9328 52020
9 1.30128289377942×\times10-4 4 30 104 876 12112 88660
10 7.61717027007281×\times10-5 8 24 144 1560 14112 129064
11 4.58237287636094×\times10-5 0 24 96 2400 21312 175680
12 2.82249344482993×\times10-5 0 8 96 2080 31808 262080
13 1.77472886511553×\times10-5 8 24 112 2040 35168 386920
14 1.13644088647490×\times10-5 0 48 192 3264 38528 489600
15 7.39644406563549×\times10-6 0 0 192 4160 56448 600960
16 4.88482197748104×\times10-6 4 6 24 4092 74864 840500
17 3.26906868046647×\times10-6 8 48 144 3480 78624 1137960
18 2.21430457563634×\times10-6 4 36 312 4380 84784 1330420
19 1.51652113308388×\times10-6 0 24 160 7200 109760 1563840
20 1.04924116314272×\times10-6 8 24 144 6552 143136 2050344
40 2.62596820286192×\times10-9 8 24 144 26520 1175328 32826664
60 2.73153353546195×\times10-11 0 0 576 54080 4007808 164062080
80 5.89549945570033×\times10-13 8 24 144 106392 9432864 525104424
100 2.02339226243198×\times10-14 12 30 744 164052 17893136 1282320348
120 9.64273816463316×\times10-16 0 48 576 213824 32909184 2625594240
140 5.88915444967014×\times10-17 0 48 1152 324480 49238784 4921862400
160 4.37540432127918×\times10-18 8 24 144 425880 75493152 8402122024
180 3.81438178722105×\times10-19 8 72 1872 478296 108353952 13297454504
200 3.80087523208009×\times10-20 12 84 744 664020 146925328 20513309148
Table 1: Coefficients c1/2(m)c_{1/2}(m) for exponent s=1/2s=1/2 and representations rN(m)r_{N}(m) for a number of mm and NN values.
NN mmaxm_{\rm max} MN(1/2)M_{N}(1/2) MN(3/2)M_{N}(3/2) MN(3)M_{N}(3) MN(6)M_{N}(6)
1 0 -1.38629436111989 -1.80308535473939 -1.97110218259487 -1.99951537028771
2 101 -1.61554262671282 -2.64588653230643 -3.49418521170288 -3.93702124248001
3 117 -1.74756459463318 -3.23862476605177 -4.78844371389142 -5.82302778890550
4 135 -1.83939908404504 -3.70269117771204 -5.93191305089188 -7.66458960508610
5 158 -1.90933781561876 -4.08665230978501 -6.96536812867633 -9.46689838517490
6 184 -1.96555703900907 -4.41541406455743 -7.91367677818339 -11.2339815395894
7 212 -2.01240598979798 - 4.70360905429867 -8.79344454973204 -12.9690759046272
8 240 -2.05246682726927 -4.96062369646463 -9.61645522527675 -14.6748510064791
9 268 -2.08739431267374 -5.19286448579961 -10.3914475289766 -16.3535526240382
10 302 -2.11831050138482 -5.40491155391300 -11.1251231380028 -18.0071001619883
11 338 -2.14601010324383 -5.60015959755479 -11.8227595210275 -19.6371554488071
12 375 -2.17107583567180 -5.78119850773166 -12.4886029215377 -21.2451729486919
13 415 -2.19394722663803 -5.95005160868701 -13.1261312983588 -22.8324373927323
14 458 -2.21496368855843 -6.10833126513306 -13.7382364790321 -24.4000926119446
15 504 -2.23439258374969 -6.25734417113144 -14.3273540620924 -25.9491640475311
16 552 -2.25244813503955 -6.39816474499813 -14.8955583649474 -27.4805766108785
17 603 -2.26930453765447 -6.53168761111553 -15.4446333073194 -28.9951690545215
18 657 -2.28510527781503 -6.65866596401893 -15.9761263123420 -30.4937056794534
19 714 -2.29996989965861 -6.77974015828765 -16.4913899618245 -31.9768859775816
20 773 -2.31399901326838 -6.89545937988985 -16.9916146519184 -33.4453526516541
Table 2: Calculated Madelung constants MN(s)M_{N}(s) up to dimension N=N=20 for selected ss values. The last digit has not been rounded. mmaxm_{\rm max} is the maximum integer value in the sum over mm in eq.(31), where the remainder R(mmax+1)<1014R_{(m_{\rm max}+1)}<10^{-14} for MN(1/2)M_{N}(1/2).
Refer to caption
Figure 2: Madelung constants, MN(s)M_{N}(s), as a function of the dimension NN.
Refer to caption
Figure 3: Madelung constants, MN(1/2)M_{N}(1/2), as a function of the dimension NN up to N=100N=100.

To discuss the convergence behavior of the series (31) we observe that the coefficients c1/2(m)c_{1/2}(m) are rapidly decreasing with increasing mm. However, at the same time the rN(m)r_{N}(m) values increase also rapidly with increasing mm (and increasing NN) shown in Figure 4. The asymptotic behavior of the Bessel functions is well known, i.e.they decrease exponentially with increasing mm, Ks(x)(π/2x)12exK_{s}(x)\sim(\pi/2x)^{\tfrac{1}{2}}e^{-x}. On the other hand, the sum of squares representation increases polynomially for fixed NN hardy1920 ; rankin1965 ; holley2019 , e.g. we know from Ramanujan’s work that r2N(m)=𝒪(mN)r_{2N}(m)=\mathcal{O}(m^{N}) (derived from eq.(14) in ref.ramachandra1987srinivasa ). This is also seen in the logarithmic behavior of log10rN(m){\rm log}_{10}r_{N}(m) in Figure 4. This implies that the Madelung series expansion in terms of Bessel functions is converging, but very slowly for higher dimensions because of a very large dimensional prefactor. This can clearly seen from the mmaxm_{\rm max} values for MN(1/2)M_{N}(1/2) in Table 2. For MN(s),s1/2M_{N}(s),s\geq 1/2 we approximately have mmaxnint(1.16N2+11.5N+73)m_{\rm max}\leq{\rm nint}(1.16N^{2}+11.5N+73), where nint{\rm nint} represents the nearest integer function.

Refer to caption
Figure 4: Representations for number of squares, rN(m)r_{N}(m), for dimensions N=410N=4-10.

Perhaps more problematic is the appearance of large numbers due to the rN(m)r_{N}(m) values in the sum over mm in eq.(31) where one reaches soon the limit with double precision arithmetic at large NN values. This is clearly seen in Figure 5 for the case of dimension 16 and s=1/2s=1/2 which shows for the individual terms a strong oscillating behavior and poynomial increase up to rather large values around m=14m=14 followed by an exponential decay. For higher dimensions this maximum shifts to higher mm values before the exponential decay sets in. However, if we add pairs of positive and negative terms in the oscillating series to obtain new coefficients b(2m)=a(2m)+a(2m1)b(2m)=a(2m)+a(2m-1), we experience a far smoother and better convergence behavior.

Refer to caption
Figure 5: Convergence behaviour for for the Madelung constant with s=1/2s=1/2 and N=16N=16. Shown are the coefficients a(m)=(1)mr15(m)cs(m)a(m)=(-1)^{m}r_{15}(m)c_{s}(m) of eq.(31) (in blue) and the corresponding coefficients by adding the odd and even terms, b(2m)=a(2m)+a(2m1)b(2m)=a(2m)+a(2m-1) (in red). The sum of these values converge against the Bessel sum value of 0.866153773918593-0.866153773918593.

By using the recursive formula (24) instead we obtain much fast convergence as we reach the exponential decay far earlier because of the argument 8m+N8m+N in the Bessel function, see Figure 6. Here we avoid such large values and the strong oscillating behavior as the sign change appears in the summation over kk in .(31) rather than in (24). Hence, for accuracy reasons eq.(24) is preferred, and we used this equation instead for the values in Table 2.

Refer to caption
Figure 6: Convergence behaviour for the Madelung constants with s=1/2s=1/2. Shown are the numbers log10[d(m)]log_{10}[-d(m)] with the coefficients d(m)=rNodd(8m+N)cs,N(m)d(m)=r_{N}^{\rm odd}(8m+N)c_{s,N}(m) from eq.(24). For N=2N=2 the missing points have zero value for rNodd(8m+N)r_{N}^{\rm odd}(8m+N).

Concerning the analytical continuation all standard functions used including the Bessel function, gamma function and the Dirichlet eta function can be analytically continued (see Appendix) as shown in Figure 7. Moreover, the Madelung constants MN(s)M_{N}(s) are all smooth functions without any singularities for all ss\in\mathbb{R}. For example, from Zucker’s formula of M8(s)=16η(s3)ζ(s)M_{8}(s)=-16\eta(s-3)\zeta(s) we see that for s=1s=1 we have ζ(1)=\zeta(1)=\infty and η(2)=0\eta(-2)=0. However, it can easily be shown that the product of the two functions gives a finite value for s=1s=1.

Refer to caption
Figure 7: The Madelung constant M1(s),M2(s),M3(s),M4(s),M6(s)M_{1}(s),M_{2}(s),M_{3}(s),M_{4}(s),M_{6}(s) and M8(s)M_{8}(s) for s[9,9]s\in[-9,9].

Equations (24) and (30) allow for some interesting analysis. The gamma function Γ(x)\Gamma(x) has poles at x=0,1,2,x=0,-1,-2,\ldots for which the Bessel sum in (24) and (30) vanishes. In this case we get

MN(s)=2η(2s)ifs=0,1,2,M_{N}(s)=-2\eta(2s)\quad{\rm if}~{}s=0,-1,-2,\ldots (38)

which is independent of the dimension NN. This implies that all Madelung curves cross at these critical points. Moreover, from the Dirichlet eta function we know that η(2s)=0\eta(2s)=0 for s=1,2,s=-1,-2,\ldots. This behavior is nicely seen in Figure 7. Comparing with Zucker’s formulas we see that this is easily fulfilled for the specific dimensions given. Concerning the usual Madelung constant at s=1/2s=1/2 we see that they lie close to the crossing point at s=0s=0 which explains their rather slow decrease with increasing dimension NN.

Zucker was able to evaluate the Madelung series analytically for even dimensions up to N=8N=8 Zucker-1974 based on previous work of Glasser glasser1973 ; Glasser1973b . He further conjectured that M3(s)M_{3}(s) may be expressed in terms of a yet unknown Dirichlet series (for a recent analysis of lattice sums arising from the Poisson equation see Ref.Bailey_2013 ). Of considerable help for future investigations will be the condition that MN(0)=1M_{N}(0)=-1 and MN(n)=0M_{N}(-n)=0 for all nn\in\mathbb{N}. At these critical points we have the following properties

ζ(0)\displaystyle\zeta(0) =12,ζ(2n)=0,ζ(n)=(1)nBn+1n+1\displaystyle=-\frac{1}{2}\quad,\quad\zeta(-2n)=0\quad,\quad\zeta(-n)=(-1)^{n}\frac{B_{n+1}}{n+1}
η(0)\displaystyle\eta(0) =12,η(2n)=0,η(n)=(2n+11)n+1Bn+1\displaystyle=\frac{1}{2}\quad,\quad\eta(-2n)=0\quad,\quad\eta(-n)=\frac{\left(2^{n+1}-1\right)}{n+1}B_{n+1} (39)
β(0)\displaystyle\beta(0) =12,β(2n+1)=0,β(n)=En2\displaystyle=\frac{1}{2}\quad,\quad\beta(-2n+1)=0\quad,\quad\beta(-n)=\frac{E_{n}}{2}

where BnB_{n} and EnE_{n} are the Bernoulli and Euler numbers respectively andrews1999special . For example, from Zucker’s formulas (10) and (11) we follow immediately that M6(0)=E2=1M_{6}(0)=E_{2}=-1 and M8(0)=2(241)B4=1M_{8}(0)=2(2^{4}-1)B_{4}=-1. Further, because of limsη(s)=1\lim_{s\to\infty}\eta(s)=1, limsβ(s)=1\lim_{s\to\infty}\beta(s)=1, limsζ(s)=1\lim_{s\to\infty}\zeta(s)=1 we see that the coefficients in front of the functions in eqs.(7)-(11) add up to exactly 2N-2N. It is, however, incorrect to assume that analytical formulas in terms of these standard functions can be obtained for higher even dimensions. For a detailed discussion we refer to Appendix B. In this sense, our expansions in terms of Bessel functions is perhaps the closest general form for a fast convergent series we can get for the NN-dimensional Madelung constant.

IV Conclusions

We presented fast convergent expressions for the Madelung constant in terms of Bessel function expansions which allow for an asymptotic exponential decay of the series. Even for higher dimensions the Madelung constants can be evaluated efficiently and accurately through the recursive expression or by using computer algebra to work with the generating functions. The number of representations of the NN sum of squares can also be efficiently handled through recursive relations. The Madelung constants and their analytical continuations can be calculated easily by standard mathematical software packages to any precision. These numbers may be useful for future explorations of analytical formulas in higher dimensions. For s1/2s\geq 1/2 a Fortran program with double precision accuracy is available from our CTCP website ProgramJones .

Appendix A Special Functions

We give a brief overview over the special functions used in this work. More details can be found in the book by Andrews andrews1999special . The Dirichlet (or LL-) series (Riemann zeta, Dirichlet eta, and Dirichlet beta functions) are defined as

ζ(s)=iis,\zeta(s)={\sum\limits_{i\in\mathbb{N}}}i^{-s}\,, (40)
η(s)=i(1)i1is=(121s)ζ(s).\eta(s)=\sum\limits_{i\in\mathbb{N}}(-1)^{i-1}\,i^{-s}=\left(1-2^{1-s}\right)\zeta(s)\,. (41)
β(s)=i(1)i+1(2i1)s.\beta(s)=\sum_{i\in\mathbb{N}}(-1)^{i+1}(2i-1)^{-s}\,. (42)

Their analytic continuations to LL-functions into the negative real part (or the whole complex plane) are given by glasser1973

η(s)=s(22s)πs1sin(π2s)Γ(s)ζ(s+1).\eta(-s)=s(2-2^{-s})\pi^{-s-1}{\rm sin}(\tfrac{\pi}{2}s)\Gamma(s)\zeta(s+1)\,. (43)
β(1s)=(π2)ssin(π2s)Γ(s)β(s).\beta(1-s)=\left(\frac{\pi}{2}\right)^{-s}{\rm sin}(\tfrac{\pi}{2}s)\Gamma(s)\beta(s)\,. (44)
ζ(s)=2sπs1(π2)ssin(π2s)Γ(s+1)ζ(s+1).\zeta(-s)=-2^{-s}\pi^{-s-1}\left(\frac{\pi}{2}\right)^{-s}{\rm sin}(\tfrac{\pi}{2}s)\Gamma(s+1)\zeta(s+1)\,. (45)

Here, the gamma function is usually defined for real positive numbers as

Γ(s)=+xs1ex𝑑x.\Gamma(s)=\int_{\mathbb{R}_{+}}x^{s-1}e^{-x}dx\,. (46)

and when s=ns=n\in\mathbb{N} we have Γ(n)=(n1)!\Gamma(n)=(n-1)!. The gamma function on the whole real axis is then defined as the analytic continuation of this integral function to a meromorphic function by the simple recursion relation Γ(x)=Γ(x+1)/x\Gamma(x)=\Gamma(x+1)/x with 1/Γ(n)=01/\Gamma(-n)=0 for n0n\in\mathbb{N}_{0} Artin2015 .

The modified Bessel function of the second kind is defined as

Kν(x)=12+uν1exp{x(u+u1)/2}𝑑u,K_{\nu}(x)=\frac{1}{2}\int_{\mathbb{R}_{+}}u^{\nu-1}{\rm exp}\left\{-x\left(u+u^{-1}\right)/2\right\}du\,, (47)

The higher-order Bessel functions can be successively reduced to lower order Bessel functions by

Kν(x)=2(ν1)xKν1(x)+Kν2(x),K_{\nu}(x)=\frac{2(\nu-1)}{x}K_{\nu-1}(x)+K_{\nu-2}(x)\,, (48)

and we use the symmetry Kν(x)=Kν(x)K_{-\nu}(x)=K_{\nu}(x) for its analytical continuation.

The representations of the sum of squares is obtained from the recursive formula

rN+1(m)=rN(m)+2imi20rN(mi2)r_{N+1}(m)=r_{N}(m)+2\sum_{\begin{subarray}{c}i\in\mathbb{N}\\ \;\;m-i^{2}\geq 0\end{subarray}}r_{N}(m-i^{2}) (49)

keeping in mind that rN(0)=1r_{N}(0)=1. Eq.(49) can easily be derived from its generating function,

m0rN(m)=(kqk2)N.\sum_{m\in\mathbb{N}_{0}}r_{N}(m)=\left(\sum_{k\in\mathbb{Z}}q^{k^{2}}\right)^{N}\,. (50)

In a similar fashion one obtains a recursive formula for the sum of odd squares,

rN+1odd(m)=2im(2i1)2>0rNodd(m(2i1)2)r_{N+1}^{\rm odd}(m)=2\sum_{\begin{subarray}{c}i\in\mathbb{N}\\ m-(2i-1)^{2}>0\end{subarray}}r_{N}^{\rm odd}(m-(2i-1)^{2}) (51)

keeping in mind that rNodd(0)=0r_{N}^{\rm odd}(0)=0 and we do not include this term in our summation. For completeness we mention that the sum of even squares is trivially related to the sum of squares by rNeven(4m)=rN(m)r_{N}^{\rm even}(4m)=r_{N}(m) and rNeven(m)=0r_{N}^{\rm even}(m)=0 if mm is not divisible by 4.

Appendix B Why Zucker’s analytical formulas do not continue into higher dimensions

Zucker’s formulas (7)-(11) are equivalent to Jacobi’s formulas for sums of 2, 4, 6 and 8 squares (e.g., see Cooper-2017 pp. 177, 202, 238):

(j(1)jqj2)2\displaystyle\left(\sum_{j\in\mathbb{Z}}(-1)^{j}q^{j^{2}}\right)^{2} =14nχ4(n)qn1+qn,\displaystyle=1-4\sum_{n\in\mathbb{N}}\chi_{4}(n)\frac{q^{n}}{1+q^{n}}, (52)
(j(1)jqj2)4\displaystyle\left(\sum_{j\in\mathbb{Z}}(-1)^{j}q^{j^{2}}\right)^{4} =1+8jj(q)j1+qj,\displaystyle=1+8\sum_{j\in\mathbb{N}}\frac{j(-q)^{j}}{1+q^{j}}, (53)
(j(1)jqj2)6\displaystyle\left(\sum_{j\in\mathbb{Z}}(-1)^{j}q^{j^{2}}\right)^{6} =1+4jχ4(j)j2qj1+qj+16jj2(q)j1+q2j,\displaystyle=1+4\sum_{j\in\mathbb{N}}\chi_{4}(j)\frac{j^{2}q^{j}}{1+q^{j}}+16\sum_{j\in\mathbb{N}}\frac{j^{2}(-q)^{j}}{1+q^{2j}}, (54)
(j(1)jqj2)8\displaystyle\left(\sum_{j\in\mathbb{Z}}(-1)^{j}q^{j^{2}}\right)^{8} =1+16jj3(q)j1qj,\displaystyle=1+16\sum_{j\in\mathbb{N}}\frac{j^{3}(-q)^{j}}{1-q^{j}}, (55)

respectively, where

χ4(n)=sinnπ2={1if n1(mod4),1if n3(mod4),0otherwise.\chi_{4}(n)=\sin\frac{n\pi}{2}=\begin{cases}1&\mbox{if $n\equiv 1\pmod{4}$},\\ -1&\mbox{if $n\equiv 3\pmod{4}$},\\ 0&\mbox{otherwise.}\end{cases} (56)

For example, the formula (55) can be written in the form

i1,i2,,i8(1)i1+i2++i8qi12+i22++i82=16jkj3(1)jqjk.\left.\sum_{i_{1},i_{2},\ldots,i_{8}\in\mathbb{Z}}\right.^{\!\!\!\!\!\!\!\!\prime}\hskip 8.5359pt(-1)^{i_{1}+i_{2}+\cdots+i_{8}}\;q^{i_{1}^{2}+i_{2}^{2}+\cdots+i_{8}^{2}}=16\sum_{j\in\mathbb{N}}\sum_{k\in\mathbb{N}}j^{3}(-1)^{j}q^{jk}. (57)

Put q=euq=e^{-u}, multiply both sides by us1u^{s-1} and integrate, to obtain

i1,i2,,i8(1)i1+i2++i8+us1eu(i12+i22++i82)du=16jkj3(1)j+us1eujkdu.\left.\sum_{i_{1},i_{2},\ldots,i_{8}\in\mathbb{Z}}\right.^{\!\!\!\!\!\!\!\!\prime}\hskip 8.5359pt(-1)^{i_{1}+i_{2}+\cdots+i_{8}}\int_{\mathbb{R}_{+}}u^{s-1}e^{-u(i_{1}^{2}+i_{2}^{2}+\cdots+i_{8}^{2})}\mathrm{d}u=16\sum_{j\in\mathbb{N}}\sum_{k\in\mathbb{N}}j^{3}(-1)^{j}\int_{\mathbb{R}_{+}}u^{s-1}e^{-ujk}\mathrm{d}u. (58)

The integrals can be evaluated using eq.(46) to give

i1,i2,,i8(1)i1+i2++i8(i12+i22++i82)s=16jkj3(1)j(jk)s,\displaystyle\left.\sum_{i_{1},i_{2},\ldots,i_{8}\in\mathbb{Z}}\right.^{\prime}\frac{(-1)^{i_{1}+i_{2}+\cdots+i_{8}}}{(i_{1}^{2}+i_{2}^{2}+\cdots+i_{8}^{2})^{s}}=16\sum_{j\in\mathbb{N}}\sum_{k\in\mathbb{N}}\frac{j^{3}(-1)^{j}}{(jk)^{s}}, (59)

where the common factor Γ(s)\Gamma(s) has been cancelled from each side. In other words, we have obtained

M8(s)=16(jj3(1)jjs)(k1ks)=16(j(1)j1js3)(k1ks)=16η(s3)ζ(s).\displaystyle M_{8}(s)=16\left(\sum_{j\in\mathbb{N}}\frac{j^{3}(-1)^{j}}{j^{s}}\right)\left(\sum_{k\in\mathbb{N}}\frac{1}{k^{s}}\right)=-16\left(\sum_{j\in\mathbb{N}}\frac{(-1)^{j-1}}{j^{s-3}}\right)\left(\sum_{k\in\mathbb{N}}\frac{1}{k^{s}}\right)=-16\eta(s-3)\zeta(s). (60)

Thus we have obtained Zucker’s formula (11) from the sum of squares formula (55). The process is reversible, so (11) is equivalent to (55). By similar calculations, each of Zucker’s formulas (8)–(11) is equivalent to the respective formula in (52)–(55).

By analogy with M8(s)M_{8}(s) in eq.(11), it is tempting to speculate that there might be expressions for M10(s)M_{10}(s) and M12(s)M_{12}(s) as finite sums of the forms

M10(s)=ifi(s4)gi(s)andM12(s)=iFi(s5)Gi(s)\displaystyle M_{10}(s)=\sum_{i}f_{i}(s-4)g_{i}(s)\quad{\rm and}\quad M_{12}(s)=\sum_{i}F_{i}(s-5)G_{i}(s) (61)

for certain LL-functions fi(s)f_{i}(s), gi(s)g_{i}(s), Fi(s)F_{i}(s) and Gi(s)G_{i}(s). However this is unlikely to be true for reasons that we shall now explain.

There are formulas for sums of 10, 12, 14, \ldots squares that are similar to Jacobi’s (52)–(55), but they involve other more complicated terms called cusp forms apostol1976 . Glaisher found the formulas for 10, 12, 14, 16 and 18 squares, and a general formula for any even number of squares was obtained by Ramanujan. The formulas for sums of 10 and 12 squares are

(j(1)jqj2)10\displaystyle\left(\sum_{j\in\mathbb{Z}}(-1)^{j}q^{j^{2}}\right)^{10} =145jχ4(j)j4qj1+qj+645jj4(q)j1+q2j325E10(q)\displaystyle=1-\frac{4}{5}\sum_{j\in\mathbb{N}}\frac{\chi_{4}(j)j^{4}q^{j}}{1+q^{j}}+\frac{64}{5}\sum_{j\in\mathbb{N}}\frac{j^{4}(-q)^{j}}{1+q^{2j}}-\frac{32}{5}E_{10}(q) (62)
and
(j(1)jqj2)12\displaystyle\left(\sum_{j\in\mathbb{Z}}(-1)^{j}q^{j^{2}}\right)^{12} =1+8jj5(q)j1+qj16E12(q)\displaystyle=1+8\sum_{j\in\mathbb{N}}\frac{j^{5}(-q)^{j}}{1+q^{j}}-16E_{12}(q) (63)

where

E10(q)=qj(1q2j)14(1qj)4andE12(q)=qj(1q2j)12.\displaystyle E_{10}(q)=q\prod_{j\in\mathbb{N}}\frac{(1-q^{2j})^{14}}{(1-q^{j})^{4}}\quad\text{and}\quad E_{12}(q)=q\prod_{j\in\mathbb{N}}(1-q^{2j})^{12}. (64)

For a statement of the general formula, see Cooper-2017 (p. 214). A proof of the general formula and references to other proofs can be found in ref.cooper2001sums .

There is no simple formula for the coefficients in the expansions of E10(q)E_{10}(q) or E12(q)E_{12}(q), but they satisfy some remarkable properties. For example, if we write

E12(q)=ne12(n)qnE_{12}(q)=\sum_{n\in\mathbb{N}}e_{12}(n)q^{n} (65)

then it is known that

e12(mn)=e12(m)e12(n)e_{12}(mn)=e_{12}(m)e_{12}(n) (66)

if mm and nn are relatively prime. For prime powers, there is the three-term recurrence

e12(pλ+1)=e12(p)e12(pλ)p5e12(pλ1).e_{12}(p^{\lambda+1})=e_{12}(p)e_{12}(p^{\lambda})-p^{5}e_{12}(p^{\lambda-1}). (67)

Furthermore, Ramanujan proved that

|e12(n)|=O(n3+ϵ)as n|e_{12}(n)|=O(n^{3+\epsilon})\quad\text{as $n\rightarrow\infty$} (68)

and conjectured that

|e12(n)|n5/2d(n)|e_{12}(n)|\leq n^{5/2}d(n) (69)

where d(n)d(n) is the number of divisors of nn. In fact Ramanujan had a conjecture for a sum of 2k2k squares (k5k\geq 5), and that conjecture was proved by Deligne about 50 years later (as part of work for which he subsequently received the Fields medal).

To complete the example for the 12-dimensional lattice, if we put q=euq=e^{-u} in (63), multiply by us1u^{s-1} and integrate, the result is

M12(s)=8η(s5)η(s)16ne12(n)ns,M_{12}(s)=-8\eta(s-5)\eta(s)-16\sum_{n\in\mathbb{N}}\frac{e_{12}(n)}{n^{s}}, (70)

where the coefficients e12(n)e_{12}(n) are as above. It was known to Ramanujan that the Dirichlet series can be factored, and hence we obtain the formula

M12(s)=8η(s5)η(s)16p1(1e12(p)ps+1p2s5)M_{12}(s)=-8\eta(s-5)\eta(s)-16\prod_{p}\frac{1}{\left(1-\frac{e_{12}(p)}{p^{s}}+\frac{1}{p^{2s-5}}\right)} (71)

where the product is over the odd prime values of pp. The first few values are as follows: e12(3)=12,e12(5)=54,e12(7)=88,e12(11)=540,e12(13)=418,e12(17)=594,e12(19)=836,e12(23)=4104,e12(29)=594e_{12}(3)=-12,e_{12}(5)=54,e_{12}(7)=-88,e_{12}(11)=540,e_{12}(13)=-418,e_{12}(17)=594,e_{12}(19)=836,e_{12}(23)=-4104,e_{12}(29)=-594.

The formula (71) is the analogue of Zucker’s formulas for the 12-dimensional lattice. Similar formulas can be given for sums of 2k2k squares for any positive integer kk. The number of cusp forms is (k1)/4\lfloor(k-1)/4\rfloor. In particular, there are no cusp forms for 1k41\leq k\leq 4 corresponding to Zucker’s formulas for the lattice sums in 22, 44, 66 or 88 dimensions; there is one cusp form for 5k85\leq k\leq 8 corresponding to the lattice sums in 1010, 1212, 1414 or 1616 dimensions; and there are two cusp forms for 9k129\leq k\leq 12 corresponding to the lattice sums in 1818, 2020, 2222 or 2424 dimensions.

As a consequence of Ramanujan’s conjectures and Deligne’s proofs, we now know that the number of representations of NN as a sum of an even number 2k2k squares is given by a dominant term that involves a sum of the (k1)(k-1)th powers of the divisors of NN, plus a correction term (the coefficient in a cusp form) that is roughly the square root in magnitude of the dominant term. When the number of squares is 2, 4, 6 or 8 there is no cusp form, and the divisor sum formula is exact, and that is the reason the formulas of Zucker exist. When the number of squares is 10, 12, 14, \ldots, there is an increasing number of cusp forms, and there is no easy formula for the coefficients in their power series expansions. That is the reason why Zucker’s formulas stop at 8 dimensions, and why there are no similar formulas for dimensions 10, 12, 14, \ldots.

Acknowledgements

This work was supported by the Marsden Fund Council from Government funding, managed by the Royal Society of New Zealand (MAU1409)

References