Interesting identities involving weighted representations of integers as sums of arbitrarily many squares
Min-Joo Jang, Ben Kane, Winfried Kohnen, Siu-Hang Man

TL;DR
This paper derives formulas for counting weighted representations of positive integers as sums of squares and polygonal numbers, linking these counts to Fourier coefficients of weight two quasimodular forms.
Contribution
It introduces new formulas for weighted sums of representations of integers as sums of squares and polygonal numbers, connecting them to quasimodular forms.
Findings
Formulas for weighted counts of sums of squares and polygonal numbers
Connection between weighted sums and Fourier coefficients of quasimodular forms
Extension to arbitrarily many summands
Abstract
In this paper, we obtain formulas for the number of representations of positive integers as sums of arbitrarily many squares (and other polygonal numbers) with a certain natural weighting. The resulting weighted sums give Fourier coefficients of weight two quasimodular forms.
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.
Interesting identities involving weighted representations of integers as sums of arbitrarily many squares
Min-Joo Jang
Department of Mathematics, University of Hong Kong, Pokfulam, Hong Kong
,
Ben Kane
Department of Mathematics, University of Hong Kong, Pokfulam, Hong Kong
,
Winfried Kohnen
Mathematisches Institut, Universität Heidelberg, INF 288, 69210, Heidelberg, Germany
and
Siu Hang Man
Mathematisches Institut, Georg-August-Universität Göttingen, Wilhelmsplatz 1, 37073 Göttingen, Germany
Abstract.
We consider the number of ways to write an integer as a sum of squares, a problem with a long history going back at least to Fermat. The previous studies in this area generally fix the number of squares which may occur and then either use algebraic techniques or connect these to coefficients of certain complex analytic functions with many symmetries known as modular forms, from which one may use techniques in complex and real analysis to study these numbers. In this paper, we consider sums with arbitrarily many squares, but give a certain natural weighting to each representation. Although there are a very large number of such representations of each integer, we see that the weighting induces massive cancellation and we furthermore prove that these weighted sums are again coefficients of modular forms, giving precise formulas for them in terms of sums of divisors of the integer being represented.
2010 Mathematics Subject Classification:
05A15,05A17, 11E45,11F11,11F37
The research of the second author was supported by grants from the Research Grants Council of the Hong Kong SAR, China (project numbers HKU 17302515, 17316416, 17301317, and 17303618).
1. Introduction and statement of results
There are many papers involving representations of integers as sums of a fixed number of squares and their relations with modular forms. In this paper, we consider representations of integers as the sum of arbitrarily many squares and relate this to quasimodular forms by weighting the representations in a certain way. To state the result, for a positive integer , let (resp. ) denote the number of ways to write as the sum of an even (resp. odd) number of non-zero squares (taking and by convention because we include empty representations of in our count throughout the paper). We next see that the difference of these, namely , has an interesting relationship with certain sums of divisor functions which naturally arise as Fourier coefficients of weight two (quasi-)modular forms.
Theorem 1.1**.**
For every we have
[TABLE]
where
[TABLE]
Equivalently, writing with , we have
[TABLE]
Remark*.*
Enumerating the representatations of as a sum of arbitrarily many squares in the shape (for some and )
[TABLE]
one can interpret the sum occurring on the left-hand side of Theorem 1.1 as a sum over all such representations weighted by , where is a “distinguished” square occurring in the representation (note that every distinct plays the role of the “distinguished” square as we run through all ).
The phenomenon observed in Theorem 1.1 is not an isolated one. A similar result holds for representations of as a sum of arbitrarily many triangular numbers. Let (resp. denote the number of representations of as a sum
[TABLE]
with even (resp. odd) where , with , denotes the -th triangular number; throughout this paper we assume for triangular numbers that in order to remove ambiguity in the representations coming from the fact that . Analogously to the case of squares, we set to be the excess of the number of such representations with an even number of triangular numbers. Here and throughout, we use ‘’ in a superscript to indicate that we only take elements in instead of .
Theorem 1.2**.**
For every , we have
[TABLE]
Moreover, the phenomenon is not restricted to squares or triangular numbers, but occurs for arbitrary representations of integers as sums of generalized polygonal numbers. For and , let
[TABLE]
be the -th generalized -gonal number. Following the definitions in the previous two cases, we define with ( resp.) being the number of ways to write as a sum of an even (odd resp.) number of non-zero generalized -gonal numbers.
Theorem 1.3**.**
For we have
[TABLE]
where
[TABLE]
Remark*.*
Although the formulas in Theorem 1.3 do not hold for and , it is worth noting that one can interpret the formulas in Theorems 1.1, 1.2, and 1.3 uniformly by counting the instances of the congruences occurring in Theorem 1.3 with multiplicity.
By completing the square, one may interpret the statements in Theorems 1.1, 1.2, and 1.3 as statements about representations of integers as sums of squares with certain congruence conditions. Indeed, these formulas hold for representations of integers as sums of squares with arbitrary congruence conditions. Define (resp. ) for and satisfying by
[TABLE]
We then denote as before.
Theorem 1.4**.**
Suppose and . We have
[TABLE]
where
[TABLE]
We write , , and to mean the sums over the underlying sets , , and respectively.
Remark*.*
In the case , a modified version of Theorem 1.4 (see the proof of Theorem 1.2) holds where is replaced with , where as in the definition of , the indicates that we only take in the definition (1.1). For , one may consider Theorem 1.4 to hold if one interprets to occur with multiplicity and to occur with multiplicity in the congruences in the definition of .
The proofs of the above theorems make use of product formulas for the unary theta functions (writing )
[TABLE]
Indeed, the appearing in Theorem 1.1 are closely related to the well-known identity
[TABLE]
for the standard theta function
[TABLE]
Product formulas such as these naturally appeared in work of Bruinier, Ono, and the third author [1] while investigating divisors of modular forms. A detailed investigation of these product formulas was then carried by Mason and the third author [2]. Mason and the third author obtained a recursive identity involving multinomial coefficients and the Fourier coefficients of the original modular form. Namely,
[TABLE]
where is the -th Fourier coefficient. It would be interesting to see if one can use the representation from [2] in order to directly prove the identities, such as the one in Theorem 1.1. Conversely, it may be interesting to further investigate whether the two different representations yield new identities between different combinatorial objects.
Theorem 1.1 implies that the sum giving in [2] exhibits massive cancellation, as one can see that there are exponentially many terms (as a function of ) in the sum, but the value is a constant depending only on modulo . This cancellation is very delicate, and relies on the fact that the theta functions do not vanish in the upper half-plane. Even slightly modifying the theta function will yield a function for which the series defining does not exhibit this behavior. One such family of functions occurs by twisting the coefficients by a character , defining
[TABLE]
However, Lemke Oliver [3] proved that there are only finitely many characters for which may be written as an -quotient.
Since this cancellation is governed by the fact that vanishes only at the cusps (i.e., it does not have a root in the upper half-plane), from this perspective it is natural to wonder whether one can directly prove that only vanishes at the cusps. An amusing calculation involving the full modularity properties of as given in [4] together with the valence formula and a careful evaluation of the resulting Gauss sums leads to such a proof (at least in the case when is the power of an odd prime).
2. Proof of the theorems
Theorems 1.1, 1.2, 1.3, and 1.4 are all essentially corollaries of one proposition. To state the proposition, for a given with , we define as follows. If and , then we have
[TABLE]
Similarly, for
[TABLE]
while for
[TABLE]
Proposition 2.1**.**
Let be given with .
- (1)
If , then we have
[TABLE] 2. (2)
If , then we have
[TABLE]
Proof.
Applying the Jacobi triple product identity gives that
[TABLE]
Taking the logarithmic derivative of (2.6), we obtain
[TABLE]
(1) Under the assumption that , we write
[TABLE]
and note that
[TABLE]
Since , is the unique element among with minimal. Hence for sufficiently large we have , and thus one may expand the geometric series to obtain
[TABLE]
where
[TABLE]
Writing with yields that
[TABLE]
Therefore, with notation as above, we may write (2.8) as
[TABLE]
Comparing Fourier coefficients of (2.7) with (2.10), we obtain (2.4).
(2) When , we note that and are both minimal elements in terms of absolute value in . It is hence natural to quotient out by the symmetry and we modify the definition of in this case by defining to be the number of elements in (2.9) with for every . To factor out by the symmetry, we rewrite as
[TABLE]
and, expanding the geometric series after accounting for the two minimal elements,
[TABLE]
Comparing Fourier coefficients of (2.11) with (2.7) together with (2.3) yields (2.5).
∎
Theorem 1.4 now follows immediately from Proposition 2.1 (1).
Proof of Theorem 1.4.
When and , plugging (2.1) into (2.4) yields Theorem 1.4. ∎
We next move on to the special case of sums of -gonal numbers in Theorems 1.1, 1.2, and 1.3, which are essentially nice ways to rewrite Proposition 2.1. We begin with the general case.
Proof of Theorem 1.3.
Setting and in (2.4) and noting that
[TABLE]
we have
[TABLE]
where
[TABLE]
Notice that unless . Making the change of variables in (2.12) and divididng both sides by , we complete the proof of Theorem 1.3. ∎
The case of Proposition 2.1 (1) corresponds to the case of squares.
Proof of Theorem 1.1.
For , we rewrite (2.4) using (2.2) as
[TABLE]
Replacing by , and noting that
[TABLE]
we obtain
[TABLE]
Moreover, since if , the sum on the right-hand side equals
[TABLE]
where
[TABLE]
Dividing both sides by gives Theorem 1.1. ∎
Finally, we obtain the claim for sums of triangular numbers by using Proposition 2.1 (2).
Proof of Theorem 1.2.
Note that
[TABLE]
Using this and replacing by in (2.5) yields that
[TABLE]
where
[TABLE]
The last equality is valid because unless . Dividing both sides by , we have
[TABLE]
as claimed in Theorem 1.2. ∎
Acknowledgements
The authors thank the anonymous referee for their careful reading and helpful comments on the earlier version of this paper.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J. Bruinier, W. Kohnen, and K. Ono, The arithmetic of the values of modular functions and the divisors of modular forms , Compositio Math. 130 (2004), 552–566.
- 2[2] W. Kohnen and G. Mason, On generalized modular forms and their applications , Nagoya Math J. 192 (2008), 119–136.
- 3[3] R. Lemke Oliver, Eta-quotients and theta functions , Adv. Math 241 (2013), 1–17.
- 4[4] G. Shimura, On modular forms of half integral weight , Ann. Math 97 (1973), 440–481.
