Exercise · ZW-INTEGER-COMPOSITION-005 · ★☆☆ Basic
How many compositions of n=2 exist?
Choose one option.
Show answer
- A. 2
Exercise · ZW-INTEGER-COMPOSITION-005 · ★☆☆ Basic
Choose one option.
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.
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.