Suppose
n=p1α1p2α2⋯pkαk. Every positive divisor of n has the form
p1β1p2β2⋯pkβk, where 0≤βi≤αi. Consider the product
(1+p1+p12+⋯+p1α1)(1+p2+p22+⋯+p2α2)⋯(1+pk+pk2+⋯+pkαk). When this product is expanded, we choose one power of each prime pi. Thus, every resulting term has the form
p1β1p2β2⋯pkβk, so it is a positive divisor of n. Conversely, every positive divisor of n appears exactly once in this expansion. Therefore, the sum of the positive divisors is
(1+p1+p12+⋯+p1α1)⋯(1+pk+pk2+⋯+pkαk). Using the finite geometric-series formula from Toolkit 4,
1+pi+pi2+⋯+piαi=pi−1piαi+1−1. Hence, the sum of all positive divisors of n is
p1−1p1α1+1−1⋅p2−1p2α2+1−1⋯pk−1pkαk+1−1.□