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

PartitionsP

PartitionsP[n]
gives the number of unrestricted partitions of the integer n.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
Plot the number of unrestricted partitions:
In[1]:=
Click for copyable input
Out[1]=
 
Plot the number of unrestricted partitions:
In[1]:=
Click for copyable input
Out[1]=
Compute the number of partitions for large numbers:
PartitionsP threads element-wise over lists:
TraditionalForm formatting:
Number of non-isomorphic Abelian groups of order :
Compare cumulative counts of even and odd partitions:
Visualize p-adic valuations of the number of partitions:
PartitionsP gives the length of IntegerPartitions:
Obtain values of PartitionsP from series expansion:
Use FullSimplify to simplify expressions containing PartitionsP:
PartitionsP evaluates only for integer arguments:
Use Simplify to find implicit integers in arguments:
Successive differences of PartitionsP modulo 2:
A "random" walk based on PartitionsP:
New in 1