Close
Close window
numtheory(deprecated)/mobius - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : numtheory(deprecated)/mobius
[フレーム] [フレーム]

numtheory(deprecated)

mobius

Mobius function

Calling Sequence

mobius(n)

Parameters

n

-

positive integer

Description

Important: The numtheory package has been deprecated . Use the superseding command NumberTheory[Moebius] instead.

The function mobius(n) gives the Moebius function of n (lattice of divisors). It returns 1, -1, or 0 depending on the factorization of n. Note that it returns 0 if and only if n has a square factor > 1.

The command with(numtheory,mobius) allows the use of the abbreviated form of this command.

Examples

Important: The numtheory package has been deprecated . Use the superseding command NumberTheory[Moebius] instead.

>

withnumtheory:

>

mobius1

1

(1)
>

mobius20

0

(2)
>

mobius21

1

(3)
>

mobius105

−1

(4)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /