NumberTheory - Maple Programming Help

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

NumberTheory

 LargestNthPower
 largest integer power divisor of a number

 Calling Sequence LargestNthPower(m, n)

Parameters

 m - non-zero integer n - positive integer

Description

 • The LargestNthPower(m, n) command computes the greatest positive integer $b$ such that ${b}^{n}$ divides m.

Examples

 > $\mathrm{with}\left(\mathrm{NumberTheory}\right):$
 > $\mathrm{LargestNthPower}\left({m}^{2},1\right)$
 ${{m}}^{{2}}$ (1)
 > $\mathrm{LargestNthPower}\left(-1,{ⅇ}^{k}\right)$
 ${1}$ (2)

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

 > $\mathrm{LargestNthPower}\left({2}^{2}{3}^{4}{5}^{3},2\right)$
 ${90}$ (3)
 > $\mathrm{ifactor}\left(90\right)$
 ${}\left({2}\right){}{{}\left({3}\right)}^{{2}}{}{}\left({5}\right)$ (4)

Compatibility

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