Exercise · ZW-INTEGER-COMPOSITION-002 · ★☆☆ Basic

How many compositions of n=4 have exactly 1 part?

Choose one option.

Show answer
  • D. 1

Explanation

Only the composition formed by 4 itself has one part, so the count is 1. The option of 4 confuses parts with the value of n.

Study Enumerative combinatorics in ZWMath →

Review the concept: Integer composition

A composition of a positive integer n is a way of writing it as an ordered sum of positive integers, where the order of the summands matters.

\[\binom{n-1}{k-1}\]

More practice problems: integer composition

← ZW-INTEGER-COMPOSITION-001 ZW-INTEGER-COMPOSITION-003 →