Generate all possible combinations of m elements among n with repetitions.
1  comb(m, n)

m 
the number of elements to combine 
n 
the number of elements from which to combine the 
There are (n+m1)!/(m!(n1)!) ways to combine m elements among n with repetitions, combn
generates
all these possible combinations.
A matrix of (n+m1)!/(m!(n1)!) rows, and n columns, each row is a possible combination of m elements among n .
Hinda Haned contact@hindahaned.info
Cmn
for the calculation of the number of all possible combinations of m elements among n with repetitions
1 2 3 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.