This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

PartitionsQ

PartitionsQ[n]
gives the number of partitions of the integer n into distinct parts.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
Plot the number of restricted partitions:
In[1]:=
Click for copyable input
Out[1]=
 
Plot the number of restricted partitions:
In[1]:=
Click for copyable input
Out[1]=
Compute the number of partitions for large numbers:
PartitionsQ threads element-wise over lists:
TraditionalForm formatting:
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:
PartitionsQ gives the length of IntegerPartitions with nonrepeating parts:
Generate the explicit partitions:
Model PartitionsQ based on the definition:
PartitionsQ evaluates only for explicit integers:
Use Simplify to find implicit integers in arguments:
Successive differences of PartitionsQ modulo 2:
A "random" walk based on PartitionsQ:
New in 1