MoebiusMu
calculate the Möbius function.
MoebiusMu(n) = 1
ifn
is a square-free integer with an even number of prime factors.MoebiusMu(n) = −1
ifn
is a square-free integer with an odd number of prime factors.MoebiusMu(n) = 0
ifn
has a squared prime factor.
See:
Examples
Implementation status
- ☑ - partially implemented