What are the divisors of 4922?
1, 2, 23, 46, 107, 214, 2461, 4922
- There is a total of 8 positive divisors.
- The sum of these divisors is 7776.
- The arithmetic mean is 972.
4 even divisors
2, 46, 214, 4922
4 odd divisors
1, 23, 107, 2461
How to compute the divisors of 4922?
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 4922 by each of the numbers from 1 to 4922 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 4922 / 1 = 4922 (the remainder is 0, so 1 is a divisor of 4922)
- 4922 / 2 = 2461 (the remainder is 0, so 2 is a divisor of 4922)
- 4922 / 3 = 1640.6666666667 (the remainder is 2, so 3 is not a divisor of 4922)
- ...
- 4922 / 4921 = 1.0002032107295 (the remainder is 1, so 4921 is not a divisor of 4922)
- 4922 / 4922 = 1 (the remainder is 0, so 4922 is a divisor of 4922)
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 4922 (i.e. 70.156966867162). 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 )
- 4922 / 1 = 4922 (the remainder is 0, so 1 and 4922 are divisors of 4922)
- 4922 / 2 = 2461 (the remainder is 0, so 2 and 2461 are divisors of 4922)
- 4922 / 3 = 1640.6666666667 (the remainder is 2, so 3 is not a divisor of 4922)
- ...
- 4922 / 69 = 71.333333333333 (the remainder is 23, so 69 is not a divisor of 4922)
- 4922 / 70 = 70.314285714286 (the remainder is 22, so 70 is not a divisor of 4922)