## `numlib::moebius` -- Möbius function

#### Introduction

`numlib::moebius``(n)` returns the value of the Möbius function at `n`.

#### Call(s)

`numlib::moebius(n)`

#### Parameters

`n` | - | a natural number

#### Returns

`numlib::moebius``(n)` returns a nonnegative integer.

#### Related Functions

`numlib::lambda`, `numlib::phi`

#### Details

- If `n` is a natural number `numlib::moebius``(n)` returns the value of the Möbius function in `n`.
- If `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 1

Computing the value of the Möbius function in :

    >> numlib::moebius(99937)

                                         0

#### Example 2

Computing the value of the Möbius function in

:

    >> numlib::moebius(453973694165307953197296969697410619233826)

                                        -1

#### Background

- Internally, `ifactor` is used for factoring `n`.

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000