Suppose you have the set $\{1,...,n\}$. What is the sum of the sum of elements of all subsets of it?
I have the following reasoning: each number $1 \leq i \leq n$ appears in $\sum_{k=1}^n {n \choose {k-1}} = 2^n - 1$ subsets, and therefore we can just do a sum over $i\cdot(2^n - 1)$ for all $i=1,...,n$. However, I am not sure that the way I have taken is correct.
Will be glad for some hints.