Toolkit 33

Number of Positive Divisors

n=p1α1p2α2pkαkn=p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_k^{\alpha_k}
Number of positive divisors of n:  (α1+1)(α2+1)(αk+1)\text{Number of positive divisors of }n:\;(\alpha_1+1)(\alpha_2+1)\cdots(\alpha_k+1)

Proof

Suppose

n=p1α1p2α2pkαk,n = p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_k^{\alpha_k},

where p1,p2,,pkp_1, p_2, \ldots, p_k are distinct primes. Every positive divisor dd of nn has a unique form

d=p1β1p2β2pkβk,d = p_1^{\beta_1}p_2^{\beta_2}\cdots p_k^{\beta_k},

where

0β1α1,0β2α2,,0βkαk.0\le\beta_1\le\alpha_1, \quad 0\le\beta_2\le\alpha_2, \quad\ldots,\quad 0\le\beta_k\le\alpha_k.

There are α1+1\alpha_1+1 possible choices for β1\beta_1, namely 0,1,,α10, 1, \ldots, \alpha_1. Similarly, there are α2+1\alpha_2+1 choices for β2\beta_2, and so on. Since these choices are independent, the total number of positive divisors of nn is

(α1+1)(α2+1)(αk+1).(\alpha_1+1)(\alpha_2+1)\cdots(\alpha_k+1). \quad\square