FLINT3.7.0-dev

arith_sum_of_squares_vec

Synopsis#include <flint/arith.h>
void arith_sum_of_squares_vec(fmpz * r, ulong k, slong n)source

Sets r_i to r_k(i) for 0 \le i < n, the first n coefficients of

\vartheta_3(q)^k = \Bigl(\sum_{j \in \mathbb{Z}} q^{j^2}\Bigr)^k,

computed from the sparse expansions of \vartheta_3 and \vartheta_3^2 and a truncated power.

Cite this page

The FLINT team, “arith_sum_of_squares_vec (arith.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arith/arith_sum_of_squares_vec.html (generated 2026-10-20).