Sum of divisors function (divisor_sigma)
Sum of the powers of the divisors of a whole number.
How to write it
divisor_sigma(n)
The sum of the divisors.
- n
- A whole number. Takes a whole number.
divisor_sigma(k, n)
The sum of the k-th powers of the divisors.
- k
- The power. Takes a whole number.
- n
- A whole number. Takes a whole number.
Examples
divisor_sigma(12)In the solver,
Open in the solverdivisor_sigma(12)gives28.divisor_sigma(2, 12)In the solver,
Open in the solverdivisor_sigma(2, 12)gives210.
Related functions
- divisor_sum
Sum of the positive divisors of a whole number.
- divisor_count
How many positive divisors a whole number has.
- divisors
The positive divisors of a whole number, in increasing order.
- discrete_log
The exponent that takes a base to a value modulo a number.
- euler_e
The n-th Euler number.
- convergents
The convergents of a continued fraction.