What are the divisors of 88?
1, 2, 4, 8, 11, 22, 44, 88
- There is a total of 8 positive divisors.
- The sum of these divisors is 180.
- The arithmetic mean is 22.5.
6 even divisors
2, 4, 8, 22, 44, 88
2 odd divisors
1, 11
How to compute the divisors of 88?
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 88 by each of the numbers from 1 to 88 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 88 / 1 = 88 (the remainder is 0, so 1 is a divisor of 88)
- 88 / 2 = 44 (the remainder is 0, so 2 is a divisor of 88)
- 88 / 3 = 29.333333333333 (the remainder is 1, so 3 is not a divisor of 88)
- ...
- 88 / 87 = 1.0114942528736 (the remainder is 1, so 87 is not a divisor of 88)
- 88 / 88 = 1 (the remainder is 0, so 88 is a divisor of 88)
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 88 (i.e. 9.3808315196469). 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 )
- 88 / 1 = 88 (the remainder is 0, so 1 and 88 are divisors of 88)
- 88 / 2 = 44 (the remainder is 0, so 2 and 44 are divisors of 88)
- 88 / 3 = 29.333333333333 (the remainder is 1, so 3 is not a divisor of 88)
- ...
- 88 / 8 = 11 (the remainder is 0, so 8 and 11 are divisors of 88)
- 88 / 9 = 9.7777777777778 (the remainder is 7, so 9 is not a divisor of 88)