A Kronecker-type identity and the representations of a number as a sum of three squares
Eric T. Mortenson

TL;DR
This paper derives a new proof of Gauss's formula for representing numbers as sums of three squares using a Kronecker-type identity, and also proves that every positive integer can be expressed as a sum of three triangular numbers.
Contribution
It introduces a novel approach connecting Kronecker-type identities with classical number theory results on sums of squares and triangular numbers.
Findings
New proof of Gauss's formula for three squares
Demonstrates all positive integers as sums of three triangular numbers
Links Kronecker identities with classical number theory results
Abstract
By considering a limiting case of a Kronecker-type identity, we obtain an identity found by both Andrews and Crandall. We then use the Andrews-Crandall identity to give a new proof of a formula of Gauss for the representations of a number as a sum of three squares. From the Kronecker-type identity, we also deduce Gauss's theorem that every positive integer is representable as a sum of three triangular numbers.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A Kronecker-type identity and the representations of a number as a sum of three squares
Eric T. Mortenson
Max-Planck-Institut für Mathematik, Vivatsgasse 7, 53111 Bonn, Germany
(Date: 13 February 2017)
Abstract.
By considering a limiting case of a Kronecker-type identity, we obtain an identity found by both Andrews and Crandall. We then use the Andrews–Crandall identity to give a new proof of a formula of Gauss for the representations of a number as a sum of three squares. From the Kronecker-type identity, we also deduce Gauss’s theorem that every positive integer is representable as a sum of three triangular numbers.
Key words and phrases:
-series, sums of three squares
2010 Mathematics Subject Classification:
11B65, 11F27
1. Introduction
Let with and define . Recall the notation
[TABLE]
The following identity was known to Kronecker [15], [16, pp. –], [26, pp. –]. For where and neither zero nor an integral power of
[TABLE]
However, Kronecker’s identity is also a special case of Ramanujan’s -summation.
If we place the additional restriction , we have a more symmetric form
[TABLE]
which has wide variety of applications. Limiting cases of (1.2) yield well-known results on the representations of a number as a sum of squares [6, 25]. Define to be the number of representations of as a sum of squares and define the generating function
[TABLE]
where the last equality follows from Jacobi’s triple product identity. Multiply both sides of (1.2) by and rewrite to have
[TABLE]
Taking the limit of (1.4) yields Jacobi’s four-square theorem
[TABLE]
which implies Lagrange’s theorem that every positive integer is a sum of four squares. Taking the limit , of (1.4) gives a result of Gauss and Lagrange
[TABLE]
where is the number of divisors of congruent to modulo . Identity (1.6) implies Fermat’s two-square theorem.
Do higher-dimensional generalizations of (1.1) yield results on sums of squares? In recent work, we found that Kronecker’s identity (1.1) has a double-sum analog:
Theorem 1.1**.**
[20, Theorem ]** For where , , and neither zero nor an integral power of ,
[TABLE]
where “idem” means that the previous expression is repeated with and interchanged for each .
A limiting case of Theorem 1.1 gives a new proof of an identity found by Crandall in his work on the Madelung constant [7, ]:
Theorem 1.2**.**
For positive integers , we have
[TABLE]
Crandall states that (1.8) may also be obtained via Andrews’s identity [1, ]:
[TABLE]
Define to be the number of integral solutions to , where . Gauss showed [11, Art. , ]:
Theorem 1.3** (Gauss).**
Let except for and . We have,
[TABLE]
where is the order of the class group of discriminant .
A consequence of Gauss’s theorem is the celebrated local to global principle:
Legendre/Gauss : if and only if .
Using the Andrews–Crandall identity (1.8), we give a new proof of the formula:
Theorem 1.4** (Gauss).**
We have
[TABLE]
where is the Hurwitz class number of discriminant .
Many authors have given treatments of Theorem 1.4. Hecke [12] discussed Theorem 1.4 with reference to Kronecker [14, p. 253]. Kronecker proved Theorem 1.4 using identities that he states follow from the theory of elliptic forms [9, p. 108], [22, pp. 321–322]. Hermite expanded upon Kronecker’s identities [9, Chapter VI, p. 92], [22, pp. 321 ff., pp. 338], and the method of Hermite was translated by Liouville into a purely arithmetical deduction of Kronecker’s relations [24, Chapter XIII]. One also has Weil’s [27].
Modularity can also be used to prove identities on sums of squares. Identity (1.5) is a classic example used to motivate the use of modular forms [8]. Motivated by a suggestion of Hecke [12], Hirzebruch and Zagier [13] completed
[TABLE]
to a function which transforms under like a modular form of weight :
Theorem 1.5**.**
[29, Theorem , p. 92]** For , we have
[TABLE]
where , and is defined by
[TABLE]
As a corollary to Theorem 1.5, they prove Theorem 1.4 [13, pp. 92–93].
Of course, there is another well-known result that can be deduced from Theorem 1.1. Let us define to be the number of representations of as a sum of three triangular numbers, where a triangular number is a number of the form . We write the generating function as
[TABLE]
where we have used Jacobi’s triple product identity. Gauss discovered that every positive integer is representable as a sum of three triangular numbers, [11, Art. ]. In his diary, he made the entry:
Gauss (1796): EYPHKA! num = .
A specialization of Theorem 1.1 yields the following identity, which gives as an immediate corollary Gauss’s result on triangular numbers.
Theorem 1.6**.**
We have
[TABLE]
Gauss’s EYPHKA theorem is also a corollary of an identity of Andrews [1, ].
In Section 2, we recall basic facts about quadratic forms and class numbers. In Sections 3 and 4, we demonstrate how Theorem 1.1 yields (1.8) and (1.12) respectively. In Section 5, we sketch the idea behind our proof of Theorem 1.4. In Section 6, we rewrite (1.8). In Section 7, we prove Theorem 1.4. In Section 8, we make our concluding remarks.
2. Preliminaries
We review facts on binary quadratic forms and class numbers [5, 29]. Let
[TABLE]
be a binary quadratic form. The discriminant of is defined .
Definition 2.1**.**
[5, Definition ] A positive definite quadratic form of discriminant is said to be reduced if and if, in addition, when one of the two inequalities is an equality (i.e. either or ), then .
A reduced form is said to be primitive if and imprimitive otherwise. The number of reduced forms of a given discriminant is finite in number [29, p. 59].
Definition 2.2**.**
[5, p. 226] We define the class number to be the number of primitive positive definite reduced quadratic forms of discriminant .
Definition 2.3**.**
[5, Definition ] Let be a non-negative integer. The Hurwitz class number is defined as follows.
- (1)
If then .
- (2)
If then .
- (3)
Otherwise (i.e. if and ) we define as the class number of not necessarily primitive (positive definite) quadratic forms of discriminant , except that forms equivalent to should be counted with weight , and those equivalent to with weight .
Let be the number of roots of unity in the quadratic order of discriminant , then , , and for . Write where is a fundamental discriminant, i.e. and either and is sqaurefree, or , is squarefree and or . We recall a consequence of Dirichlet’s [5, Proposition ], [29, p. ], see also [5, p. ], [29, pp. , ]:
[TABLE]
where \big{(}\tfrac{\bullet}{p}\big{)} is the Kronecker–Jacobi symbol [5, Definition ]. One could also obtain (2.2) via a purely algebraic proof outlined in a series of exercises [3, Ch. , Probs. –], see also [22, Art. , pp. 246–251].
Lemma 2.4**.**
[5, Lemma ]** Define . For we have
[TABLE]
and in particular if is a fundamental discriminant, we have except in the special cases ( and ) and ( and ).
Lemma 2.5**.**
For positive numbers , where , we have
[TABLE]
Proof.
By Lemma 2.4,
[TABLE]
where we used (2.2) with and a fundamental discriminant. For , we note that \big{(}\tfrac{\Delta_{d}}{2}\big{)}=-1 and (2.4) follows. For we have \big{(}\tfrac{\Delta_{d}}{2}\big{)}=1 and (2.5) follows. ∎
3. Proof of Theorem 1.4
For our purpose we impose the additional restriction . The right-hand side of (1.7) remains the same; however, the left-hand side of (1.7) becomes the symmetric
[TABLE]
We set in the right-hand side of (1.7) and then take the limit . The theta-quotient in the right-hand side becomes
[TABLE]
Let us consider an Appell–Lerch function term from the right-hand side. We have
[TABLE]
where we have picked up a non-zero term when . So for , the right-hand side of (1.7) becomes
[TABLE]
Let us consider the modified left-hand side of (1.7) which is now (3.1). We set and then take the limit . We have
[TABLE]
Equating (3.2) and (3.3) yields
[TABLE]
4. Proof of Theorem 1.6
As in Section 3, we impose the additional restriction . We set in the right-hand side of (1.7) and then make the subsititutions: , . The theta quotient in the right-hand side becomes
[TABLE]
For the Appell–Lerch function terms, we have
[TABLE]
where the equality follows from using the classical partial fraction expansion for the reciprocal of Jacobi’s theta product [23, p. 136]:
[TABLE]
So the right-hand side of (1.7) becomes
[TABLE]
Let us consider the modified left-hand side of (1.7) which is now (3.1). We set and then make the subsititutions: , . We have
[TABLE]
Equating (4.1) and (4.2) yields Theorem 1.6.
5. The Idea behind the proof
Note that we have the decomposition [7, p. 377]:
[TABLE]
Hence we can rewrite (1.8)
[TABLE]
We establish a correspondence between solutions and reduced binary quadratic forms of discriminant . We see
[TABLE]
is equivalent to
[TABLE]
Hence a solution
[TABLE]
with , corresponds to the reduced quadratic form
[TABLE]
with discriminant
[TABLE]
We list the types of primitive and imprimitive reduced forms :
- (I)
forms where ,
- (II)
forms where , i.e. a pair and ,
- (III)
forms where or ,
- (IV)
forms where .
The right-hand side of (5.2) counts precisely the primitive and imprimitive reduced forms of discriminant ; however, the reduced forms have associated weights. The first sum counts forms of type (I), the second sum counts forms of type (II), the third sum counts forms of type (III), and the fourth sum counts forms of type (IV). The proof of Theorem 1.4 boils down to understanding the weights.
6. Reworking the Andrews–Crandall identity
The goal of this section is to prove the following two propositions.
Proposition 6.1**.**
For , we have
[TABLE]
Proposition 6.2**.**
For , we have
[TABLE]
We recall that Theorem 1.2 has the following two natural corollaries [7, p. 376]:
Corollary 6.3**.**
Suppose is odd, then
[TABLE]
Corollary 6.4**.**
Suppose is even and is maximal such that , then
[TABLE]
We prove the following lemma.
Lemma 6.5**.**
For and , we have
[TABLE]
Proof.
The result follows from considering the four cases for parity. If all three of are odd, then upon rewriting the -tuple according to parity we have
[TABLE]
If we have one even and two odd, we have for example
[TABLE]
If we have two even and one odd, we have for example
[TABLE]
If we have three even, then
[TABLE]
If , then we can only have one even and two odd. If , then we can only have two even and one odd. ∎
Proofs of Propositions 6.1 and 6.2.
We consider . By parity considerations, we can only have one even and two odd in , so the third sum in (5.1) does not occur. By Corollary 6.3 and Lemma 6.5, we have
[TABLE]
We consider . By parity considerations, we can only have two even and one odd in , so the third sum in (5.1) cannot occur. For the second sum in (5.1)
[TABLE]
So only the first sum in (5.1) can occur. By Corollary 6.4 and Lemma 6.5, we have
[TABLE]
7. Proof of Theorem 1.4
We consider the case . We have by Proposition 6.1:
[TABLE]
Let us consider the contributions. The sum
[TABLE]
counts the reduced binary quadratic forms of type (I). They may be primitive or imprimitive. The factor is used so that for , the form is only counted once. If is a square, say , then the form is counted with weight , but this is exactly the weight factor from the definition of the Hurwitz class number.
The primitive and imprimitive reduced forms of type (II) are counted by the sum
[TABLE]
To count all the forms and , we introduce a factor of two:
[TABLE]
Primitive and imprimitive reduced forms of type (III) are counted by
[TABLE]
In a solution tuple where and , we can only have one even and two odd. This means that we cannot have a solution , so the fourth sum in (5.2) cannot appear and is therefore not included. Solutions of the form correspond to the reduced binary quadratic forms of type (IV):
[TABLE]
Hence there is no contribution to the Hurwitz number. Thus we have
[TABLE]
We consider the case . We have by Proposition 6.2:
[TABLE]
Solutions with can only have two even and one odd element. This precludes solutions of the form , so we count no terms with weight . By parity considerations, we have no reduced forms of type (III). Because is not a square, we cannot have a reduced form of type . Arguing as in the previous case yields
[TABLE]
We consider the case . From (5.2) and Corollary 6.3, we have
[TABLE]
Solution tuples to have either all three odd or one even and two odd. Let us consider the contributions.
Primitive and imprimitive reduced forms of type (I) are counted by
[TABLE]
We note cannot be a square, so we have do not have any reduced forms .
In the second sum, we have either all three of are odd or one is even and two are odd. We consider the reduced form for :
[TABLE]
If all three are odd, we see so the form is imprimitive. Moreover, the form is counted with weight . If in one is even and two are odd, we have three cases to check. For example if , then the reduced form is
[TABLE]
which is counted with weight . If the form is imprimitive, we see
[TABLE]
In all three cases the reduced forms of type (II) could be primitive or imprimitive. However, imprimitive forms with even are counted with weight , the imprimitive forms with odd are counted with weight , and the primitive forms are counted with weight . What to do with this information will be clear at the end.
In the third sum, we have either all three of are odd or one is even and two are odd. Suppose we have is odd and is even. Rewriting to reflect parity, we have
[TABLE]
so we can only have all three odd. Such solutions correspond to imprimitive reduced forms of type (III). If , we have the corresponding form Because and are both odd, we see . If , we have the corresponding form Because and are both odd, we see , so there are no primitive forms of type (III). Hence the third sum counts the imprimitive reduced forms of type (III) with weight :
[TABLE]
In the fourth sum, we can only have all three of are odd. Hence the weight is . Solutions of the form correspond to the imprimitive reduced binary quadratic forms , which contribute with weight to the Hurwitz class number. Hence the fourth sum counts
[TABLE]
Assembling the above pieces, we have
[TABLE]
where is the number of imprimitive reduced forms of discriminant with odd from
[TABLE]
Thus we can write
[TABLE]
where we have used (2.4).
We consider the case . Although this case is true by simpler means, it is nice to see that our method gives the correct answer. The argument is almost exactly the same as that for the previous case; however, at the very end when we obtain
[TABLE]
we instead use (2.5), which gives
[TABLE]
8. Concluding Remarks
Authors such as Bell [2], Borwein and Choi [4], Gage [10], Lass [17], Mordell [18, 19], and Peters [21] have studied solutions to the equation
[TABLE]
It turns out that our proof of Theorem 1.4 is not unlike the methods used by Mordell [18, 19], where he counts non-negative solutions to (8.1) by establishing a correspondence with reduced binary quadratic forms with discriminant . However, our implementation is different than what one finds in [18, 19]. For example, we have to work with a weight term of , and our motivation comes from investigating limiting cases of higher-dimensional Kronecker-type identites. In counting non-negative solutions to (8.1), Mordell adopts the usual convention of assigning weight to corresponding forms of type and weight to forms of type but also assigns to corresponding forms of type where , which seems unjustified. Our approach makes clear the associated weights of and , see for example identity (5.2). Mordell does not make explicit the connection with Theorem 1.4; however, Lass [17] does relate solutions of (8.1) to sums of three squares but in a different sense.
Acknowledgements
We would like to thank Neil Sloane’s On-line Encyclopedia of Integer Sequences for directing us to references [4, 7, 21, 28], Michel Matignon for pointing out [17], Peter Sarnak for pointing out [27], and Bob Vaughan for pointing out [24]. We would also like to thank Hjalmar Rosengren and Ole Warnaar for helpful comments and suggestions.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] G. E. Andrews, Ramanujan’s fifth and seventh order mock theta functions , Trans. Amer. Math. Soc. 293 , (1986), no. 1, 113–134.
- 2[2] E. T. Bell, Class numbers and the form y z + z x + x y 𝑦 𝑧 𝑧 𝑥 𝑥 𝑦 yz+zx+xy , Tohoku Math J. Vol. 19 , 1921, 105–116.
- 3[3] Z. I. Borevich, I. R. Shafarevich, Number Theory, Pure and Applied Mathematics, Vol. 20, Academic Press, New York-London, 1966.
- 4[4] J. Borwein, K. Choi, On the representations of x y + y z + z x 𝑥 𝑦 𝑦 𝑧 𝑧 𝑥 xy+yz+zx , Experiment. Math. 9 (2000), no. 1, 153–158.
- 5[5] H. Cohen, A Course in Computational Algebraic Number Theory, Springer-Verlag Berlin Heidelberg, 1993.
- 6[6] S. Cooper, H. Y. Lam, Sums of two, four, six and eight squares and triangular numbers: an elementary approach , Indian J. Math. 44 (2002), no. 1, 21–40.
- 7[7] R. E. Crandall, New Representations for the Madelung constant , Experiment. Math. 8 (1999), no. 4, 367–379.
- 8[8] F. Diamond, J. Shurman, A First Course in Modular Forms. Graduate Texts in Mathematics, 228. Springer-Verlag, New York, 2005.
