FLINT3.7.0-dev

arith_divisors

Synopsis#include <flint/arith.h>
void arith_divisors(fmpz_poly_t res, const fmpz_t n)source

Sets the coefficients of res to the positive divisors of |n| in increasing order (so res has length \sigma_0(n)), and to the zero polynomial if n = 0. Uses a table for |n| < \mathtt{FLINT\_BITS} and otherwise factors n with fmpz_factor and generates the products of prime powers.

Cite this page

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