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

If \(p(n)\) is the number of partitions of \(n\), what is \(p(3)\)?

Choose one option.

Show answer
  • A. 3

Explanation

The partitions of 3 are \(3\), \(2+1\), and \(1+1+1\), three in total. Forgetting the single-part partition gives 2, and adding an extra composition 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-005 ZW-PARTITION-GENERATING-FUNCTION-007 →