numtheory/divisors(deprecated) - Help

numtheory

 divisors
 the set of positive divisors

 Calling Sequence divisors(n)

Parameters

 n - integer

Description

 • Important: The numtheory[divisors] command has been deprecated.  Use the superseding command NumberTheory[Divisors] instead.
 • The function divisors will compute the set of positive divisors of its integer argument n.
 • The command with(numtheory,divisors) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{numtheory}\right):$
 > $\mathrm{divisors}\left(-9\right)$
 $\left\{{1}{,}{3}{,}{9}\right\}$ (1)
 > $\mathrm{τ}\left(-9\right)$
 ${3}$ (2)
 > $\mathrm{divisors}\left(0\right)$
 $\left\{{}\right\}$ (3)
 > $\mathrm{τ}\left(0\right)$
 ${0}$ (4)
 > $\mathrm{divisors}\left(1\right)$
 $\left\{{1}\right\}$ (5)
 > $\mathrm{τ}\left(1\right)$
 ${1}$ (6)
 > $\mathrm{divisors}\left(10\right)$
 $\left\{{1}{,}{2}{,}{5}{,}{10}\right\}$ (7)
 > $\mathrm{τ}\left(10\right)$
 ${4}$ (8)
 > $\mathrm{divisors}\left(20\right)$
 $\left\{{1}{,}{2}{,}{4}{,}{5}{,}{10}{,}{20}\right\}$ (9)
 > $\mathrm{τ}\left(20\right)$
 ${6}$ (10)