Let $t_{1}, t_{2}, \ldots, t_{m}$ be distinct positive integers, and let
$$q_{n}=q_{n}\left(t_{1}, t_{2}, \ldots, t_{m}\right)$$
equal the number of partitions of $n$ in which all parts are taken from $t_{1}, t_{2}, \ldots, t_{m}$. Define $q_{0}=1$. Show that the generating function for $q_{0}, q_{1}, \ldots, q_{n}, \ldots$ is$$\prod_{k=1}^{m}\left(1-x^{t_{k}}\right)^{-1} .$$