What are the divisors of 2065?
1, 5, 7, 35, 59, 295, 413, 2065
- There is a total of 8 positive divisors.
- The sum of these divisors is 2880.
- The arithmetic mean is 360.
8 odd divisors
1, 5, 7, 35, 59, 295, 413, 2065
How to compute the divisors of 2065?
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 2065 by each of the numbers from 1 to 2065 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 2065 / 1 = 2065 (the remainder is 0, so 1 is a divisor of 2065)
- 2065 / 2 = 1032.5 (the remainder is 1, so 2 is not a divisor of 2065)
- 2065 / 3 = 688.33333333333 (the remainder is 1, so 3 is not a divisor of 2065)
- ...
- 2065 / 2064 = 1.000484496124 (the remainder is 1, so 2064 is not a divisor of 2065)
- 2065 / 2065 = 1 (the remainder is 0, so 2065 is a divisor of 2065)
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 2065 (i.e. 45.442271070007). 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 )
- 2065 / 1 = 2065 (the remainder is 0, so 1 and 2065 are divisors of 2065)
- 2065 / 2 = 1032.5 (the remainder is 1, so 2 is not a divisor of 2065)
- 2065 / 3 = 688.33333333333 (the remainder is 1, so 3 is not a divisor of 2065)
- ...
- 2065 / 44 = 46.931818181818 (the remainder is 41, so 44 is not a divisor of 2065)
- 2065 / 45 = 45.888888888889 (the remainder is 40, so 45 is not a divisor of 2065)