What are the divisors of 4585?
1, 5, 7, 35, 131, 655, 917, 4585
- There is a total of 8 positive divisors.
- The sum of these divisors is 6336.
- The arithmetic mean is 792.
8 odd divisors
1, 5, 7, 35, 131, 655, 917, 4585
How to compute the divisors of 4585?
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 4585 by each of the numbers from 1 to 4585 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 4585 / 1 = 4585 (the remainder is 0, so 1 is a divisor of 4585)
- 4585 / 2 = 2292.5 (the remainder is 1, so 2 is not a divisor of 4585)
- 4585 / 3 = 1528.3333333333 (the remainder is 1, so 3 is not a divisor of 4585)
- ...
- 4585 / 4584 = 1.0002181500873 (the remainder is 1, so 4584 is not a divisor of 4585)
- 4585 / 4585 = 1 (the remainder is 0, so 4585 is a divisor of 4585)
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 4585 (i.e. 67.712628068921). 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 )
- 4585 / 1 = 4585 (the remainder is 0, so 1 and 4585 are divisors of 4585)
- 4585 / 2 = 2292.5 (the remainder is 1, so 2 is not a divisor of 4585)
- 4585 / 3 = 1528.3333333333 (the remainder is 1, so 3 is not a divisor of 4585)
- ...
- 4585 / 66 = 69.469696969697 (the remainder is 31, so 66 is not a divisor of 4585)
- 4585 / 67 = 68.432835820896 (the remainder is 29, so 67 is not a divisor of 4585)