What are the divisors of 2392?
1, 2, 4, 8, 13, 23, 26, 46, 52, 92, 104, 184, 299, 598, 1196, 2392
- There is a total of 16 positive divisors.
- The sum of these divisors is 5040.
- The arithmetic mean is 315.
12 even divisors
2, 4, 8, 26, 46, 52, 92, 104, 184, 598, 1196, 2392
4 odd divisors
1, 13, 23, 299
How to compute the divisors of 2392?
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 2392 by each of the numbers from 1 to 2392 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 2392 / 1 = 2392 (the remainder is 0, so 1 is a divisor of 2392)
- 2392 / 2 = 1196 (the remainder is 0, so 2 is a divisor of 2392)
- 2392 / 3 = 797.33333333333 (the remainder is 1, so 3 is not a divisor of 2392)
- ...
- 2392 / 2391 = 1.0004182350481 (the remainder is 1, so 2391 is not a divisor of 2392)
- 2392 / 2392 = 1 (the remainder is 0, so 2392 is a divisor of 2392)
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 2392 (i.e. 48.90807704255). 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 )
- 2392 / 1 = 2392 (the remainder is 0, so 1 and 2392 are divisors of 2392)
- 2392 / 2 = 1196 (the remainder is 0, so 2 and 1196 are divisors of 2392)
- 2392 / 3 = 797.33333333333 (the remainder is 1, so 3 is not a divisor of 2392)
- ...
- 2392 / 47 = 50.893617021277 (the remainder is 42, so 47 is not a divisor of 2392)
- 2392 / 48 = 49.833333333333 (the remainder is 40, so 48 is not a divisor of 2392)