Skip to content

PartitionsP

PartitionsP(n)

gives the number of unrestricted partitions of the integer n.

See

Examples

>> PartitionsP(50)
204226
>> PartitionsP(6)
11
>> IntegerPartitions(6)
{{6},{5,1},{4,2},{4,1,1},{3,3},{3,2,1},{3,1,1,1},{2,2,2},{2,2,1,1},{2,1,1,1,1},{1,1,1,1,1,1}}

Implementation status

  • ✅ - full supported

Github