My question is short and (maybe) simple: What is the generating function for partitions into distinct parts equal to $2, 5$ or $7$?
My idea is to use Euler's theorem: $$\sum p(k)x^k=\prod\frac{1}{1-x^k}.$$
But how is his theorem concretely applicable to my problem?
It is $$(1+x^2)(1+x^5)(1+x^7)$$