FLINT3.7.0-dev

arb_power_sum_vec

Synopsis#include <flint/arb.h>
void arb_power_sum_vec(arb_ptr res, const arb_t a, const arb_t b, slong len, slong prec)source

Sets res[n] to S_n(a, b) = (B_{n+1}(b) - B_{n+1}(a))/(n+1) for 0 \le n < \mathit{len}, which equals \sum_{k=a}^{b-1} k^n for integers b \ge a. The values are computed together from the generating function of the Bernoulli polynomials.

Cite this page

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