What are the divisors of 5319?
1, 3, 9, 27, 197, 591, 1773, 5319
- There is a total of 8 positive divisors.
- The sum of these divisors is 7920.
- The arithmetic mean is 990.
8 odd divisors
1, 3, 9, 27, 197, 591, 1773, 5319
How to compute the divisors of 5319?
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 5319 by each of the numbers from 1 to 5319 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 5319 / 1 = 5319 (the remainder is 0, so 1 is a divisor of 5319)
- 5319 / 2 = 2659.5 (the remainder is 1, so 2 is not a divisor of 5319)
- 5319 / 3 = 1773 (the remainder is 0, so 3 is a divisor of 5319)
- ...
- 5319 / 5318 = 1.0001880406168 (the remainder is 1, so 5318 is not a divisor of 5319)
- 5319 / 5319 = 1 (the remainder is 0, so 5319 is a divisor of 5319)
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 5319 (i.e. 72.931474686859). 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 )
- 5319 / 1 = 5319 (the remainder is 0, so 1 and 5319 are divisors of 5319)
- 5319 / 2 = 2659.5 (the remainder is 1, so 2 is not a divisor of 5319)
- 5319 / 3 = 1773 (the remainder is 0, so 3 and 1773 are divisors of 5319)
- ...
- 5319 / 71 = 74.915492957746 (the remainder is 65, so 71 is not a divisor of 5319)
- 5319 / 72 = 73.875 (the remainder is 63, so 72 is not a divisor of 5319)