\[\sum_{n=0}^{\infty}p\left(\in\!S,n\right)q^{n}=\prod_{j\in S}\frac{1}{1-q^{j}}.\]