| 1 | initial version |
Would this work?
sage: Partitions(4, max_part=2,inner=[2]).list()
[[2, 2], [2, 1, 1]]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.