powered by
Computes all possible combinations of n objects taken k at a time.
n
k
Combinations(n, k)
a number.
a number less than or equal to n.
Returns a matrix containing the possible combinations of n objects taken k at a time.
SRS
# NOT RUN { Combinations(5,2) # The columns in the matrix list the values of the 10 possible # combinations of 5 things taken 2 at a time. # }
Run the code above in your browser using DataLab