Let $S$ be a subset of a group and let $H$ be the intersection of all subgroups of $G$ that contain $S$.
a. Prove that $\langle S\rangle=H$.
b. If $S$ is nonempty, prove that $\langle S\rangle=\left\{s_{1}^{n_{1}} s_{2}^{H_{2}} \cdots s_{m}^{n_{m}} \mid m \geq 1, s_{i} \in S,\right.$,
$\left.n_{i} \in Z\right\} .$ (The $s_{i}$ terms need not be distinct.)