Exercise · ZW-INTEGER-PARTITION-004 · ★☆☆ Basic
What is the number of partitions \(p(2)\)?
Choose one option.
Show answer
- D. \(2\)
Exercise · ZW-INTEGER-PARTITION-004 · ★☆☆ Basic
Choose one option.
The partitions of 2 are 2 and 1+1, so p(2)=2. The option giving four does not match any correct list of partitions of 2.
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).