What are the divisors of 2937?
1, 3, 11, 33, 89, 267, 979, 2937
- There is a total of 8 positive divisors.
- The sum of these divisors is 4320.
- The arithmetic mean is 540.
8 odd divisors
1, 3, 11, 33, 89, 267, 979, 2937
How to compute the divisors of 2937?
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 2937 by each of the numbers from 1 to 2937 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 2937 / 1 = 2937 (the remainder is 0, so 1 is a divisor of 2937)
- 2937 / 2 = 1468.5 (the remainder is 1, so 2 is not a divisor of 2937)
- 2937 / 3 = 979 (the remainder is 0, so 3 is a divisor of 2937)
- ...
- 2937 / 2936 = 1.000340599455 (the remainder is 1, so 2936 is not a divisor of 2937)
- 2937 / 2937 = 1 (the remainder is 0, so 2937 is a divisor of 2937)
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 2937 (i.e. 54.194095619357). 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 )
- 2937 / 1 = 2937 (the remainder is 0, so 1 and 2937 are divisors of 2937)
- 2937 / 2 = 1468.5 (the remainder is 1, so 2 is not a divisor of 2937)
- 2937 / 3 = 979 (the remainder is 0, so 3 and 979 are divisors of 2937)
- ...
- 2937 / 53 = 55.415094339623 (the remainder is 22, so 53 is not a divisor of 2937)
- 2937 / 54 = 54.388888888889 (the remainder is 21, so 54 is not a divisor of 2937)