Partitions of an integer

List all partitions of an integer

Download
Download

You are now following this Submission

Cite As

John D'Errico (2026). Partitions of an integer (https://www.mathworks.com/matlabcentral/fileexchange/12009-partitions-of-an-integer), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: partitiontable.m

Inspired: nsumk

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Comment change

Download
1.2.0

Fix the plist=partitions(10,[1:5],[1],[4]) bug.

Download
1.0.0

Added a new option: a user defined number of terms in the sum.

Download