Skip to main content
MBA Compass Logo
MBA Compassby B School Buzz
arithmetic

Number of divisors (d(N)) from prime factorisation

intermediate
High weightage
CAT
XAT
NMAT
SNAP
CMAT
IIFT
MAT
If\; N = \prod_{i=1}^{k} p_{i}^{\alpha_{i}},\; then\; d(N) = \prod_{i=1}^{k} (\alpha_{i} + 1)
If N = expresses the prime factorisation of an integer N, then d(N)=gives the total number of positive divisors of N. Here N (unitless integer) is the number being factored, are distinct prime bases (unitless), and non-negative integers) are their exponents. Intuition: any divisor is formed by choosing for each prime an exponent between 0 and inclusive, so there are (choices per prime and choices multiply by the fundamental counting principle. Algebraically this counts ordered tuples of exponents; geometrically you may visualise a k-dimensional box of integer lattice points from which divisors correspond to grid points. Edge cases: if N=1 (no prime factors) the empty product convention gives d(1)=1. This formula requires correct prime factorisation; for non-integers it doesn't apply.

Related formulas