The question I am given is (I am not asking for this whole question to be solved, just posting it here as reference):
Let $S$ be the set of all non-empty subsets of $\{1,...,n\}$. Define the weight $w(B)$ of a set $B\in S$ to be the smallest element of $B$.
Prove that $Φ_{S}(x) = \frac{x^{n+1}-2^nx}{x-2}$
I believe the first step is algebraically defining the weight function so that I can use it to start formulating the generating function. I have been working on this for hours and can't figure out how to express this algebraically, especially when I don't have S expressed algebraically. Any help in correcting my thinking or starting off this question is much appreciated!
Potentially useful notes: I have determined that $\vert S\vert=2^n$ and each element of $\{1,...,n\}$ appears in $S$ a total of $2^{n-1}$ times (which I am still trying to prove).