What are the divisors of 2632?
1, 2, 4, 7, 8, 14, 28, 47, 56, 94, 188, 329, 376, 658, 1316, 2632
- 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, 14, 28, 56, 94, 188, 376, 658, 1316, 2632
4 odd divisors
1, 7, 47, 329
How to compute the divisors of 2632?
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 2632 by each of the numbers from 1 to 2632 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 2632 / 1 = 2632 (the remainder is 0, so 1 is a divisor of 2632)
- 2632 / 2 = 1316 (the remainder is 0, so 2 is a divisor of 2632)
- 2632 / 3 = 877.33333333333 (the remainder is 1, so 3 is not a divisor of 2632)
- ...
- 2632 / 2631 = 1.0003800836184 (the remainder is 1, so 2631 is not a divisor of 2632)
- 2632 / 2632 = 1 (the remainder is 0, so 2632 is a divisor of 2632)
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 2632 (i.e. 51.303021353523). 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 )
- 2632 / 1 = 2632 (the remainder is 0, so 1 and 2632 are divisors of 2632)
- 2632 / 2 = 1316 (the remainder is 0, so 2 and 1316 are divisors of 2632)
- 2632 / 3 = 877.33333333333 (the remainder is 1, so 3 is not a divisor of 2632)
- ...
- 2632 / 50 = 52.64 (the remainder is 32, so 50 is not a divisor of 2632)
- 2632 / 51 = 51.607843137255 (the remainder is 31, so 51 is not a divisor of 2632)