NumberTheory - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Numbers : NumberTheory/LargestNthPower

NumberTheory

  

LargestNthPower

  

largest integer power divisor of a number

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

LargestNthPower(m, n)

Parameters

m

-

integer

n

-

positive integer

Description

• 

The LargestNthPower(m, n) command computes the greatest positive integer b such that bn divides m.

• 

Every positive integer is a divisor of 0, so there is no greatest positive integer b such that bn divides 0. For this reason, LargestNthPower(0, n) returns an error.

Examples

with(NumberTheory):

LargestNthPower(m^2, 1);

m2

(1)

LargestNthPower(-1, exp(k));

1

(2)

LargestNthPower(0, k);

Error, (in NumberTheory:-LargestNthPower) there is no largest integer which, raised to the power k, divides 0

The greatest integer power divisor can be seen from the prime factorization.

LargestNthPower(2^2 * 3^4 * 5^3, 2);

90

(3)

ifactor(90);

2325

(4)

Compatibility

• 

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

• 

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

See Also

NumberTheory