Translate this page into:
A counting problem on lattice points in two-, three- and four-dimensional spaces
⁎Corresponding author. ycliu@tju.edu.cn (Yongchang Liu)
-
Received: ,
Accepted: ,
This article was originally published by Elsevier and was migrated to Scientific Scholar after the change of Publisher.
Abstract
A counting problem on lattice points in n-dimensional space with rectangular coordinate system was considered. Lattice points are all the points having integer coordinates. The distances of these lattice points to the origin O are denoted from small to large as , where denotes the origin itself. All the lattice points scatter on a series of concentric spherical surfaces with the center O and the radii . The number of lattice points on the spherical surface with the radius is denoted as . Several properties about the sequences and , were investigated. The relevant generating function was derived in terms of the elliptic theta functions for convenient calculation of and . We proved that for the 2-dimensional case, the number of lattice points is 4 on each circles with the radii satisfying ; for the 3-dimensional case, the number of lattice points is 6 on each spherical surfaces with the radii satisfying ; for the 4-dimensional case, the number of lattice points is 24 on each hyper-spherical surfaces with the radii satisfying .
Keywords
Lattice point
Generating function
Counting problem
Elliptic theta function
1 Introduction
In molecular dynamics simulations, the coordination shells around an atom are often considered, such as in pairwise potentials (Kittel, 2005), the Van der Waals interactions (Mittemeijer, 2010), the embedded atom potentials (Daw and Baskes, 1984; Finnis and Sinclair, 1984; Duan and Liu, 2020) and the radial distribution function (Callister, 2001). Mirjalili and Vahdati-Khaki (2008) calculated the melting point of nano-particles by introducing and using the mean coordination number. Peresypkina and Blatov (1999) and Peresypkina and Blatov (2000) considered the molecular coordination numbers in crystal structures of simple substances and organic compounds. Wang et al. (2010) investigated the coordination numbers and geometrical conformation of rare earth metal. In Duan et al. (2020), computational problems of multilayered coordination radii and coordination numbers in cubic crystals were considered, respectively for simple cubic, body-centered cubic and face-centered cubic crystals. These problems were solved by modelling the enumeration of lattice points in 3-dimensional space by means of the Diophantine equations and generating functions.
The calculation problem of coordination numbers of cubic crystals, especially the simple cubic crystals, may be modeled as counting of lattice points in the Cartesian coordinate system. In a 2-dimensional space, the calculation of lattice points within a circle is related to an ancient puzzle, known as the Gauss’s circle problem (Hardy and Landau, 1924; Berndt et al., 2018), which is still an open problem (Berndt et al., 2018) the resolution of which involves the application of advanced number theory and special functions (Andrews, 2015; Travaglini, 2015; Grosswald, 1985). Its counterpart in 3-dimensional space has been considered in (Grosswald, 1985; Fraser and Gotlieb, 1962; Arkhipova, 2008; Fomenko, 2014). Further, a new field, the geometry on the integer lattices, was developed in Maehara and Martini (2018). Owing to the complicacy of computation problem on lattices, the lattice theory has been applied to the field of cryptography (Micciancio et al., 2011; Wang et al., 2016).
In this article, we consider a counting problem on lattice points in the n-dimensional space with the Cartesian rectangular coordinate system. Lattice points are all the points with the integer coordinates. The following notations are used:
n: the dimension of space under consideration.
r: the distance to the origin O of the Cartesian rectangular coordinate system.
: the distances from lattice points to the origin O in n-dimensional rectangular coordinate system, ordered from small to large as , where means the distance of the origin O to itself. So is just the th non-negative integer in natural order that may be expressed as sum of n square numbers.
: the number of lattice points on the spherical surface with the radius .
: the total of lattice points on or inside the spherical surface with the radius .
: the set of all the integers.
In the next section, we discuss the properties of the sequence and express as the number of integer solutions of a quadratic indefinite equation. Further, we derive the generating function for the sequences and , in terms of the elliptic theta functions. So convenient computing methods for and are obtained. In Section 3, we consider the properties of the sequences and , especially focused on the cases of and 4.
2 Sequences and , and the generating function
We consider the lattice points in n-dimensional space with rectangular coordinate system. Suppose the basis vectors of the unit orthogonal basis to be
. Then, every lattice point A may uniquely be represented as a vector
The set of all possible values of is countable, assumed to be , and
All of the number
, are exactly the set of all of the sums of n square numbers. It is obvious that
In 2-dimensional case, cannot equal 3, i.e. the first positive integer which cannot be represented as the quadratic sum of two integers is 3. In 3-dimensional case, cannot equal 7.
Whether a given positive integer can be represented into a quadratic sum of two, three or four integers is a classical and attractive problem. We list the related results in the following three theorems (Andrews, 2015; Travaglini, 2015; Grosswald, 1985; Feng, 2011).
A positive integer m can be expressed as the sum of two square numbers if and only if each prime factor of m in the form of has an even power, where k is a nonnegative integer.
A positive integer m cannot be expressed as the sum of three square numbers if and only if m can be expressed as the form of , where l and k are nonnegative integers.
Theorem 3 Lagrange’s four-square theorem
Every positive integer can be expressed as the quadratic sum of four integers.
If a positive integer m can be expressed as a sum of p square numbers, then m can be expressed as a sum of more than p square numbers either because some terms in the sum are already sum of squares or by trivially adding as many zeros squared as one wants. It can be derived that the sequence
is a subsequence of
, and the sequence
is a subsequence of
. From Theorem 3, if
, then the sequence
is just all the nonnegative integers, i.e.
We notice that for the higher dimensional cases,
, the sequence
is very simple. But for the 2-dimensional and 3-dimensional cases, namely
, it is difficult to find a general term formula or recurrence relation for the sequence
. By means of the software MATHEMATICA 8.0, the plots of
versus k for
are shown in Fig. 1, where n is taken as 2, 3 and 4, respectively.Plots of
versus k for
(+:
).
The plots of
versus k for
through
were examined visually for
and 3, and we found that for
, the plot is almost a straight line, while for
, the plot appears to be slightly concave. By linear fitting, the obtained results are
We also examined the fitting effects by adding a nonlinear term in the form of , and find that for the case of , the fitting result nearly does not change and again, while for the case of , the fitting result is .
For any nonnegative integer k, the number of lattice points,
, on the spherical surface
, introduced in the last section, is just the number of the n-tuples,
, the integer solutions of the quadratic indefinite equation
Next, we consider the generating function
of the sequence
, starting from the equation
Considering Eq. (7), combining the terms with same powers on the left hand side of Eq. (8) forms a power series on t, which is just in the form of
. So we obtain the generating function for the sequences
and
, as
We can resort to a computer software to expand the power of the elliptic theta function in Eq. (9) into power series to obtain the values of
and
. We note that the elliptic theta function is built-in in MATHEMATICA 8.0. Let
. In Table 1, the first ten values of the sequences
and
for
are listed.
0
0
1
1
0
1
1
0
1
1
1
1
4
5
1
6
7
1
8
9
2
2
4
9
2
12
19
2
24
33
3
4
4
13
3
8
27
3
32
65
4
5
8
21
4
6
33
4
24
89
5
8
4
25
5
24
57
5
48
137
6
9
4
29
6
24
81
6
96
233
7
10
8
37
8
12
93
7
64
297
8
13
8
45
9
30
123
8
24
321
9
16
4
49
10
24
147
9
104
425
3 Properties of sequences and
In this section, we investigate properties of the sequence and , especially for the cases of and 4.
For any positive integers and , there exists a positive integer , such that and .
Suppose is an integer solution of the indefinite equation .Then we have . This implies that there exists a positive integer , such that and is an integer solution of the indefinite equation . Therefore, the inequality holds. .
(i) If or 3, then for each , there exists a positive integer , such that and .
(ii) For the case of , if is a positive even number, then there exists a positive integer , such that and .
By Theorem 4, we only need to explain the inequality
holds. Suppose
is an integer solution of the equation
. Then
In the following we show that all of for are even.
(i) If , then and in Eq. (11) are both even. In fact, it is obvious that there cannot be exactly one even. Suppose both and are odd, then where are integers. Eq. (11) cannot hold.
If
, Eq. (11) implies evidently that
and
cannot be all odd, nor exactly one odd. Suppose there are exactly two being odd, then we have
Hence if or 3, all in Eq. (11) are even. Thus is an integer solution of the equation . It follows that .
(ii) If
, Eq. (11) implies obviously that among
and
, there cannot be exactly one or three being odd. If there were exactly two being odd, a counterpart with Eq. (12) would derived. So Eq. (11) cannot hold. If all the four were odd, then
This is contradictory to Eq. (13). Hence if , all in Eq. (11) are even. Thus is an integer solution for the equation . It follows that . The proof is completed. .
Theorem 5 indicates that for the 2-dimensional or 3-dimensional cases, the numbers of lattice points on the spherical surfaces remain the same when the radius doubles; for the 4-dimensional case, if the square of the radius is even, then as the radius doubles, the number of lattice points on the spherical surface remains unchanged. For the 4-dimensional case, if the square of the radius is odd, such invariant property cannot hold by the following theorem.
For the case of , if is an odd number and , then the inequality holds.
Let
. By definition we know that
is the number of the integer solutions of the equation
It is obvious that the double of any solution of Eq. (15) is a solution of Eq. (16). Now we write . By Theorem 2, can be expressed as the sum of three square numbers. Thus we find a solution of Eq. (16) with at least one odd component 1. This solution of Eq. (16) cannot be a double of any integer solution of Eq. (15). The inequality is proved. .
In Fig. 2, plots of
versus k for
through 260 are shown for
, 3 and 4, respectively. From Theorem 5, for the 2-dimensional or 3-dimensional cases, for any
, there are infinitely many terms in the sequence
taking the same value with
. This properties are reflected in Figs. 2a and 2b.Plots of
versus k for
through 260 ((a)
, (b)
, (c)
).
By using Eq. (4), the results in Theorems 5 (ii) and 6 mean
(i) For the 2-dimensional case, every
for
is a multiple of 4. For every
, there exists a positive integer s, such that
(ii) For the 3-dimensional case, every
for
has the form
, where
or 1,
are not all zeros. For every
, there exists a positive integer s, such that
(iii) For the 4-dimensional case, every
for
has the form
, where
or 1,
are not all zeros, and if
, then
. For every
, the following equalities hold
(i) For the 2-dimensional case, by symmetry, every for is a multiple of 4. From and Theorem 5 (i), for any , there exists a positive integer , such that
Since and , so for any , there exists a positive integer , such that
Thus for every , there exists a positive integer s, such that which is the least value of for .
(ii) For the 3-dimensional case, we can classify the lattice points for into those on axes with only one nonzero coordinate, those on planes with exactly two nonzero coordinates, and those inside octants with three nonzero coordinates. There are six first kind points, if any, a multiple of 12 of the second kind points, and a multiple of 8 of the third kind points. Therefore, every for has the form , where or 1, are not all zeros.
From and Theorem 5 (i), for every , there exists a positive integer s, such that which is the least value of for .
(iii) For the 4-dimensional case, we classify the lattice points for into four classes: those with only one nonzero coordinate, there being 8 points, if any; those with exactly two nonzero coordinates, the number of points being a multiple of 24; those with exactly three nonzero coordinates, the number being a multiple of 32; and those with four nonzero coordinates, the number being a multiple of 16. So every for has the form , where or 1, .
Next, we show that even if are not all zeros. If for has the expression , then is a square number, i.e. the partitions of four square numbers of include the case of only one nonzero part. In this case, can be expressed as the sum of at least two nonzero square numbers. In fact, if , then it has the expression . If , then . By Theorem 2, can be expressed as the sum of three square numbers since there is the expression or corresponding to even m or odd m, respectively. Therefore, are not all zeros by the last paragraph.
Further, we show that if , then . means there is only one lattice point with four positive coordinates. The four coordinates of such lattice point must be identical as . Otherwise, more lattice points with four positive coordinates were found by exchanging different coordinates. Thus we have a square number. Therefore, we have .
Finally, due to and Eq. (17), we have . Similarly, due to and Eq. (17), we have . In conclusion, for every , the equalities , hold, and which is the least value of for from the above analysis. .
Because one lattice point occupies one n-dimensional unit cube and the n-dimensional sphere with the radius r has the volume
,where
is the gamma function, so we have the asymptotic behavior for the sequence
as
This means
We checked the results for
and 4, and the data are plotted in Fig. 3.Plots of
versus k for
through 200 ((a)
, (b)
, (c)
).
Unlike the sequence
,in Eqs. (22) and (23), the sequence
,does not have an asymptotic behavior for our considered cases
and 4. Instead, we may consider the sequence of mean values
From Eq. (22), it has the asymptotic behavior
For the case of , a simple result may be derived considering Eq. (4) as .For the cases of and , we only have and as , since we do not know the asymptotic behaviors of the sequences and .
4 Conclusions
Lattice points in n-dimensional space scatter on a series of concentric spherical surfaces with the center O and the radii , where . All of the number , are exactly the set of all of the sums of n square numbers. If , the sequence is just the sequence of all the nonnegative integers, i.e. .The number of lattice points, , on the spherical surface with the radius equals the number of integer solutions of the quadratic indefinite equation . The generating function is derived as in terms of the elliptic theta functions for convenient calculation of and .
We proved that for the 2-dimensional or 3-dimensional cases, the numbers of lattice points on the spherical surfaces, , remain the same when the radius doubles; for the 4-dimensional case, if the square of the radius is even, then as the radius doubles, the number of lattice points on the spherical surface remains unchanged, while if the square of the radius is odd, such invariant property does not hold.
For the 2-dimensional case, for every , there exists a positive integer s, such that and .For the 3-dimensional case, for every , there exists a positive integer s, such that and . For the 4-dimensional case, for every , the equalities hold and 24 is the least value of for . Finally, the asymptotic behaviors of the sequences and are given.
Acknowledgments
The work was partly supported by the National Natural Science Foundation of China (No. 11772203).
Declaration of Competing Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
References
- Number Theory. New York: Dover Publications; 2015.
- Number of lattice points in a sphere. Moscow Univ. Math. Bull.. 2008;63(5):214-215.
- [Google Scholar]
- The circle problem of Gauss and the divisor problem of Dirichlet - still unsolved. Am. Math. Mon.. 2018;125(2):99-114.
- [Google Scholar]
- Foundations of Materials Science and Engineering (5th ed.). New York: John Wiley & Sons Inc; 2001.
- Embedded-atom method: Derivation and application to impurities, surfaces, and other defects in metals. Phys. Rev. B. 1984;29:6443-6453.
- [Google Scholar]
- Relationships between elastic constants and EAM/FS potential functions for cubic crystals. Acta Metall. Sin.. 2020;56(1):112-118.
- [Google Scholar]
- Calculation of radii and atom numbers of different coordination shells in cubic crystals. Mater. Today Commun.. 2020;22:100768
- [Google Scholar]
- Quadratic Sum. Harbin: Harbin Institute of Technology; 2011.
- A simple empirical N-body potential for transition metals. Philos. Mag. A. 1984;50:45-55.
- [Google Scholar]
- A calculation of the number of lattice points in the circle and sphere. Math. Comp.. 1962;16:282-290.
- [Google Scholar]
- Representations of Integers as Sums of Squares. New York, NY: Springer; 1985.
- Introduction to Solid State Physics (8th ed.). Hoboken, NJ: John Wiley & Sons Inc; 2005.
- The geometry of lattice cryptography. In: Aldini A., Gorrieri R., eds. Foundations of Security Analysis and Design VI. Berlin/Heidelberg: Springer; 2011. p. :185-210.
- [Google Scholar]
- Prediction of nanoparticles’ size-dependent melting temperature using mean coordination number concept. J. Phys. Chem. Solids. 2008;69:2116-2123.
- [Google Scholar]
- Fundamentals of Materials Science. Berlin: Springer-Verlag; 2010.
- NIST Handbook of Mathematical Functions. New York: Cambridge University Press; 2010.
- Molecular coordination numbers and crystal structure of simple substances. J. Mol. Struc.-Theochem. 1999;489:225-236.
- [Google Scholar]
- Molecular coordination numbers in crystal structures of organic compounds. Acta Cryst. B. 2000;56:501-511.
- [Google Scholar]
- Number Theory, Fourier Analysis and Geometric Discrepancy. London: Cambridge University Press; 2015.
- Investigation on coordination number and geometrical conformation of rare earth complexes with catenulate aminopolycarboxylic acid ligands. J. Coord. Chem.. 2010;63(13):2193-2222.
- [Google Scholar]
- Mathematical foundations of public key cryptography. Boca Raton, FL: CRC Press; 2016.