What are the divisors of 5877?
1, 3, 9, 653, 1959, 5877
- There is a total of 6 positive divisors.
- The sum of these divisors is 8502.
- The arithmetic mean is 1417.
6 odd divisors
1, 3, 9, 653, 1959, 5877
How to compute the divisors of 5877?
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 5877 by each of the numbers from 1 to 5877 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 5877 / 1 = 5877 (the remainder is 0, so 1 is a divisor of 5877)
- 5877 / 2 = 2938.5 (the remainder is 1, so 2 is not a divisor of 5877)
- 5877 / 3 = 1959 (the remainder is 0, so 3 is a divisor of 5877)
- ...
- 5877 / 5876 = 1.0001701837985 (the remainder is 1, so 5876 is not a divisor of 5877)
- 5877 / 5877 = 1 (the remainder is 0, so 5877 is a divisor of 5877)
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 5877 (i.e. 76.661594035084). 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 )
- 5877 / 1 = 5877 (the remainder is 0, so 1 and 5877 are divisors of 5877)
- 5877 / 2 = 2938.5 (the remainder is 1, so 2 is not a divisor of 5877)
- 5877 / 3 = 1959 (the remainder is 0, so 3 and 1959 are divisors of 5877)
- ...
- 5877 / 75 = 78.36 (the remainder is 27, so 75 is not a divisor of 5877)
- 5877 / 76 = 77.328947368421 (the remainder is 25, so 76 is not a divisor of 5877)