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

Semiprimes and divisors

#semiprime#divisors#factorization

Statement

Let n=pqn=pq be the product of two distinct primes p<qp<q. Compute τ(n)\tau(n) and σ(n)\sigma(n).

Hint

Use the formula for τ\tau and σ\sigma on prime factorizations.

Show solutionHide solution

Solution

Number of divisors. τ(n)=(1+1)(1+1)=4\tau(n)=(1+1)(1+1)=4: divisors 1,p,q,pq1,p,q,pq.

Sum of divisors. σ(n)=(1+p)(1+q)=1+p+q+pq\sigma(n)=(1+p)(1+q)=1+p+q+pq.

Conclusion. τ(pq)=4\tau(pq)=4, σ(pq)=(1+p)(1+q)\sigma(pq)=(1+p)(1+q).

Application. If nn has exactly 44 divisors, n=p3n=p^3 or n=pqn=pq with p<qp<q primes.