Maths WorkshopMaths problems with full solutions
Exercise 925Number theory › Divisibility and gcdL1Added 3 Nov 2026

Number of divisors

#divisors#prime factorization#counting

Statement

Let n=p1α1⋯pkαkn=p_1^{\alpha_1}\cdots p_k^{\alpha_k}. Show that the number of positive divisors of nn is (α1+1)⋯(αk+1)(\alpha_1+1)\cdots(\alpha_k+1).

Hint

Each divisor has the form p1β1⋯pkβkp_1^{\beta_1}\cdots p_k^{\beta_k} with 0≤βi≤αi0\le\beta_i\le\alpha_i.

Show solutionHide solution

Solution

Divisors. By the fundamental theorem, d∣nd\mid n iff d=p1β1⋯pkβkd=p_1^{\beta_1}\cdots p_k^{\beta_k} with 0≤βi≤αi0\le\beta_i\le\alpha_i.

Counting. There are αi+1\alpha_i+1 choices for each βi\beta_i, so the total is ∏i(αi+1)\prod_i(\alpha_i+1).

Conclusion. τ(n)=∏i(αi+1)\tau(n)=\prod_i(\alpha_i+1).

Example. 60=22⋅3⋅560=2^2\cdot3\cdot5, τ(60)=3⋅2⋅2=12\tau(60)=3\cdot2\cdot2=12.