Exercise · ZW-PARTITION-GENERATING-FUNCTION-010 · ★★★ Advanced

Let \(F(x)=\prod_{k\ge1}\frac{1}{1-x^k}\). What is the coefficient of \(x^5\) in \(F(x)\)? Hint: \(p(5)\) comes from counting all partitions of 5.

Choose one option.

Show answer
  • A. 7

Explanation

The partitions of 5 are seven: \(5\), \(4+1\), \(3+2\), \(3+1+1\), \(2+2+1\), \(2+1+1+1\), and \(1+1+1+1+1\). Omitting one gives 6, and adding an improper composition gives 8.

Study Enumerative combinatorics in ZWMath →

Review the concept: Partition generating function

The partition generating function is the formal series \(\sum_{n\ge 0} p(n)\,x^n\), where \(p(n)\) counts the partitions of the integer \(n\).

\[\sum_{n\ge 0} p(n)x^n=\prod_{k\ge 1}\frac{1}{1-x^k}\]

More practice problems: partition generating function

← ZW-PARTITION-GENERATING-FUNCTION-009