FLINT3.7.0-dev

arith_euler_number_vec

Synopsis#include <flint/arith.h>
void arith_euler_number_vec(fmpz * res, slong n)source

Sets res to E_0, E_1, \ldots, E_{n-1}, for n \ge 0.

The even-indexed |E_{2k}| are computed by inverting the power series of \cosh modulo primes of \mathtt{FLINT\_BITS} - 1 bits, as many as arith_euler_number_size requires, and recovered by Chinese remaindering, using for each entry only as many primes as it needs.

Cite this page

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