nsumk
Returns the number and listing of n-tuples of non-negative integers adding up to k.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Peter Cotton (2026). nsumk (https://se.mathworks.com/matlabcentral/fileexchange/28340-nsumk), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Partitions of an integer, VChooseK, Unique random permutations
General Information
- Version 1.7.0 (1.63 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.7.0 | Included link to vchoosek.m |
||
| 1.6.0 | Modified comments |
||
| 1.5.0 | Modified documentation |
||
| 1.4.0 | Fixed upload error |
||
| 1.3.0 | Modified the extremely controversial overloading of the first argument |
||
| 1.2.0 | Forgot to include partitions.m (required for nsumkdaft.m) |
||
| 1.1.0 | I have included nsumkdaft.m which does the same thing using partitions.m |
||
| 1.0.0 |