Catalan, Stirling, Bell and Partition Numbers Calculator
Choose a sequence and enter n, and k where it is needed.
A whole number, 0 or more.
Try
Result
You entered
Number of terms used
Show the work
Partition numbers
The partition number counts the ways to write as a sum of positive whole numbers when the order of the parts does not matter, so and are the same partition.
Euler's pentagonal number recurrence
The numbers subtracted from are the generalised pentagonal numbers , and the signs go in pairs, . The recurrence stops once the number subtracted would make the argument negative, starting from .
Using
Result
So .