What are the divisors of 3805?
1, 5, 761, 3805
- There is a total of 4 positive divisors.
- The sum of these divisors is 4572.
- The arithmetic mean is 1143.
4 odd divisors
1, 5, 761, 3805
How to compute the divisors of 3805?
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 3805 by each of the numbers from 1 to 3805 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 3805 / 1 = 3805 (the remainder is 0, so 1 is a divisor of 3805)
- 3805 / 2 = 1902.5 (the remainder is 1, so 2 is not a divisor of 3805)
- 3805 / 3 = 1268.3333333333 (the remainder is 1, so 3 is not a divisor of 3805)
- ...
- 3805 / 3804 = 1.0002628811777 (the remainder is 1, so 3804 is not a divisor of 3805)
- 3805 / 3805 = 1 (the remainder is 0, so 3805 is a divisor of 3805)
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 3805 (i.e. 61.684682053165). 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 )
- 3805 / 1 = 3805 (the remainder is 0, so 1 and 3805 are divisors of 3805)
- 3805 / 2 = 1902.5 (the remainder is 1, so 2 is not a divisor of 3805)
- 3805 / 3 = 1268.3333333333 (the remainder is 1, so 3 is not a divisor of 3805)
- ...
- 3805 / 60 = 63.416666666667 (the remainder is 25, so 60 is not a divisor of 3805)
- 3805 / 61 = 62.377049180328 (the remainder is 23, so 61 is not a divisor of 3805)