FLINT3.7.0-dev

fmpz_moebius_mu

Synopsis#include <flint/fmpz.h>
int fmpz_moebius_mu(const fmpz_t n)source

Returns the Möbius function \mu(|n|): 0 if n has a square factor > 1, otherwise (-1)^k for k prime factors; \mu(0) = 0. Factors n unless it fits in a word.

Cite this page

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