Re: [sage-devel] Counting integer compositions with restrictions

2019-02-20 Thread 'Martin R' via sage-devel
I just realised that `Compositions` and `IntegerListLex` do not seem to support generation of lists whose entries are in a specified set. I admit that I'm not sure it would be worth it. Martin -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To

Re: [sage-devel] Counting integer compositions with restrictions

2019-02-19 Thread Vincent Delecroix
Le 19/02/2019 à 21:43, Jori Mäntysalo (TAU) a écrit : Is there a fast way to compute for example Compositions(15, min_length=10, max_length=10).cardinality() in some package already integrated to SageMath? For Partitions(...) that seems to be the case, but Compositions(...) uses just brute enum

[sage-devel] Counting integer compositions with restrictions

2019-02-19 Thread TAU
Is there a fast way to compute for example Compositions(15, min_length=10, max_length=10).cardinality() in some package already integrated to SageMath? For Partitions(...) that seems to be the case, but Compositions(...) uses just brute enumeration. -- Jori Mäntysalo Tampereen yliopisto - Ihm