What are the divisors of 1305?
1, 3, 5, 9, 15, 29, 45, 87, 145, 261, 435, 1305
- There is a total of 12 positive divisors.
- The sum of these divisors is 2340.
- The arithmetic mean is 195.
12 odd divisors
1, 3, 5, 9, 15, 29, 45, 87, 145, 261, 435, 1305
How to compute the divisors of 1305?
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 1305 by each of the numbers from 1 to 1305 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 1305 / 1 = 1305 (the remainder is 0, so 1 is a divisor of 1305)
- 1305 / 2 = 652.5 (the remainder is 1, so 2 is not a divisor of 1305)
- 1305 / 3 = 435 (the remainder is 0, so 3 is a divisor of 1305)
- ...
- 1305 / 1304 = 1.0007668711656 (the remainder is 1, so 1304 is not a divisor of 1305)
- 1305 / 1305 = 1 (the remainder is 0, so 1305 is a divisor of 1305)
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 1305 (i.e. 36.124783736377). 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 )
- 1305 / 1 = 1305 (the remainder is 0, so 1 and 1305 are divisors of 1305)
- 1305 / 2 = 652.5 (the remainder is 1, so 2 is not a divisor of 1305)
- 1305 / 3 = 435 (the remainder is 0, so 3 and 435 are divisors of 1305)
- ...
- 1305 / 35 = 37.285714285714 (the remainder is 10, so 35 is not a divisor of 1305)
- 1305 / 36 = 36.25 (the remainder is 9, so 36 is not a divisor of 1305)