Given the following question. What is the sum of all factors of 72?
72 can be expressed as 2^3 x 3^2. The following are the factors of 72. 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36 and 72 You simply add all.
However I have noticed that you can conceptualize the sum of the factors as simply a summation based on two variables. It is the summation of 2^x times 3^y where x is from 0 to 3 and y is form 0 to 2.
Because x is from 0 to 3, there are 3 + 1 or 4 options. Because y is from 0 to 2, there are 2 + 1 or 3 options. Multiplying the combination of these two options through fundamental principle of counting, you get 12 factors.
My question is, is there a formal summation representation in terms of two variables to account for the concept I have stated? I have trouble searching in the internet since I don't know the correct terms to put.
Also, I apologize for not being able to use LateX since I am currently on mobile.