This question (21008) asks to find all permutations of {a, b, c} subject to a + b + c = n. The answer was provided by Dr. belisarius using IntegerPartitions.
How can we generalize that answer to find all permutations of
{a, b, c} subject to 2 a + b + c = const, or more generally find all partitions subject to {a, b, c, d, e, ...} subject to 2 a + b + c + d + e + ... = n?