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

If n=5, how many gaps between units are there?

Choose one option.

Show answer
  • C. 4

Explanation

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.

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