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

How many compositions of n=2 exist?

Choose one option.

Show answer
  • A. 2

Explanation

They are 2 and 1+1, so there are 2^(2-1)=2 compositions. The option of 3 would count 1+1 as two distinct cases, and the option of 4 misapplies the formula.

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-004 ZW-INTEGER-COMPOSITION-006 →