Exercise · ZW-INTEGER-COMPOSITION-003 · ★☆☆ Basic
If n=5, how many gaps between units are there?
Choose one option.
Show answer
- C. 4
Exercise · ZW-INTEGER-COMPOSITION-003 · ★☆☆ Basic
Choose one option.
A chain of 5 units has 4 gaps between them, that is n-1. The option of 5 counts the units rather than the gaps.
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.