What are the divisors of 2728?
1, 2, 4, 8, 11, 22, 31, 44, 62, 88, 124, 248, 341, 682, 1364, 2728
- There is a total of 16 positive divisors.
- The sum of these divisors is 5760.
- The arithmetic mean is 360.
12 even divisors
2, 4, 8, 22, 44, 62, 88, 124, 248, 682, 1364, 2728
4 odd divisors
1, 11, 31, 341
How to compute the divisors of 2728?
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 2728 by each of the numbers from 1 to 2728 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 2728 / 1 = 2728 (the remainder is 0, so 1 is a divisor of 2728)
- 2728 / 2 = 1364 (the remainder is 0, so 2 is a divisor of 2728)
- 2728 / 3 = 909.33333333333 (the remainder is 1, so 3 is not a divisor of 2728)
- ...
- 2728 / 2727 = 1.000366703337 (the remainder is 1, so 2727 is not a divisor of 2728)
- 2728 / 2728 = 1 (the remainder is 0, so 2728 is a divisor of 2728)
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 2728 (i.e. 52.230259428802). 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 )
- 2728 / 1 = 2728 (the remainder is 0, so 1 and 2728 are divisors of 2728)
- 2728 / 2 = 1364 (the remainder is 0, so 2 and 1364 are divisors of 2728)
- 2728 / 3 = 909.33333333333 (the remainder is 1, so 3 is not a divisor of 2728)
- ...
- 2728 / 51 = 53.490196078431 (the remainder is 25, so 51 is not a divisor of 2728)
- 2728 / 52 = 52.461538461538 (the remainder is 24, so 52 is not a divisor of 2728)