Exercise · ZW-PARTITION-GENERATING-FUNCTION-009 · ★★☆ Intermediate
How many partitions of 4 have all their parts equal to 1 or 2?
Choose one option.
Show answer
- B. 3
Exercise · ZW-PARTITION-GENERATING-FUNCTION-009 · ★★☆ Intermediate
Choose one option.
The partitions sought are \(2+2\), \(2+1+1\), and \(1+1+1+1\), three in total. Forgetting \(2+1+1\) gives 2, including \(4\), which uses a forbidden part, gives 4, and counting compositions gives 5.
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\).
← ZW-PARTITION-GENERATING-FUNCTION-008 ZW-PARTITION-GENERATING-FUNCTION-010 →