A Combination is a way of selecting members from a group such that order of
selection does not matter. This can be contrasted with permutations, where order is accounted for. Combination is
usually expressed as n choose k or n items taken k at a time.
mctad.factorial() is used to calculate mctad.combination(); mctad.combination() is used to calculate
mctad.pascal().
Combination
A Combination is a way of selecting members from a group such that order of selection does not matter. This can be contrasted with permutations, where order is accounted for. Combination is usually expressed as n choose k or n items taken k at a time.
mctad.factorial()
is used to calculatemctad.combination()
;mctad.combination()
is used to calculatemctad.pascal()
.Assumptions
n
andk
are non-negative Integers.Use
mctad.combination(n, k)
Inline Comments