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 σk(∣n∣)\sigma_k(|n|), the sum of the kk-th powers of the positive divisors of nn, and to 0 for n=0n = 0. Factors nn.

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-11-02).