What are the divisors of 2332?
1, 2, 4, 11, 22, 44, 53, 106, 212, 583, 1166, 2332
- There is a total of 12 positive divisors.
- The sum of these divisors is 4536.
- The arithmetic mean is 378.
8 even divisors
2, 4, 22, 44, 106, 212, 1166, 2332
4 odd divisors
1, 11, 53, 583
How to compute the divisors of 2332?
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 2332 by each of the numbers from 1 to 2332 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 2332 / 1 = 2332 (the remainder is 0, so 1 is a divisor of 2332)
- 2332 / 2 = 1166 (the remainder is 0, so 2 is a divisor of 2332)
- 2332 / 3 = 777.33333333333 (the remainder is 1, so 3 is not a divisor of 2332)
- ...
- 2332 / 2331 = 1.000429000429 (the remainder is 1, so 2331 is not a divisor of 2332)
- 2332 / 2332 = 1 (the remainder is 0, so 2332 is a divisor of 2332)
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 2332 (i.e. 48.290785870599). 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 )
- 2332 / 1 = 2332 (the remainder is 0, so 1 and 2332 are divisors of 2332)
- 2332 / 2 = 1166 (the remainder is 0, so 2 and 1166 are divisors of 2332)
- 2332 / 3 = 777.33333333333 (the remainder is 1, so 3 is not a divisor of 2332)
- ...
- 2332 / 47 = 49.617021276596 (the remainder is 29, so 47 is not a divisor of 2332)
- 2332 / 48 = 48.583333333333 (the remainder is 28, so 48 is not a divisor of 2332)