First time here? Check out the FAQ!
answered 2015-07-13 13:14:52 +0100
Would this work?
sage: Partitions(4, max_part=2,inner=[2]).list() [[2, 2], [2, 1, 1]]