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∣|n| in increasing order (so res has length σ0(n)\sigma_0(n)), and to the zero polynomial if n=0n = 0. Uses a table for ∣n∣<FLINT_BITS|n| < \mathtt{FLINT\_BITS} and otherwise factors nn 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-11-02).