How do you find the number of factors of a number?

1 Answer

If the prime factorization of n∈NnN is

n=\prod_{k=1} p_k^{a_k}n=k=1pakk

then the number of divisors of nn is

\prod_{k=1} (a_k+1)k=1(ak+1)

For example 36=3^2*2^236=3222 the number of divisors is

(2+1)*(2+1)=9(2+1)(2+1)=9

which are

1 | 2 | 3 | 4 | 6 | 9 | 12 | 18 | 36 1|2|3|4|6|9|12|18|36