DivisorSigma
The sum of the kth powers of the divisors of n.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Divisor functionMathWorldDivisorFunctionWikidataQ915474DLMF27.2.E1027.2.E927.2.i.p4FungrimDivisorSigmaFungrim entry7c00e6Wolfram LanguageDivisorSigma!DivisorSigma(k, n)sum of the th powers of the divisors of .SageMath
sigma(n, k)SymPydivisor_sigma(n, k)Juliadivisor_sigma(ZZ(n), Int(k))Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer) -> integer | compute-engine | always |
(number, number, any*) -> number | number-theoryreplaces compute-engine | always |
Details
- gives the divisor count ; gives the ordinary sum of divisors.
- Multiplicative: whenever .
- A perfect number satisfies , as with 6 and 28.
- A negative order sums reciprocal powers: .
Plot
Examples
Scope #
Properties #
About
| Examples | 31 |
|---|---|
| Checked against | Wolfram Language 29 agree2 differSageMath 17 agree6 errorSymPy 15 agree8 errormathlib4 14 agree8 errorJulia 15 agree7 error |
| Crosswalk | WikipediaMathWorldWikidataDLMF ×3FungrimFungrim entryWolfram LanguageSageMathSymPyJulia |
Implementation
mapped
sympypackages/oracle/src/mappings.tsSymPy's divisor_sigma takes (n, k), the reverse of our (k, n).
mapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
mathlib4packages/oracle/src/mappings.tsArithmeticFunction.sigma k n = the sum of the kth powers of the divisors of n, with sigma k 0 = 0; natural k and n only.
See also: Divisors