What are the divisors of 4130?
1, 2, 5, 7, 10, 14, 35, 59, 70, 118, 295, 413, 590, 826, 2065, 4130
- There is a total of 16 positive divisors.
- The sum of these divisors is 8640.
- The arithmetic mean is 540.
8 even divisors
2, 10, 14, 70, 118, 590, 826, 4130
8 odd divisors
1, 5, 7, 35, 59, 295, 413, 2065
How to compute the divisors of 4130?
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 4130 by each of the numbers from 1 to 4130 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 4130 / 1 = 4130 (the remainder is 0, so 1 is a divisor of 4130)
- 4130 / 2 = 2065 (the remainder is 0, so 2 is a divisor of 4130)
- 4130 / 3 = 1376.6666666667 (the remainder is 2, so 3 is not a divisor of 4130)
- ...
- 4130 / 4129 = 1.0002421893921 (the remainder is 1, so 4129 is not a divisor of 4130)
- 4130 / 4130 = 1 (the remainder is 0, so 4130 is a divisor of 4130)
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 4130 (i.e. 64.265076052239). 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 )
- 4130 / 1 = 4130 (the remainder is 0, so 1 and 4130 are divisors of 4130)
- 4130 / 2 = 2065 (the remainder is 0, so 2 and 2065 are divisors of 4130)
- 4130 / 3 = 1376.6666666667 (the remainder is 2, so 3 is not a divisor of 4130)
- ...
- 4130 / 63 = 65.555555555556 (the remainder is 35, so 63 is not a divisor of 4130)
- 4130 / 64 = 64.53125 (the remainder is 34, so 64 is not a divisor of 4130)