numlib::moebius -- Möbius
function
Introductionnumlib::moebius(n) returns the value of
the Möbius function at n.
Call(s)numlib::moebius(n)
Parametersn |
- | a natural number |
Returnsnumlib::moebius(n) returns a nonnegative
integer.
Related
Functions
Detailsn is a natural number
numlib::moebius(n) returns the value of the
Möbius function in n.n is not a number,
numlib::moebius(n) returns the function call
with its argument evaluated.numlib::moebius returns an error if the argument
evaluates to a number of wrong type.
Example
1Computing the value of the Möbius function in :
>> numlib::moebius(99937)
0
Example
2Computing the value of the Möbius function in
:
>> numlib::moebius(453973694165307953197296969697410619233826)
-1
Backgroundifactor is used for factoring
n.