numtheory(deprecated)/mobius - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : numtheory(deprecated)/mobius

numtheory(deprecated)

  

mobius

  

Mobius function

 

Calling Sequence

Parameters

Description

Examples

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)

See Also

NumberTheory[Moebius]

numtheory(deprecated)[issqrfree]