Number of Divisors
Once a number is written as a product of prime powers, the number of its positive divisors is the product of the exponents each increased by one. Use it to count factors of a number quickly, for example when arranging items into equal rows.
LaTeX
d(n)=\prod_{i=1}^{k}(e_i+1),\qquad n=p_1^{e_1}p_2^{e_2}\cdots p_k^{e_k}Variables
- distinct primes
- their exponents
- number of positive divisors
Example
How many divisors does have?
- .
- .
Answer: .