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 rir_i to rk(i)r_k(i) for 0≤i<n0 \le i < n, the first nn coefficients of

ϑ3(q)k=(∑j∈Zqj2)k,\vartheta_3(q)^k = \Bigl(\sum_{j \in \mathbb{Z}} q^{j^2}\Bigr)^k,

computed from the sparse expansions of ϑ3\vartheta_3 and ϑ32\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-11-02).