What are the divisors of 4037?
1, 11, 367, 4037
- There is a total of 4 positive divisors.
- The sum of these divisors is 4416.
- The arithmetic mean is 1104.
4 odd divisors
1, 11, 367, 4037
How to compute the divisors of 4037?
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 4037 by each of the numbers from 1 to 4037 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 4037 / 1 = 4037 (the remainder is 0, so 1 is a divisor of 4037)
- 4037 / 2 = 2018.5 (the remainder is 1, so 2 is not a divisor of 4037)
- 4037 / 3 = 1345.6666666667 (the remainder is 2, so 3 is not a divisor of 4037)
- ...
- 4037 / 4036 = 1.0002477700694 (the remainder is 1, so 4036 is not a divisor of 4037)
- 4037 / 4037 = 1 (the remainder is 0, so 4037 is a divisor of 4037)
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 4037 (i.e. 63.5373905665). 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 )
- 4037 / 1 = 4037 (the remainder is 0, so 1 and 4037 are divisors of 4037)
- 4037 / 2 = 2018.5 (the remainder is 1, so 2 is not a divisor of 4037)
- 4037 / 3 = 1345.6666666667 (the remainder is 2, so 3 is not a divisor of 4037)
- ...
- 4037 / 62 = 65.112903225806 (the remainder is 7, so 62 is not a divisor of 4037)
- 4037 / 63 = 64.079365079365 (the remainder is 5, so 63 is not a divisor of 4037)