OFFSET
0,4
COMMENTS
A strict knapsack partition is a set of positive integers summing to n such that every subset has a different sum.
Unlike in the non-strict case (A108917), the multiset of block-sums of any set partition of a strict knapsack partition also form a strict knapsack partition. If p is a strict knapsack partition of n with k parts, then the upper ideal of p in the poset of refinement-ordered integer partitions of n is isomorphic to the lattice of set partitions of {1,...,k}.
Conjecture: a(n)<a(n+1) iff n is even and positive.
LINKS
Fausto A. C. Cariboni, Table of n, a(n) for n = 0..900 (terms 0..101 from Alois P. Heinz, terms 102..500 from Bert Dobbelaere)
EXAMPLE
For n=5, there are A000041(5) = 7 sets of positive integers that sum to 5. Four of these have distinct subsets with the same sum: {3,1,1}, {2,2,1}, {2,1,1,1}, and {1,1,1,1,1}. The other three: {5}, {4,1}, and {3,2}, do not have distinct subsets with the same sum. So a(5) = 3. - Michael B. Porter, Aug 17 2016
MATHEMATICA
sksQ[ptn_]:=And[UnsameQ@@ptn, UnsameQ@@Plus@@@Union[Subsets[ptn]]];
sksAll[n_Integer]:=sksAll[n]=If[n<=0, {}, With[{loe=Array[sksAll, n-1, 1, Join]}, Union[{{n}}, Select[Sort[Append[#, n-Plus@@#], Greater]&/@loe, sksQ]]]];
Array[Length[sksAll[#]]&, 20]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 15 2016
STATUS
approved