Significance
There are many links between the areas of combinatorics (counting problems), number theory, and complex analysis. We apply a technique to study combinatorial problems via product formulas for their generating functions. We apply these to a certain class of functions for which the product formulas are particularly nice, but the approach may be applied to the study of other combinatorial problems whose generating functions are modular forms, and we believe that these may lead to a number of interesting identities in the future.
Keywords: representations of integers, weighted representations, polygonal numbers, Jacobi triple product identity, modular forms
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.
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 [respectively (resp.), ] denote the number of ways to write as the sum of an even (resp., odd) number of nonzero 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
For every , we have
where
Equivalently, writing with , we have
Remark:
Enumerating the representations of as a sum of arbitrarily many squares in the shape (for some and )
one can interpret the sum occurring on the left-hand side of Theorem 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 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
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 2
For every , we have
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
be the -th generalized -gonal number. Following the definitions in the previous 2 cases, we define with (, resp.) being the number of ways to write as a sum of an even (odd, resp.) number of nonzero generalized -gonal numbers.
Theorem 3
For , we have
where
Remark:
Although the formulas in Theorem 3 do not hold for and , it is worth noting that one can interpret the formulas in Theorems 1, 2, and 3 uniformly by counting the instances of the congruences occurring in Theorem 3 with multiplicity.
By completing the square, one may interpret the statements in Theorems 1, 2, and 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
| [1] |
We then denote as before.
Theorem 4
Suppose and . We have
where
We write , , and to mean the sums over the underlying sets , , and , respectively.
Remark:
In the case , a modified version of Theorem 4 (see the proof of Theorem 2) holds where is replaced with , where as in the definition of , the indicates that we only take in the definition Eq. 1. For , one may consider Theorem 4 to hold if one interprets to occur with multiplicity 3 and to occur with multiplicity 2 in the congruences in the definition of .
The proofs of the above theorems make use of product formulas for the unary theta functions (writing )
Indeed, the appearing in Theorem 1 are closely related to the well-known identity
for the standard theta function
Product formulas such as these naturally appeared in work of Bruinier, Kohnen, and Ono (1) while investigating divisors of modular forms. A detailed investigation of these product formulas was then carried by Kohnen and Mason (2). Mason and W.K. obtained a recursive identity involving multinomial coefficients and the Fourier coefficients of the original modular form. Namely,
where is the -th Fourier coefficient. It would be interesting to see if one can use the representation from ref. 2 in order to directly prove the identities, such as the one in Theorem 1. Conversely, it may be interesting to further investigate whether the 2 different representations yield new identities between different combinatorial objects.
Theorem 1 implies that the sum giving in ref. 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 4. 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
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 ref. 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, 2, 3, and 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
| [2] |
Similarly, for
| [3] |
while for
| [4] |
Proposition 5
Let be given with .
-
i)
If , then we have
| [5] |
-
i)
If , then we have
| [6] |
Proof:
Applying the Jacobi triple-product identity gives that
| [7] |
Taking the logarithmic derivative of Eq. 7, we obtain
| [8] |
1) Under the assumption that , we write
and note that
| [9] |
where
| [10] |
Writing with yields that
Therefore, with notation as above, we may write Eq. 9 as
| [11] |
Comparing Fourier coefficients of Eq. 8 with Eq. 11, we obtain Eq. 5.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 Eq. 10 with for every . To factor out by the symmetry, we rewrite as
and, expanding the geometric series after accounting for the 2 minimal elements,
| [12] |
Comparing Fourier coefficients of Eq. 12 with Eq. 8 together with Eq. 4 yields Eq. 6.
Theorem 4 now follows immediately from Proposition 5 (1).
Proof of Theorem 4:
When and , plugging Eq. 2 into Eq. 5 yields Theorem 4.
We next move on to the special case of sums of -gonal numbers in Theorems 1, 2, and 3, which are essentially nice ways to rewrite Proposition 5. We begin with the general case.
Proof of Theorem 3:
Setting and in Eq. 5 and noting that
we have
| [13] |
where
Notice that unless . Making the change of variables in Eq. 13 and dividing both sides by , we complete the proof of Theorem 3.
The case of Proposition 5 (1) corresponds to the case of squares.
Proof of Theorem 1:
For , we rewrite Eq. 5 using Eq. 3 as
Replacing by , and noting that
we obtain
Moreover, since if , the sum on the right-hand side equals
where
Dividing both sides by gives Theorem 1.
Finally, we obtain the claim for sums of triangular numbers by using Proposition 5 (2).
Proof of Theorem 2:
Note that
Using this and replacing by in Eq. 6 yields that
where
The last equality is valid because unless . Dividing both sides by , we have
as claimed in Theorem 2.
Acknowledgments
We thank the anonymous referee for their careful reading and helpful comments on the earlier version of this paper. B.K. was supported by Research Grants Council of the Hong Kong SAR, China Projects HKU 17302515, 17316416, 17301317, and 17303618.
Footnotes
The authors declare no conflict of interest.
This article is a PNAS Direct Submission.
References
- 1.Bruinier J. H., Kohnen W., Ono K., The arithmetic of the values of modular functions and the divisors of modular forms. Compos. Math. 140, 552–566 (2004). [Google Scholar]
- 2.Kohnen W., Mason G., On generalized modular forms and their applications. Nagoya Math. J. 192, 119–136 (2008). [Google Scholar]
- 3.Oliver R. J. L., Eta-quotients and theta functions. Adv. Math. 241, 1–17 (2013). [Google Scholar]
- 4.Shimura G., On modular forms of half integral weight. Ann. Math. 97, 440–481 (1973). [Google Scholar]
