paper

Finding elementary formulas for theta functions associated to even sums of squares

arXiv:1111.0572 · doi:10.1016/j.indag.2011.07.002

Abstract

This article discusses the classical problem of how to calculate , the number of ways to represent an integer by a sum of squares from a computational efficiency viewpoint. Although this problem has been studied in great detail, there are very few formulas given for the purpose of computing quickly. More precisely, for fixed , we want a formula for that computes in log-polynomial time (with respect to ) when the prime factorization of is given. Restricting to even , we can view , the theta function associated to sums of squares, as a modular form of weight on . In particular, we show that for only a small finite list of can be written as a linear combination consisting entirely of Eisenstein series and cusp forms with complex multiplication. These are the only that give rise to "elementary" formulas for , i.e. formulas such that for a prime , can be calculated in $\cO(\log(p))$-time. Viewing as one of the simpler examples of modular forms that are not strictly Eisenstein, this result motivates the necessity of a log-polynomial time algorithm that directly calculates the Fourier coefficients of modular forms in the generic situation when there is no such formula, as described in Couveignes and Edixhoven's forthcoming book (for level 1 cases) and Peter Bruin's Ph.D. thesis (for higher level, including 4).

arXiv comment14 pages