gives the number q(n) of partitions of the integer n into distinct parts.
- Integer mathematical function, suitable for both symbolic and numerical manipulation.
- PartitionsQ automatically threads over lists.
Examplesopen allclose all
Compare cumulative counts of even and odd partitions into distinct parts:
Plot the ratio of the number of partitions with its asymptotic value:
Visualize p-adic valuations of the number of partitions: