What are the divisors of 681?
1, 3, 227, 681
- There is a total of 4 positive divisors.
- The sum of these divisors is 912.
- The arithmetic mean is 228.
4 odd divisors
1, 3, 227, 681
How to compute the divisors of 681?
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 681 by each of the numbers from 1 to 681 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 681 / 1 = 681 (the remainder is 0, so 1 is a divisor of 681)
- 681 / 2 = 340.5 (the remainder is 1, so 2 is not a divisor of 681)
- 681 / 3 = 227 (the remainder is 0, so 3 is a divisor of 681)
- ...
- 681 / 680 = 1.0014705882353 (the remainder is 1, so 680 is not a divisor of 681)
- 681 / 681 = 1 (the remainder is 0, so 681 is a divisor of 681)
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 681 (i.e. 26.0959767014). 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 )
- 681 / 1 = 681 (the remainder is 0, so 1 and 681 are divisors of 681)
- 681 / 2 = 340.5 (the remainder is 1, so 2 is not a divisor of 681)
- 681 / 3 = 227 (the remainder is 0, so 3 and 227 are divisors of 681)
- ...
- 681 / 25 = 27.24 (the remainder is 6, so 25 is not a divisor of 681)
- 681 / 26 = 26.192307692308 (the remainder is 5, so 26 is not a divisor of 681)