What are the divisors of 3811?
1, 37, 103, 3811
- There is a total of 4 positive divisors.
- The sum of these divisors is 3952.
- The arithmetic mean is 988.
4 odd divisors
1, 37, 103, 3811
How to compute the divisors of 3811?
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 3811 by each of the numbers from 1 to 3811 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 3811 / 1 = 3811 (the remainder is 0, so 1 is a divisor of 3811)
- 3811 / 2 = 1905.5 (the remainder is 1, so 2 is not a divisor of 3811)
- 3811 / 3 = 1270.3333333333 (the remainder is 1, so 3 is not a divisor of 3811)
- ...
- 3811 / 3810 = 1.0002624671916 (the remainder is 1, so 3810 is not a divisor of 3811)
- 3811 / 3811 = 1 (the remainder is 0, so 3811 is a divisor of 3811)
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 3811 (i.e. 61.733297336203). 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 )
- 3811 / 1 = 3811 (the remainder is 0, so 1 and 3811 are divisors of 3811)
- 3811 / 2 = 1905.5 (the remainder is 1, so 2 is not a divisor of 3811)
- 3811 / 3 = 1270.3333333333 (the remainder is 1, so 3 is not a divisor of 3811)
- ...
- 3811 / 60 = 63.516666666667 (the remainder is 31, so 60 is not a divisor of 3811)
- 3811 / 61 = 62.475409836066 (the remainder is 29, so 61 is not a divisor of 3811)