An original algorithm is presented that generates both restricted integer compositions and restricted integer partitions that can be constrained simultaneously by a) upper and lower bounds on the number of summands (ldquo;partsrdquo;) allowed, and b) upper and lower bounds on the values of those...