What are the divisors of 5436?
1, 2, 3, 4, 6, 9, 12, 18, 36, 151, 302, 453, 604, 906, 1359, 1812, 2718, 5436
- There is a total of 18 positive divisors.
- The sum of these divisors is 13832.
- The arithmetic mean is 768.44444444444.
12 even divisors
2, 4, 6, 12, 18, 36, 302, 604, 906, 1812, 2718, 5436
6 odd divisors
1, 3, 9, 151, 453, 1359
How to compute the divisors of 5436?
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 5436 by each of the numbers from 1 to 5436 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 5436 / 1 = 5436 (the remainder is 0, so 1 is a divisor of 5436)
- 5436 / 2 = 2718 (the remainder is 0, so 2 is a divisor of 5436)
- 5436 / 3 = 1812 (the remainder is 0, so 3 is a divisor of 5436)
- ...
- 5436 / 5435 = 1.0001839926403 (the remainder is 1, so 5435 is not a divisor of 5436)
- 5436 / 5436 = 1 (the remainder is 0, so 5436 is a divisor of 5436)
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 5436 (i.e. 73.729234364667). 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 )
- 5436 / 1 = 5436 (the remainder is 0, so 1 and 5436 are divisors of 5436)
- 5436 / 2 = 2718 (the remainder is 0, so 2 and 2718 are divisors of 5436)
- 5436 / 3 = 1812 (the remainder is 0, so 3 and 1812 are divisors of 5436)
- ...
- 5436 / 72 = 75.5 (the remainder is 36, so 72 is not a divisor of 5436)
- 5436 / 73 = 74.465753424658 (the remainder is 34, so 73 is not a divisor of 5436)