NumberTheory - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Numbers : Integer Functions : NumberTheory/Divisors

NumberTheory

  

Divisors

  

the set of positive divisors of an integer

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Divisors(n)

Parameters

n

-

integer

Description

• 

The Divisors function computes the set of positive divisors of n.

• 

Every positive integer is a divisor of 0, but one cannot represent the set of all positive integers as an enumerated set. Therefore, Divisors(0) returns an error.

Examples

withNumberTheory:

Divisors12

1,2,3,4,6,12

(1)

Divisors1

1

(2)

Divisors57

1,3,19,57

(3)

andmapd→not2∈d,seqDivisors4n1,n=1..10

true

(4)

Divisors101

1,101

(5)

Divisors0

Error, (in NumberTheory:-Divisors) cannot represent all positive divisors of 0

Compatibility

• 

The NumberTheory[Divisors] command was introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

See Also

NumberTheory