I need to prove the following question.
For every partition $\pi$ of a fixed integer $n$, define $F(\pi)$=number of occurrences of 1 as a summand, and $G(\pi)$=no. of distinct summands in the partition. Prove that $\sum{F(\pi)}=\sum{G(\pi)}$.
I was trying to solve this taking an example of 5 with Ferrers graph but not getting how to prove it.
The following proof uses ordinary generating functions (bivariate). The partition generating function where ones are marked is $$Q_1(z, u) = \frac{1}{1-uz} \prod_{k\ge 2} \frac{1}{1-z^k}.$$ If we want to sum the occurrences of one as a summand for all partitions of $n$ we need to compute $$\left.\frac{d}{du} Q_1(z, u) \right|_{u=1} = \left. -1\times \frac{1}{(1-uz)^2} \times -z \times \prod_{k\ge 2} \frac{1}{1-z^k} \right|_{u=1} = \frac{z}{1-z} \prod_{k\ge 1} \frac{1}{1-z^k}.$$ On the other hand, marking distinct summands looks like this: $$Q_2(z,u) = \prod_{k\ge 1}\left(1 + u z^k + u z^{2k} + u z^{3k} + \cdots\right).$$ Once more differentiating and setting $u=1$ gives this time $$\left.\frac{d}{du} Q_2(z, u) \right|_{u=1} = \left.\prod_{k\ge 1}\left(1 + u z^k + u z^{2k} + u z^{3k} + \cdots\right) \times \sum_{k\ge 1} \frac{z^k + z^{2k} + z^{3k} + \cdots} {1 + u z^k + u z^{2k} + u z^{3k} + \cdots}\right|_{u=1} \\= \prod_{k\ge 1}\frac{1}{1-z^k} \sum_{k\ge 1} \frac{z^k/(1-z^k)}{1/(1-z^k)} = \prod_{k\ge 1}\frac{1}{1-z^k} \sum_{k\ge 1} z^k = \frac{z}{1-z} \prod_{k\ge 1}\frac{1}{1-z^k}.$$ The two generating functions are exactly the same, QED.
There are similar computations at this MSE link I and this MSE link II.