Skip to content

MoebiusMu

MoebiusMu(expr)

calculate the Möbius function.

  • MoebiusMu(n) = 1 if n is a square-free integer with an even number of prime factors.
  • MoebiusMu(n) = −1 if n is a square-free integer with an odd number of prime factors.
  • MoebiusMu(n) = 0 if n has a squared prime factor.

See:

Examples

>> MoebiusMu(30)
-1
>> FactorInteger(30)
{{2,1},{3,1},{5,1}}

Implementation status

  • ☑ - partially implemented

Github