Exercise · ZW-INTEGER-COMPOSITION-002 · ★☆☆ Basic
How many compositions of n=4 have exactly 1 part?
Choose one option.
Show answer
- D. 1
Exercise · ZW-INTEGER-COMPOSITION-002 · ★☆☆ Basic
Choose one option.
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.
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.