The following identity is presented an exercise:
Example
Take \(n = 6\). Then using only even parts, we can write
For \(n/2 = 3\), we can partition it as
which correspond to partitions of \(6\) in which each part appears an even number of times
\(p(n \mid \text{even parts}) = p(n/2)\)
Note that if \(n\) is odd, then both sides are \(0\), since we can’t write an odd integer as a sum of even parts. Now suppose that we have a partition of \(n\) into even parts so
Consider the following map: starting with even parts, divide each part by \(2\). Thus
This is exactly a partition of \(n/2\). Conversely, suppose we have the above partition of \(n/2\). Then consider multiplying every part by \(2\). Then
This is the original partition of \(n\) we started with. Since the maps are inverses of each other then it’s a bijection and therefore, \(p(n \mid \text{even parts}) = p(n/2)\).
\(p(n \mid \text{even number of each part}) = p(n/2)\)
Next, we show that \(p(n \mid \text{even number of each part}) = p(n/2)\). Suppose that we have a partition of \(n\) such that we have an even number of each part. Hence each part must occur at least two times in the partition and we can write
Then replace each pair of \(a_i\)s with a single \(a_i\). Hence we get a partition of \(n/2\) as follows
Conversely, the inverse of this map is duplicating each part \(a_i\) in the partition. Therefore, this map is a bijection.