Divisors of a number (divisors)
The positive divisors of a whole number, in increasing order.
How to write it
divisors(n)
- n
- A positive whole number. Takes a whole number.
Examples
divisors(28)In the solver,
Open in the solverdivisors(28)gives[1, 2, 4, 7, 14, 28].
Related functions
- euler_e
The n-th Euler number.
- divisor_sum
Sum of the positive divisors of a whole number.
- euler_phi
Euler's totient: how many whole numbers up to n are coprime to n.
- divisor_sigma
Sum of the powers of the divisors of a whole number.
- extended_gcd
Greatest common divisor of two whole numbers with the multipliers that give it.
- divisor_count
How many positive divisors a whole number has.