NumberTheory

 calculate the radical of an integer

Parameters

 n - integer

Description

 • The Radical( n ) function computes the radical of the nonzero integer n. The radical of a nonzero integer is the product of its prime divisors. The radical of any nonzero integer is, therefore, a square-free integer.
 • The radical of $0$ is not defined; an exception is raised if 0 is passed.
 • A positive integer is equal to its radical precisely when it is square-free.

Examples

 > $\mathrm{with}\left(\mathrm{NumberTheory}\right):$
 > $\mathrm{Radical}\left(12\right)$
 ${6}$ (1)
 > $\mathrm{Radical}\left(6\right)$
 ${6}$ (2)
 > $\mathrm{Radical}\left(-12\right)$
 ${6}$ (3)

Compatibility

 • The NumberTheory[Radical] command was introduced in Maple 2017.