# 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

- $\displaystyle \operatorname{divisors}(28) = \left[ 1, 2, 4, 7, 14, 28 \right]$

  `divisors(28)`

  In the solver, `divisors(28)` gives `[1, 2, 4, 7, 14, 28]`.

  [Open in the solver](https://hilberon.com/?q=divisors%2828%29)

## Related functions

- [euler_e](https://hilberon.com/library/euler_e)

  The n-th Euler number.
- [divisor_sum](https://hilberon.com/library/divisor_sum)

  Sum of the positive divisors of a whole number.
- [euler_phi](https://hilberon.com/library/euler_phi)

  Euler's totient: how many whole numbers up to n are coprime to n.
- [divisor_sigma](https://hilberon.com/library/divisor_sigma)

  Sum of the powers of the divisors of a whole number.
- [extended_gcd](https://hilberon.com/library/extended_gcd)

  Greatest common divisor of two whole numbers with the multipliers that give it.
- [divisor_count](https://hilberon.com/library/divisor_count)

  How many positive divisors a whole number has.

---
Source: https://hilberon.com/library/divisors
