PartitionsP
PartitionsP[n] gives the number p(n) of unrestricted partitions of the integer n.
Examples
Number of partitions:
PartitionsP[5]
(* 7 *)Larger value:
PartitionsP[100]
(* 190569292 *)Please visit the official Wolfram Language Reference for more details.