What are the divisors of 220?
1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110, 220
- There is a total of 12 positive divisors.
- The sum of these divisors is 504.
- The arithmetic mean is 42.
8 even divisors
2, 4, 10, 20, 22, 44, 110, 220
4 odd divisors
1, 5, 11, 55
How to compute the divisors of 220?
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 220 by each of the numbers from 1 to 220 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 220 / 1 = 220 (the remainder is 0, so 1 is a divisor of 220)
- 220 / 2 = 110 (the remainder is 0, so 2 is a divisor of 220)
- 220 / 3 = 73.333333333333 (the remainder is 1, so 3 is not a divisor of 220)
- ...
- 220 / 219 = 1.0045662100457 (the remainder is 1, so 219 is not a divisor of 220)
- 220 / 220 = 1 (the remainder is 0, so 220 is a divisor of 220)
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 220 (i.e. 14.832396974191). 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 )
- 220 / 1 = 220 (the remainder is 0, so 1 and 220 are divisors of 220)
- 220 / 2 = 110 (the remainder is 0, so 2 and 110 are divisors of 220)
- 220 / 3 = 73.333333333333 (the remainder is 1, so 3 is not a divisor of 220)
- ...
- 220 / 13 = 16.923076923077 (the remainder is 12, so 13 is not a divisor of 220)
- 220 / 14 = 15.714285714286 (the remainder is 10, so 14 is not a divisor of 220)