Question: permutations

Question:permutations

Sini 10 Maple

Hi there....

I have a set P={4,5,6,7,12,14,15}

in order to create permutations of the numbers in set P into sets of 3 I did the following:

with(Statistics):

>P={4,5,6,7,12,14,15};

> O := combinat[permute](P, 3); 

But this does not produce permutation of the same number in a set as the integers in P can be repeated more than once....for example {4,4,4} or {15,15,15}?

How can I do so?

Any help will be appreciated

Many Thanks

Please Wait...