Thanks Aaron,
I couldn't check on your suggestions until today, they worked great :D
Joan
Missatge de Aaron Meurer del dia dl., 17 de juny 2019
a les 22:48:
> The docstring of multiset_partitions describes how to count
> partitions. It mentions the nT function, but not where to get it. It's
>
The docstring of multiset_partitions describes how to count
partitions. It mentions the nT function, but not where to get it. It's
in sympy.functions.combinatorial.numbers
>>> from sympy.functions.combinatorial.numbers import nT
>>> from sympy.utilities.iterables import multiset_partitions
>>>
I am using the multiset_partitions from sympy to get the possible
permutations of a list of elements, it does work wonderfully, but depending
on the case it will take a long time to generate the whole list.
Is there any way I can calculate the number of permutations prior
generating them? It