partitiontable.m

Given a nonnegative integer n, compute a table of the unrestricted partition function p(m) for m<=n.

You are now following this Submission

Given a nonnegative integer n, compute a table of the unrestricted partition function p(m) for m<=n. This program uses a recurrence involving pentagonal numbers, which makes it necessary to compute p(m) for all m<=n in order to compute p(n). Thus, we get the table for free with this computation.

Cite As

David Terr (2026). partitiontable.m (https://uk.mathworks.com/matlabcentral/fileexchange/5154-partitiontable-m), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Partitions of an integer

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0