Exercise · ZW-PARTITION-GENERATING-FUNCTION-008 · ★★☆ Intermediate

What is the coefficient of \(x^5\) in \(\frac{1}{(1-x)(1-x^2)}\)?

Choose one option.

Show answer
  • C. 3

Explanation

The ways to write 5 with parts 1 and 2 are \(2+2+1\), \(2+1+1+1\), and \(1+1+1+1+1\), three in total. Leaving one out gives 2, and adding a nonexistent way gives 4.

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-007 ZW-PARTITION-GENERATING-FUNCTION-009 →