nsumk

Returns the number and listing of n-tuples of non-negative integers adding up to k.

Download
Download

You are now following this Submission

Cite As

Peter Cotton (2026). nsumk (https://se.mathworks.com/matlabcentral/fileexchange/28340-nsumk), MATLAB Central File Exchange. Retrieved .

General Information

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

Download
1.6.0

Modified comments

Download
1.5.0

Modified documentation

Download
1.4.0

Fixed upload error

Download
1.3.0

Modified the extremely controversial overloading of the first argument

Download
1.2.0

Forgot to include partitions.m (required for nsumkdaft.m)

Download
1.1.0

I have included nsumkdaft.m which does the same thing using partitions.m

Download
1.0.0

Download