COMB(n,k) function computes the number of combinations of n elements taken k at a time.
ALLCOMB(j, k, of x[*]) function generates all combinations of the values of j variables taken k at a time in a minimal change order.
For the ALLCOMB function, the following actions occur:
1.On the first execution, ALLCOMB returns 0.
2.If the values of variable-i and variable-j were interchanged, where i<j, then ALLCOMB returns i.
3.If no values were interchanged because all combinations were already generated, then ALLCOMB returns –1.