arith_divisors
Synopsis
#include <flint/arith.h>void arith_divisors(fmpz_poly_t res, const fmpz_t n)sourceSets 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).
@misc{flint-doc-arith-arith-divisors,
author = {{The FLINT team}},
title = {{arith\_divisors (arith.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arith/arith_divisors.html},
note = {Generated 2026-10-20}
}