FLINT3.7.0-dev

fmpz_divisor_sigma

Synopsis#include <flint/fmpz.h>
void fmpz_divisor_sigma(fmpz_t res, ulong k, const fmpz_t n)source

Sets res to \sigma_k(|n|), the sum of the k-th powers of the positive divisors of n, and to 0 for n = 0. Factors n.

Cite this page

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