I am trying to add multiple criterion to
IntegerPartitions[n] so that it sorts only partitions that fit the criterion. It creates a list of list of numbers in descending orders and I want to eliminate all the ones that don't fit
Has no part smaller than
s(Already Solved)part
soccurs at mostktimes (Already Solved)If elements are
Distapart then they are at leastDiffapart
i.elist[[i]] - list[[i+Dist]] >= Diff(Already Solved)If parts are a distance
dfrom each other and they are withincof other
i.e iflist[[i]] - list[[i + d]] <= c
then the sum of the parts between them (and the parts themselves) is 'm' mod 'M'
I can do some individual conditions like getting part s to occur no more than k times, but I have trouble getting it to check all these conditions. Any help would be appreciated.
EDIT: Thanks to LLlAMnYP for helping me get as far as I have. Now i have a list of list of integers in descending order and would just like to to filter out all the ones that don't fit the following criterion
- If parts are a distance
dfrom each other and they are withincof other
i.e iflist[[i]] - list[[i + d]] <= c
then the sum of the parts between them (and the parts themselves) is 'm' mod 'M'