What are the divisors of 4070?
1, 2, 5, 10, 11, 22, 37, 55, 74, 110, 185, 370, 407, 814, 2035, 4070
- There is a total of 16 positive divisors.
- The sum of these divisors is 8208.
- The arithmetic mean is 513.
8 even divisors
2, 10, 22, 74, 110, 370, 814, 4070
8 odd divisors
1, 5, 11, 37, 55, 185, 407, 2035
How to compute the divisors of 4070?
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 4070 by each of the numbers from 1 to 4070 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 4070 / 1 = 4070 (the remainder is 0, so 1 is a divisor of 4070)
- 4070 / 2 = 2035 (the remainder is 0, so 2 is a divisor of 4070)
- 4070 / 3 = 1356.6666666667 (the remainder is 2, so 3 is not a divisor of 4070)
- ...
- 4070 / 4069 = 1.0002457606291 (the remainder is 1, so 4069 is not a divisor of 4070)
- 4070 / 4070 = 1 (the remainder is 0, so 4070 is a divisor of 4070)
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 4070 (i.e. 63.796551630946). 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 )
- 4070 / 1 = 4070 (the remainder is 0, so 1 and 4070 are divisors of 4070)
- 4070 / 2 = 2035 (the remainder is 0, so 2 and 2035 are divisors of 4070)
- 4070 / 3 = 1356.6666666667 (the remainder is 2, so 3 is not a divisor of 4070)
- ...
- 4070 / 62 = 65.645161290323 (the remainder is 40, so 62 is not a divisor of 4070)
- 4070 / 63 = 64.603174603175 (the remainder is 38, so 63 is not a divisor of 4070)