numtheory/issqrfree(deprecated) - Help

numtheory

 issqrfree
 test if integer is square free

 Calling Sequence issqrfree(n)

Parameters

 n - integer

Description

 • Important: The numtheory[issqrfree] command has been deprecated.  Use the superseding command NumberTheory[IsSquareFree] instead.
 • The function issqrfree(n) returns true if n is square free, and false otherwise. The integer n is square free if it is not divisible by a perfect square.
 • The command with(numtheory,issqrfree) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{numtheory}\right):$
 > $\mathrm{ifactor}\left(20\right)$
 ${{}\left({2}\right)}^{{2}}{}{}\left({5}\right)$ (1)
 > $\mathrm{issqrfree}\left(20\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{ifactor}\left(21\right)$
 ${}\left({3}\right){}{}\left({7}\right)$ (3)
 > $\mathrm{issqrfree}\left(21\right)$
 ${\mathrm{true}}$ (4)