up previous next
MoebiusFn    --    Moebius function mu on the whole numbers


Syntax
MoebiusFn(N: INT): INT

Description
This function returns the value of the Moebius function mu at the point N. It represents the sum of the primitive N-th roots of unity and is always -1, 0, or 1.



Example
/**/ MoebiusFn(5);
-1
/**/ MoebiusFn(8);
0
/**/ MoebiusFn(10);
1