What are the divisors of 8091?
1, 3, 9, 29, 31, 87, 93, 261, 279, 899, 2697, 8091
- There is a total of 12 positive divisors.
- The sum of these divisors is 12480.
- The arithmetic mean is 1040.
12 odd divisors
1, 3, 9, 29, 31, 87, 93, 261, 279, 899, 2697, 8091
How to compute the divisors of 8091?
A number N is said to be divisible by a number M (with M non-zero) if, when we divide N by M, the remainder of the division is zero.
Brute force algorithm
We could start by using a brute-force method which would involve dividing 8091 by each of the numbers from 1 to 8091 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 8091 / 1 = 8091 (the remainder is 0, so 1 is a divisor of 8091)
- 8091 / 2 = 4045.5 (the remainder is 1, so 2 is not a divisor of 8091)
- 8091 / 3 = 2697 (the remainder is 0, so 3 is a divisor of 8091)
- ...
- 8091 / 8090 = 1.0001236093943 (the remainder is 1, so 8090 is not a divisor of 8091)
- 8091 / 8091 = 1 (the remainder is 0, so 8091 is a divisor of 8091)
Improved algorithm using square-root
However, there is another slightly better approach that reduces the number of iterations by testing only integers less than or equal to the square root of 8091 (i.e. 89.94998610339). Indeed, if a number N has a divisor D greater than its square root, then there is necessarily a smaller divisor d such that:
(thus, if , then )
- 8091 / 1 = 8091 (the remainder is 0, so 1 and 8091 are divisors of 8091)
- 8091 / 2 = 4045.5 (the remainder is 1, so 2 is not a divisor of 8091)
- 8091 / 3 = 2697 (the remainder is 0, so 3 and 2697 are divisors of 8091)
- ...
- 8091 / 88 = 91.943181818182 (the remainder is 83, so 88 is not a divisor of 8091)
- 8091 / 89 = 90.910112359551 (the remainder is 81, so 89 is not a divisor of 8091)