Exercise · ZW-INTEGER-PARTITION-006 · ★★☆ Intermediate
How many partitions does \(5\) have?
Choose one option.
Show answer
- B. \(7\)
Exercise · ZW-INTEGER-PARTITION-006 · ★★☆ Intermediate
Choose one option.
The partitions of 5 are 5, 4+1, 3+2, 3+1+1, 2+2+1, 2+1+1+1 and 1+1+1+1+1, that is seven. The option giving six omits one of these forms.
A partition of an integer n is a way of writing n as a sum of positive integers, where the order of the summands does not matter. The number of partitions of n is denoted p(n).