What are the divisors of 1393?
1, 7, 199, 1393
- There is a total of 4 positive divisors.
- The sum of these divisors is 1600.
- The arithmetic mean is 400.
4 odd divisors
1, 7, 199, 1393
How to compute the divisors of 1393?
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 1393 by each of the numbers from 1 to 1393 to determine which ones have a remainder equal to 0.
(where is the integer part of the quotient)
- 1393 / 1 = 1393 (the remainder is 0, so 1 is a divisor of 1393)
- 1393 / 2 = 696.5 (the remainder is 1, so 2 is not a divisor of 1393)
- 1393 / 3 = 464.33333333333 (the remainder is 1, so 3 is not a divisor of 1393)
- ...
- 1393 / 1392 = 1.0007183908046 (the remainder is 1, so 1392 is not a divisor of 1393)
- 1393 / 1393 = 1 (the remainder is 0, so 1393 is a divisor of 1393)
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 1393 (i.e. 37.322915213043). 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 )
- 1393 / 1 = 1393 (the remainder is 0, so 1 and 1393 are divisors of 1393)
- 1393 / 2 = 696.5 (the remainder is 1, so 2 is not a divisor of 1393)
- 1393 / 3 = 464.33333333333 (the remainder is 1, so 3 is not a divisor of 1393)
- ...
- 1393 / 36 = 38.694444444444 (the remainder is 25, so 36 is not a divisor of 1393)
- 1393 / 37 = 37.648648648649 (the remainder is 24, so 37 is not a divisor of 1393)