divisor_sum function
Sum of the positive divisors of a whole number.
How to write it
divisor_sum(n)
- n
- A whole number. Takes a whole number.
Examples
divisor_sum(12)In the solver,
Open in the solverdivisor_sum(12)gives28.
Related functions
- divisor_sigma
Sum of the powers of the 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.
- euler_e
The n-th Euler number.
- euler_phi
Euler's totient: how many whole numbers up to n are coprime to n.
- discrete_log
The exponent that takes a base to a value modulo a number.