NumberTheory
Moebius
Moebius function
Calling Sequence
Parameters
Description
Examples
Compatibility
Moebius(n)
Möbius(n)
mu(n)
μ⁡n
n
-
positive integer
The Moebius(n) command computes the Moebius function of the positive integer n.
If n is divisible by the square of a prime number, then Moebius(n) is equal to 0. Otherwise, Moebius(n) is equal to 1 if n has an even number of prime factors, and is equal to -1 if n has an odd number of prime factors.
Möbius and mu are aliases of Moebius.
You can enter the command mu using either the 1-D or 2-D calling sequence. For example, mu(8) is equivalent to μ⁡8.
with⁡NumberTheory:
Moebius⁡1
1
Moebius⁡33⋅5
0
Moebius⁡3⋅5⋅7
−1
Moebius⁡23⋅11
The Möbius function is multiplicative as an arithmetic function. That is, if n and m are coprime then Moebius(n*m) = Moebius(n)*Moebius(m).
igcd⁡5657,31945103
μ⁡5657⋅31945103
μ⁡5657⁢μ⁡31945103
The first 50 values for the Moebius function are plotted below:
plots:-pointplot⁡seq⁡n,Moebius⁡n,n=1..50,labels=n,μ⁡n,symbol=soliddiamond,symbolsize=15,color=OrangeRed,size=600,400,tickmarks=default,−1,0,1
The NumberTheory[Moebius] command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
Download Help Document