[issue5139] Add combinatoric counting functions to the math module.
report at bugs.python.org
Tue Feb 3 15:49:38 CET 2009
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
Should we add permutations with repetitions?
Example (from Schaum's outline of theory and problems of probability and
The number of different permutations of the 11 letters of the word
MISSISSIPPI, which consists of 1 M, 4 I's, 4 S's and 2 P's, is
11! / (1!*4!*4!*2!) = 34650
and maybe parallel function in itertools:
This should be equal to itertools.permutations(set(iterable)[, r]).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list