What are the divisors of 3927?
1, 3, 7, 11, 17, 21, 33, 51, 77, 119, 187, 231, 357, 561, 1309, 3927
- There is a total of 16 positive divisors.
- The sum of these divisors is 6912.
- The arithmetic mean is 432.
16 odd divisors
1, 3, 7, 11, 17, 21, 33, 51, 77, 119, 187, 231, 357, 561, 1309, 3927
How to compute the divisors of 3927?
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 3927 by each of the numbers from 1 to 3927 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 3927 / 1 = 3927 (the remainder is 0, so 1 is a divisor of 3927)
- 3927 / 2 = 1963.5 (the remainder is 1, so 2 is not a divisor of 3927)
- 3927 / 3 = 1309 (the remainder is 0, so 3 is a divisor of 3927)
- ...
- 3927 / 3926 = 1.0002547121752 (the remainder is 1, so 3926 is not a divisor of 3927)
- 3927 / 3927 = 1 (the remainder is 0, so 3927 is a divisor of 3927)
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 3927 (i.e. 62.665780135573). 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 )
- 3927 / 1 = 3927 (the remainder is 0, so 1 and 3927 are divisors of 3927)
- 3927 / 2 = 1963.5 (the remainder is 1, so 2 is not a divisor of 3927)
- 3927 / 3 = 1309 (the remainder is 0, so 3 and 1309 are divisors of 3927)
- ...
- 3927 / 61 = 64.377049180328 (the remainder is 23, so 61 is not a divisor of 3927)
- 3927 / 62 = 63.338709677419 (the remainder is 21, so 62 is not a divisor of 3927)