OFFSET
0,3
COMMENTS
EXAMPLE
The a(1) = 1 through a(7) = 14 partitions:
(1) (2) (3) (4) (5) (6) (7)
(11) (21) (22) (32) (33) (43)
(111) (31) (41) (42) (52)
(211) (221) (51) (61)
(1111) (311) (222) (322)
(2111) (411) (331)
(11111) (2211) (421)
(3111) (511)
(21111) (2221)
(111111) (4111)
(22111)
(31111)
(211111)
(1111111)
The three non-knapsack partitions counted under a(6) are:
(2,2,1,1)
(3,1,1,1)
(2,1,1,1,1)
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], UnsameQ@@Plus@@@Subsets[Union[#]]&]], {n, 0, 20}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 31 2019
STATUS
approved