find the largest nth power in a number - Maple Help

Home : Support : Online Help : Mathematics : Group Theory : Numbers : numtheory/nthpow

numtheory[nthpow] - find the largest nth power in a number

 Calling Sequence nthpow(m, n)

Parameters

 m - non-zero integer n - natural number

Description

 • The function nthpow will return ${b}^{n}$ where b is the greatest natural number such that ${b}^{n}$ divides m.
 • The command with(numtheory,nthpow) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{numtheory}\right):$
 > $\mathrm{nthpow}\left(4,2\right)$
 ${{}\left({2}\right)}^{{2}}$ (1)
 > $\mathrm{nthpow}\left(250,3\right)$
 ${{}\left({5}\right)}^{{3}}$ (2)