What are the divisors of 4334?

1, 2, 11, 22, 197, 394, 2167, 4334

4 even divisors

2, 22, 394, 4334

4 odd divisors

1, 11, 197, 2167

How to compute the divisors of 4334?

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.

N mod M = 0

Brute force algorithm

We could start by using a brute-force method which would involve dividing 4334 by each of the numbers from 1 to 4334 to determine which ones have a remainder equal to 0.

Remainder = N ( M × N M )

(where N M is the integer part of the quotient)

  • 4334 / 1 = 4334 (the remainder is 0, so 1 is a divisor of 4334)
  • 4334 / 2 = 2167 (the remainder is 0, so 2 is a divisor of 4334)
  • 4334 / 3 = 1444.6666666667 (the remainder is 2, so 3 is not a divisor of 4334)
  • ...
  • 4334 / 4333 = 1.0002307869836 (the remainder is 1, so 4333 is not a divisor of 4334)
  • 4334 / 4334 = 1 (the remainder is 0, so 4334 is a divisor of 4334)

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 4334 (i.e. 65.833122362531). Indeed, if a number N has a divisor D greater than its square root, then there is necessarily a smaller divisor d such that:

D × d = N

(thus, if N D = d , then N d = D )

  • 4334 / 1 = 4334 (the remainder is 0, so 1 and 4334 are divisors of 4334)
  • 4334 / 2 = 2167 (the remainder is 0, so 2 and 2167 are divisors of 4334)
  • 4334 / 3 = 1444.6666666667 (the remainder is 2, so 3 is not a divisor of 4334)
  • ...
  • 4334 / 64 = 67.71875 (the remainder is 46, so 64 is not a divisor of 4334)
  • 4334 / 65 = 66.676923076923 (the remainder is 44, so 65 is not a divisor of 4334)