What are the divisors of 1495?
1, 5, 13, 23, 65, 115, 299, 1495
- There is a total of 8 positive divisors.
- The sum of these divisors is 2016.
- The arithmetic mean is 252.
8 odd divisors
1, 5, 13, 23, 65, 115, 299, 1495
How to compute the divisors of 1495?
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 1495 by each of the numbers from 1 to 1495 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 1495 / 1 = 1495 (the remainder is 0, so 1 is a divisor of 1495)
- 1495 / 2 = 747.5 (the remainder is 1, so 2 is not a divisor of 1495)
- 1495 / 3 = 498.33333333333 (the remainder is 1, so 3 is not a divisor of 1495)
- ...
- 1495 / 1494 = 1.0006693440428 (the remainder is 1, so 1494 is not a divisor of 1495)
- 1495 / 1495 = 1 (the remainder is 0, so 1495 is a divisor of 1495)
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 1495 (i.e. 38.665229858362). 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 )
- 1495 / 1 = 1495 (the remainder is 0, so 1 and 1495 are divisors of 1495)
- 1495 / 2 = 747.5 (the remainder is 1, so 2 is not a divisor of 1495)
- 1495 / 3 = 498.33333333333 (the remainder is 1, so 3 is not a divisor of 1495)
- ...
- 1495 / 37 = 40.405405405405 (the remainder is 15, so 37 is not a divisor of 1495)
- 1495 / 38 = 39.342105263158 (the remainder is 13, so 38 is not a divisor of 1495)