I am trying to solve $$P_k(x) = \sum_{n} p_k(n)x^n$$, which should give the number of ways to partition a set of size $n$ into exactly $k$ parts. So far, I have attempted to solve this simply by writing $$\frac{1}{(1-x)(1-x^2)...(1-x^k)}$$ since this should give the number of ways to partition a set of size $n$ into $k \geq 1$ parts.
How should I add the "exactly $k$ partitions" part of the problem to this question? Thanks!
If we use Ferrer diagrams to visualise the situation (here with $k=3$ and $n=8$) we see that each partition containing parts each $\leq 3$ which is reflected at the main diagonal corresponds with a partition containing at most $3$ parts.
Since this correspondence is bijective the generating function is the same in both cases.