What are the divisors of 3740?
1, 2, 4, 5, 10, 11, 17, 20, 22, 34, 44, 55, 68, 85, 110, 170, 187, 220, 340, 374, 748, 935, 1870, 3740
- There is a total of 24 positive divisors.
- The sum of these divisors is 9072.
- The arithmetic mean is 378.
16 even divisors
2, 4, 10, 20, 22, 34, 44, 68, 110, 170, 220, 340, 374, 748, 1870, 3740
8 odd divisors
1, 5, 11, 17, 55, 85, 187, 935
How to compute the divisors of 3740?
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 3740 by each of the numbers from 1 to 3740 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 3740 / 1 = 3740 (the remainder is 0, so 1 is a divisor of 3740)
- 3740 / 2 = 1870 (the remainder is 0, so 2 is a divisor of 3740)
- 3740 / 3 = 1246.6666666667 (the remainder is 2, so 3 is not a divisor of 3740)
- ...
- 3740 / 3739 = 1.0002674511902 (the remainder is 1, so 3739 is not a divisor of 3740)
- 3740 / 3740 = 1 (the remainder is 0, so 3740 is a divisor of 3740)
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 3740 (i.e. 61.155539405683). 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 )
- 3740 / 1 = 3740 (the remainder is 0, so 1 and 3740 are divisors of 3740)
- 3740 / 2 = 1870 (the remainder is 0, so 2 and 1870 are divisors of 3740)
- 3740 / 3 = 1246.6666666667 (the remainder is 2, so 3 is not a divisor of 3740)
- ...
- 3740 / 60 = 62.333333333333 (the remainder is 20, so 60 is not a divisor of 3740)
- 3740 / 61 = 61.311475409836 (the remainder is 19, so 61 is not a divisor of 3740)