Rank: 224508 based on 0 downloads (last 30 days) and 0 file submitted
photo

tommaso

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by tommaso View all
Updated File Comments Rating
17 Nov 2012 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig

hi,
I would generate permutations (n, k) with repetition, but only those whose sum is equal to n
for example
I have 5 to give candy to 3 children
I want to generate permutations with repetition, but only those whose sum is exactly equal to 5.
0 0 5; 0 5 0; 5 0 0; 1 4 0; etc..
does anyone know how?
thanks in advance matt for its functions, worked great

17 Nov 2012 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig

hi,
I would generate permutations (n, k) with repetition, but only those whose sum is equal to n
for example
I have 5 to give candy to 3 children
I want to generate permutations with repetition, but only those whose sum is exactly equal to 5.
0 0 5; 0 5 0; 5 0 0; 1 4 0; etc..
does anyone know how?
thanks in advance matt for its functions, worked great

17 Nov 2012 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig

hi,
I would generate permutations (n, k) with repetition, but only those whose sum is equal to n
for example
I have 5 to give candy to 3 children
I want to generate permutations with repetition, but only those whose sum is exactly equal to 5.
0 0 5; 0 5 0; 5 0 0; 1 4 0; etc..
does anyone know how?
thanks in advance matt for its functions, worked great

Contact us