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 μ(∣n∣)\mu(|n|): 0 if nn has a square factor >1> 1, otherwise (−1)k(-1)^k for kk prime factors; μ(0)=0\mu(0) = 0. Factors nn 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-11-02).