PartitionsQ
The number of partitions of into distinct parts.
PartitionsQ✓Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | number-theory | always |
Details
- By Euler's theorem, also counts the partitions of into odd parts — see IntegerPartitions.
- Counts the DistinctPartitions family.
Plot
Examples
Scope #
Properties #
Euler: as many partitions into odd parts as into distinct parts, counted with IntegerPartitions' part restriction
live ↗Four partitions into distinct parts
live ↗Known value · Wolfram MathematicalFunctionData, PartitionsQ
Counts grow slower than unrestricted partitions
live ↗Known value · Wolfram MathematicalFunctionData, PartitionsQ
Six partitions into distinct parts
live ↗Known value · Wolfram MathematicalFunctionData, PartitionsQ
Eight partitions of 9 into distinct parts
live ↗Known value · Wolfram MathematicalFunctionData, PartitionsQ
Equals the number of partitions of 11 into odd parts
live ↗Known value · Wolfram MathematicalFunctionData, PartitionsQ
About
| Examples | 24 |
|---|---|
| Checked against | Wolfram Language 23 agreeSageMath 21 agree1 errormathlib4 19 agree3 error |
| Crosswalk | Wolfram LanguageSageMath |
Implementation
sagepackages/oracle/src/mappings.tsmathlib4packages/oracle/src/mappings.tsThe partitions of n whose parts are all distinct (Nat.Partition.distincts), counted by enumerating them: exponential in n, so a large n runs into the per-item time cap.
See also: DistinctPartitions, IntegerPartitions