What are the divisors of 3885?
1, 3, 5, 7, 15, 21, 35, 37, 105, 111, 185, 259, 555, 777, 1295, 3885
- There is a total of 16 positive divisors.
- The sum of these divisors is 7296.
- The arithmetic mean is 456.
16 odd divisors
1, 3, 5, 7, 15, 21, 35, 37, 105, 111, 185, 259, 555, 777, 1295, 3885
How to compute the divisors of 3885?
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 3885 by each of the numbers from 1 to 3885 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 3885 / 1 = 3885 (the remainder is 0, so 1 is a divisor of 3885)
- 3885 / 2 = 1942.5 (the remainder is 1, so 2 is not a divisor of 3885)
- 3885 / 3 = 1295 (the remainder is 0, so 3 is a divisor of 3885)
- ...
- 3885 / 3884 = 1.0002574665294 (the remainder is 1, so 3884 is not a divisor of 3885)
- 3885 / 3885 = 1 (the remainder is 0, so 3885 is a divisor of 3885)
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 3885 (i.e. 62.32976816899). 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 )
- 3885 / 1 = 3885 (the remainder is 0, so 1 and 3885 are divisors of 3885)
- 3885 / 2 = 1942.5 (the remainder is 1, so 2 is not a divisor of 3885)
- 3885 / 3 = 1295 (the remainder is 0, so 3 and 1295 are divisors of 3885)
- ...
- 3885 / 61 = 63.688524590164 (the remainder is 42, so 61 is not a divisor of 3885)
- 3885 / 62 = 62.661290322581 (the remainder is 41, so 62 is not a divisor of 3885)