sum of divisors - Maple Help

Home : Support : Online Help : Mathematics : Group Theory : Number Theory : numtheory/sigma

numtheory[sigma] - sum of divisors

 Calling Sequence sigma(n) sigma[k](n)

Parameters

 k - integer n - integer

Description

 • The function sigma(n) will compute the sum of the positive divisors of n.
 • The function sigma[k](n)  will compute the sum of the kth power of positive divisors of n.
 • This function is part of the numtheory package, and so can be used in the form sigma[..](..) only after performing the command with(numtheory) or with(numtheory, sigma).  The function sigma(..) can always be accessed in the above form or the long form numtheory[sigma](..).

Examples

 > $\mathrm{with}\left(\mathrm{numtheory}\right):$
 > $\mathrm{σ}\left(9\right)$
 ${13}$ (1)
 > $\mathrm{divisors}\left(100\right)$
 $\left\{{1}{,}{2}{,}{4}{,}{5}{,}{10}{,}{20}{,}{25}{,}{50}{,}{100}\right\}$ (2)
 > $\mathrm{σ}\left(100\right)$
 ${217}$ (3)
 > ${\mathrm{σ}}_{0}\left(100\right)$
 ${9}$ (4)
 > $\mathrm{τ}\left(100\right)$
 ${9}$ (5)