FLINT3.7.0-dev

bernoulli_zeta_terms

Synopsis#include <flint/bernoulli.h>
slong bernoulli_zeta_terms(ulong s, slong prec)source

Returns the number N of terms of the zeta series \sum_{j \le N} j^{-s} needed for an error below 2^{-\mathit{prec}}: about 2^{(\mathit{prec} + 1)/(s - 1)}, made odd.

Cite this page

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