What are the divisors of 5363?

1, 31, 173, 5363

4 odd divisors

1, 31, 173, 5363

How to compute the divisors of 5363?

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 5363 by each of the numbers from 1 to 5363 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)

  • 5363 / 1 = 5363 (the remainder is 0, so 1 is a divisor of 5363)
  • 5363 / 2 = 2681.5 (the remainder is 1, so 2 is not a divisor of 5363)
  • 5363 / 3 = 1787.6666666667 (the remainder is 2, so 3 is not a divisor of 5363)
  • ...
  • 5363 / 5362 = 1.0001864975755 (the remainder is 1, so 5362 is not a divisor of 5363)
  • 5363 / 5363 = 1 (the remainder is 0, so 5363 is a divisor of 5363)

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 5363 (i.e. 73.232506443519). 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 )

  • 5363 / 1 = 5363 (the remainder is 0, so 1 and 5363 are divisors of 5363)
  • 5363 / 2 = 2681.5 (the remainder is 1, so 2 is not a divisor of 5363)
  • 5363 / 3 = 1787.6666666667 (the remainder is 2, so 3 is not a divisor of 5363)
  • ...
  • 5363 / 72 = 74.486111111111 (the remainder is 35, so 72 is not a divisor of 5363)
  • 5363 / 73 = 73.465753424658 (the remainder is 34, so 73 is not a divisor of 5363)